MonitorConfigCheck.cpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright 2005 - 2016 Zarafa and its licensors
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU Affero General Public License, version 3,
  6. * as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU Affero General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU Affero General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. *
  16. */
  17. #include "MonitorConfigCheck.h"
  18. MonitorConfigCheck::MonitorConfigCheck(const char *lpszConfigFile) : ECConfigCheck("Monitor Configuration file", lpszConfigFile)
  19. {
  20. }
  21. void MonitorConfigCheck::loadChecks()
  22. {
  23. addCheck("companyquota_warning_template", CONFIG_MANDATORY | CONFIG_HOSTED_USED, &testFile);
  24. addCheck("companyquota_soft_template", CONFIG_MANDATORY | CONFIG_HOSTED_USED, &testFile);
  25. addCheck("companyquota_hard_template", CONFIG_MANDATORY | CONFIG_HOSTED_USED, &testFile);
  26. addCheck("userquota_warning_template", CONFIG_MANDATORY, &testFile);
  27. addCheck("userquota_soft_template", CONFIG_MANDATORY, &testFile);
  28. addCheck("userquota_hard_template", CONFIG_MANDATORY, &testFile);
  29. }