選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

SendmailIntegrate.hpp 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // \file SendmailIntegrate.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 SendmailIntegrate interface.
  7. //
  8. // $Id$
  9. //
  10. ///////////////////////////////////////////////////////////////////////////////////////////////////
  11. #ifndef SendmailIntegratehpp_included
  12. #define SendmailIntegratehpp_included
  13. #include <vector>
  14. #include "MtaIntegrate.hpp"
  15. /// Class to manage the SNFMilter integration with sendmail.
  16. //
  17. // This class implements the MtaIntegrate interface for sendmail.
  18. //
  19. //////////////////////////////////////////////////////////////////////////////////////////////////////////
  20. class SendmailIntegrate : public MtaIntegrate {
  21. public:
  22. virtual void SetOperatingSystem(std::string OperatingSystemType);
  23. virtual void Integrate(FileBackup *SaveFile);
  24. virtual void Unintegrate(FileBackup *SaveFile);
  25. private:
  26. virtual bool MtaIsRunningDetected();
  27. virtual bool ReloadMta();
  28. virtual bool IsIntegrated();
  29. /// Sendmail sendmail.mc file path.
  30. std::string SendmailSendmailMcPath;
  31. /// Sendmail sendmail.cf file path.
  32. std::string SendmailSendmailCfPath;
  33. /// Command to build and install the sendmail.cf file.
  34. std::string BuildInstallSendmailCfFile;
  35. /// Command to reload the MTA.
  36. std::string ReloadMtaCommand;
  37. /// typedef for container of filenames to backup up before integrating or unintegrating.
  38. typedef std::vector<std::string> FileToBackupType;
  39. /// Files to back up before integrating or unintegrating.
  40. FileToBackupType FileToBackup;
  41. };
  42. #endif