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.cpp 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. //
  2. // Created by robin on 8/9/15.
  3. //
  4. #include "ActionAddDomain.h"
  5. #include "../../DataAccess/AbstractSql.h"
  6. ActionAddDomain::ActionAddDomain()
  7. {
  8. }
  9. const std::string &ActionAddDomain::getSoaNs() const
  10. {
  11. return _soaNs;
  12. }
  13. void ActionAddDomain::setSoaNs(const std::string &soaNs)
  14. {
  15. _soaNs = soaNs;
  16. }
  17. const std::string &ActionAddDomain::getSoaMail() const
  18. {
  19. return _soaMail;
  20. }
  21. void ActionAddDomain::setSoaMail(const std::string &soaMail)
  22. {
  23. _soaMail = soaMail;
  24. }
  25. int ActionAddDomain::getSoaRefresh() const
  26. {
  27. return _soaRefresh;
  28. }
  29. void ActionAddDomain::setSoaRefresh(int soaRefresh)
  30. {
  31. _soaRefresh = soaRefresh;
  32. }
  33. int ActionAddDomain::getSoaRetry() const
  34. {
  35. return _soaRetry;
  36. }
  37. void ActionAddDomain::setSoaRetry(int soaRetry)
  38. {
  39. _soaRetry = soaRetry;
  40. }
  41. int ActionAddDomain::getSoaExpire() const
  42. {
  43. return _soaExpire;
  44. }
  45. void ActionAddDomain::setSoaExpire(int soaExpire)
  46. {
  47. _soaExpire = soaExpire;
  48. }
  49. int ActionAddDomain::getSoaTtl() const
  50. {
  51. return _soaTtl;
  52. }
  53. void ActionAddDomain::setSoaTtl(int soaTtl)
  54. {
  55. _soaTtl = soaTtl;
  56. }
  57. int ActionAddDomain::getTtl() const
  58. {
  59. return _ttl;
  60. }
  61. void ActionAddDomain::setTtl(int ttl)
  62. {
  63. _ttl = ttl;
  64. }
  65. const std::string ActionAddDomain::getSql(AbstractSql* sqlDb) const
  66. {
  67. return sqlDb->getAddDomainQuery(*this);
  68. }