kresolverstandardworkers_p.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef KRESOLVERSTANDARDWORKERS_P_H
00026 #define KRESOLVERSTANDARDWORKERS_P_H
00027
00028 #include <sys/types.h>
00029 #include <netdb.h>
00030
00031 #include <qptrlist.h>
00032 #include <qcstring.h>
00033
00034 #include "kresolver.h"
00035 #include "kresolverworkerbase.h"
00036
00037 #include <config.h>
00038
00039 namespace KNetwork { namespace Internal
00040 {
00041 extern void initStandardWorkers() KDE_NO_EXPORT;
00042
00046 class KStandardWorker: public KNetwork::KResolverWorkerBase
00047 {
00048 protected:
00049 mutable QCString m_encodedName;
00050 Q_UINT16 port;
00051 int scopeid;
00052 QPtrList<KNetwork::KResolverResults> resultList;
00053
00054 public:
00055 bool sanityCheck();
00056
00057 virtual bool preprocess();
00058 virtual bool run();
00059 virtual bool postprocess();
00060
00061 bool resolveScopeId();
00062 bool resolveService();
00063 bool resolveNumerically();
00064
00065 KNetwork::KResolver::ErrorCodes addUnix();
00066 };
00067
00068 #if defined(HAVE_GETADDRINFO)
00069
00074 class KGetAddrinfoWorker: public KStandardWorker
00075 {
00076 public:
00077 KGetAddrinfoWorker()
00078 { }
00079
00080 virtual ~KGetAddrinfoWorker();
00081 virtual bool preprocess();
00082 virtual bool run();
00083 virtual bool postprocess() { return true; }
00084
00085 bool wantThis(int family);
00086 };
00087 #endif // HAVE_GETADDRINFO
00088
00089 } }
00090
00091
00092 #endif
This file is part of the documentation for kdecore Library Version 3.3.90.