Query.h 710 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef QUERY_H
  2. #define QUERY_H
  3. #include "Name.h"
  4. #include "QueryClass.h"
  5. #include "QueryType.h"
  6. #include <memory>
  7. namespace Network {
  8. namespace Dns {
  9. class QueryImpl;
  10. class Query
  11. {
  12. public:
  13. Query();
  14. bool GetUnicast() const;
  15. QueryType::type GetType() const;
  16. QueryClass::type GetClass() const;
  17. Name GetName() const;
  18. void SetUnicast(bool unicast);
  19. void SetType(QueryType::type type);
  20. void SetClass(QueryClass::type class_);
  21. void SetName(const Name& name);
  22. private:
  23. QueryImpl* PImpl() const;
  24. private:
  25. friend class MulticastDnsClient;
  26. private:
  27. std::shared_ptr<QueryImpl> m_pQueryImpl;
  28. };
  29. } // namespace Dns
  30. } // namespace Network
  31. #endif // QUERY_H