DNSSD
remoteservice.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 #ifndef DNSSDREMOTESERVICE_H
00022 #define DNSSDREMOTESERVICE_H
00023
00024 #include <QtCore/QObject>
00025 #include <QtCore/QMetaType>
00026 #include <dnssd/servicebase.h>
00027
00028 namespace DNSSD
00029 {
00030 class RemoteServicePrivate;
00031
00043 class KDNSSD_EXPORT RemoteService : public QObject, public ServiceBase
00044 {
00045 Q_OBJECT
00046 public:
00047 typedef KSharedPtr<RemoteService> Ptr;
00048
00052 RemoteService(const QString& name,const QString& type,const QString& domain);
00053
00054 virtual ~RemoteService();
00055
00061 void resolveAsync();
00062
00068 bool resolve();
00069
00073 bool isResolved() const;
00074
00075 Q_SIGNALS:
00081 void resolved(bool);
00082
00083 protected:
00084 virtual void virtual_hook(int id, void *data);
00085 private:
00086 friend class RemoteServicePrivate;
00087
00088 };
00089
00090 }
00091
00092 Q_DECLARE_METATYPE(DNSSD::RemoteService::Ptr)
00093
00094 #endif