You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ActionAddHost.h 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // Created by robin on 8/9/15.
  3. //
  4. #ifndef PDNS_SLAVE_ACTIONADDHOST_H
  5. #define PDNS_SLAVE_ACTIONADDHOST_H
  6. # include "DBO/Actions/Action.h"
  7. class ActionAddHost : public Action
  8. {
  9. public:
  10. ActionAddHost();
  11. const std::string getSql() const override;
  12. const std::string &getHost() const;
  13. void setHost(const std::string &host);
  14. const std::string &getRecordValue() const;
  15. void setRecordValue(const std::string &recordValue);
  16. const std::string &getRecordType() const;
  17. void setRecordType(const std::string &recordType);
  18. const std::string &getDhcpMac() const;
  19. void setDhcpMac(const std::string &dhcpMac);
  20. const std::string &getReverseDomain() const;
  21. void setReverseDomain(const std::string &reverseDomain);
  22. bool isReverseEnabled() const;
  23. void setReverseEnabled(bool reverseEnabled);
  24. private:
  25. std::string _host;
  26. std::string _recordValue;
  27. std::string _recordType;
  28. std::string _dhcpMac;
  29. std::string _reverseDomain;
  30. bool _reverseEnabled;
  31. };
  32. #endif //PDNS_SLAVE_ACTIONADDHOST_H