summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Network/DomainNameResolver.h')
-rw-r--r--Swiften/Network/DomainNameResolver.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/Swiften/Network/DomainNameResolver.h b/Swiften/Network/DomainNameResolver.h
index 5c83622..b99ace3 100644
--- a/Swiften/Network/DomainNameResolver.h
+++ b/Swiften/Network/DomainNameResolver.h
@@ -1,16 +1,17 @@
#pragma once
-#include <vector>
-
-#include "Swiften/Network/HostAddressPort.h"
+#include <boost/shared_ptr.hpp>
namespace Swift {
+ class DomainNameServiceQuery;
+ class DomainNameAddressQuery;
class String;
class DomainNameResolver {
public:
virtual ~DomainNameResolver();
- virtual std::vector<HostAddressPort> resolve(const String& domain) = 0;
+ virtual boost::shared_ptr<DomainNameServiceQuery> createServiceQuery(const String& name) = 0;
+ virtual boost::shared_ptr<DomainNameAddressQuery> createAddressQuery(const String& name) = 0;
};
}