Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

PostfixIntegrate.hpp 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // \file PostfixIntegrate.hpp
  2. //
  3. // Copyright (C) 2011 ARM Research Labs, LLC.
  4. // See www.armresearch.com for the copyright terms.
  5. //
  6. // This file defines the PostfixIntegrate interface.
  7. //
  8. // $Id$
  9. //
  10. ///////////////////////////////////////////////////////////////////////////////////////////////////
  11. #ifndef PostfixIntegratehpp_included
  12. #define PostfixIntegratehpp_included
  13. #include "MtaIntegrate.hpp"
  14. /// Class to manage the SNFMilter integration with postfix.
  15. //
  16. // This class implements the MtaIntegrate interface for postfix.
  17. //
  18. //////////////////////////////////////////////////////////////////////////////////////////////////////////
  19. class PostfixIntegrate : public MtaIntegrate {
  20. public:
  21. virtual void SetOperatingSystem(std::string OperatingSystemType);
  22. virtual void Integrate(FileBackup *SaveFile);
  23. virtual void Unintegrate(FileBackup *SaveFile);
  24. private:
  25. virtual bool MtaIsRunningDetected();
  26. virtual bool ReloadMta();
  27. virtual bool IsIntegrated();
  28. /// Postfix main.cf file path.
  29. std::string PostfixMainCfPath;
  30. /// Postfix master.cf file path.
  31. std::string PostfixMasterCfPath;
  32. /// Command to determine whether postfix is running.
  33. std::string MtaIsRunningCommand;
  34. /// Command to reload postfix.
  35. std::string ReloadMtaCommand;
  36. };
  37. #endif