QtNameResolver.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef PROTOCOLS__GENERICS__QT_NAME_RESOLVER_H
00024 #define PROTOCOLS__GENERICS__QT_NAME_RESOLVER_H
00025
00026 #include "Imports.h"
00027 #include "NameResolver.h"
00028
00029 namespace Protocols {
00030 namespace Generics {
00031
00032 class NameResolverStatus;
00033
00035
00037 class QtNameResolver : public QObject, public NameResolver
00038 {
00039 Q_OBJECT
00040
00041 public:
00042 QtNameResolver();
00043 ~QtNameResolver();
00044
00045
00046 void resolveName (const QByteArray &name, NameResolverStatus *);
00047
00048 private slots:
00049 void processHostInfo (const QHostInfo &);
00050
00051 private:
00052 typedef QHash <int, NameResolverStatus *> Queries;
00053 Queries queries;
00054 };
00055
00056 }
00057 }
00058
00059 #endif // PROTOCOLS__GENERICS__QT_NAME_RESOLVER_H