diff options
Diffstat (limited to 'Swiften/Network/PlatformDomainNameQuery.h')
-rw-r--r-- | Swiften/Network/PlatformDomainNameQuery.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Swiften/Network/PlatformDomainNameQuery.h b/Swiften/Network/PlatformDomainNameQuery.h new file mode 100644 index 0000000..bbfb1d1 --- /dev/null +++ b/Swiften/Network/PlatformDomainNameQuery.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2010 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#pragma once + +#include <boost/shared_ptr.hpp> + +namespace Swift { + class PlatformDomainNameResolver; + + class PlatformDomainNameQuery { + public: + typedef boost::shared_ptr<PlatformDomainNameQuery> ref; + + PlatformDomainNameQuery(PlatformDomainNameResolver* resolver) : resolver(resolver) {} + virtual ~PlatformDomainNameQuery() {} + + virtual void runBlocking() = 0; + + protected: + PlatformDomainNameResolver* getResolver() { + return resolver; + } + + private: + PlatformDomainNameResolver* resolver; + }; +} |