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.

ActionAddDomain.h 1000B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //
  2. // Created by robin on 8/9/15.
  3. //
  4. #ifndef PDNS_SLAVE_ACTIONADDDOMAIN_H
  5. #define PDNS_SLAVE_ACTIONADDDOMAIN_H
  6. # include "DBO/Actions/Action.h"
  7. class ActionAddDomain : public Action
  8. {
  9. public:
  10. ActionAddDomain();
  11. int getSoaRefresh() const;
  12. void setSoaRefresh(int soaRefresh);
  13. int getSoaRetry() const;
  14. void setSoaRetry(int soaRetry);
  15. int getSoaExpire() const;
  16. void setSoaExpire(int soaExpire);
  17. int getSoaTtl() const;
  18. void setSoaTtl(int soaTtl);
  19. int getTtl() const;
  20. void setTtl(int ttl);
  21. const std::string &getSoaNs() const;
  22. void setSoaNs(const std::string &soaNs);
  23. const std::string &getSoaMail() const;
  24. void setSoaMail(const std::string &soaMail);
  25. protected:
  26. const std::string getSql(AbstractSql* sqlDb) const override;
  27. private:
  28. std::string _soaNs;
  29. std::string _soaMail;
  30. int _soaRefresh;
  31. int _soaRetry;
  32. int _soaExpire;
  33. int _soaTtl;
  34. int _ttl;
  35. };
  36. #endif //PDNS_SLAVE_ACTIONADDDOMAIN_H