Ignore:
Timestamp:
Sep 5, 2006, 1:09:16 AM (19 years ago)
Author:
dmik
Message:

CuteStuff/Network: Added alternative implementation of the NDns class using the QDns functionality (necessary because NO_NDNS macro doesn't work properly but on some platforms it's better to use the standard QDns class for DNS resolving). The MAP_NDNS_TO_QDNS C++ macro must be defined to enable this implementation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • psi/trunk/cutestuff/network/ndns.h

    r2 r12  
    2828#include<qhostaddress.h>
    2929
     30#if defined(MAP_NDNS_TO_QDNS)
     31#include <qdns.h>
     32#endif
     33
    3034// CS_NAMESPACE_BEGIN
    3135
     36#if !defined(MAP_NDNS_TO_QDNS)
    3237class NDnsWorker;
    3338class NDnsManager;
     39#endif
    3440
    3541class NDns : public QObject
     
    5157
    5258private:
     59#if defined(MAP_NDNS_TO_QDNS)
     60        QDns qdns;
     61#else
    5362        QHostAddress addr;
    5463
    5564        friend class NDnsManager;
    5665        void finished(const QHostAddress &);
     66#endif 
    5767};
    5868
Note: See TracChangeset for help on using the changeset viewer.