Add MulticastDnsClient
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
#ifndef QUERY_H
|
||||
#define QUERY_H
|
||||
|
||||
#include "Name.h"
|
||||
#include "QueryClass.h"
|
||||
#include "QueryType.h"
|
||||
#include <memory>
|
||||
|
||||
|
||||
namespace Network {
|
||||
namespace Dns {
|
||||
|
||||
class QueryImpl;
|
||||
|
||||
class Query
|
||||
{
|
||||
public:
|
||||
Query();
|
||||
|
||||
bool GetUnicast() const;
|
||||
QueryType::type GetType() const;
|
||||
QueryClass::type GetClass() const;
|
||||
Name GetName() const;
|
||||
|
||||
void SetUnicast(bool unicast);
|
||||
void SetType(QueryType::type type);
|
||||
void SetClass(QueryClass::type class_);
|
||||
void SetName(const Name& name);
|
||||
|
||||
private:
|
||||
QueryImpl* PImpl() const;
|
||||
|
||||
private:
|
||||
friend class MulticastDnsClient;
|
||||
|
||||
private:
|
||||
std::shared_ptr<QueryImpl> m_pQueryImpl;
|
||||
};
|
||||
|
||||
} // namespace Dns
|
||||
} // namespace Network
|
||||
|
||||
#endif // QUERY_H
|
||||
Reference in New Issue
Block a user