Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

MtaIntegrate.hpp 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // \file MtaIntegrate.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 MtaIntegrate interface.
  7. //
  8. // $Id$
  9. //
  10. ///////////////////////////////////////////////////////////////////////////////////////////////////
  11. #ifndef MtaIntegratehpp_included
  12. #define MtaIntegratehpp_included
  13. #include <string>
  14. #include "Utility.hpp"
  15. #include "FileBackup.hpp"
  16. /// Base class to manage a Sniffer integration with an MTA.
  17. //
  18. // This class defines the interface to integrate and unintegrate with an MTA.
  19. //
  20. //////////////////////////////////////////////////////////////////////////////////////////////////////////
  21. class MtaIntegrate : public Utility {
  22. public:
  23. /// Constructor.
  24. MtaIntegrate();
  25. /// Specifies the operating system type.
  26. //
  27. // \param[in] OperatingSystemType is the value of SNF_OSTYPE
  28. // specified when configuring sniffer for *nix, or "Windows".
  29. //
  30. virtual void SetOperatingSystem(std::string OperatingSystemType) = 0;
  31. /// Integrate with the MTA.
  32. //
  33. // If the MTA is already integrated, this method does nothing.
  34. //
  35. // \param[in] SaveFile is the object to back up any configuration
  36. // files.
  37. //
  38. virtual void Integrate(FileBackup *SaveFile) = 0;
  39. /// Unintegrate with the MTA.
  40. //
  41. // If the MTA is not integrated, this method does nothing.
  42. //
  43. // \param[in] SaveFile is the object to back up any configuration
  44. // files.
  45. //
  46. virtual void Unintegrate(FileBackup *SaveFile) = 0;
  47. private:
  48. /// Determine whether the MTA is integrated.
  49. virtual bool IsIntegrated() = 0;
  50. };
  51. #endif