cmCTestSubmit.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef cmCTestSubmit_h
  14. #define cmCTestSubmit_h
  15. #include "cmStandardIncludes.h"
  16. /** \class cmCTestSubmit
  17. * \brief Helper class for CTest
  18. *
  19. * Submit testing results
  20. *
  21. */
  22. class cmCTestSubmit
  23. {
  24. public:
  25. cmCTestSubmit();
  26. ~cmCTestSubmit() {}
  27. /**
  28. * Set verbosity of send
  29. */
  30. void SetVerbose(bool i) { m_Verbose = i; }
  31. void VerboseOn() { this->SetVerbose(1); }
  32. void VerboseOff() { this->SetVerbose(0); }
  33. /**
  34. * Submit file using various ways
  35. */
  36. bool SubmitUsingFTP(const std::string& localprefix,
  37. const std::vector<std::string>& files,
  38. const std::string& remoteprefix,
  39. const std::string& url);
  40. bool SubmitUsingHTTP(const std::string& localprefix,
  41. const std::vector<std::string>& files,
  42. const std::string& remoteprefix,
  43. const std::string& url);
  44. bool SubmitUsingSCP(const std::string& localprefix,
  45. const std::vector<std::string>& files,
  46. const std::string& remoteprefix,
  47. const std::string& url);
  48. bool TriggerUsingHTTP(const std::vector<std::string>& files,
  49. const std::string& remoteprefix,
  50. const std::string& url);
  51. private:
  52. std::string m_HTTPProxy;
  53. int m_HTTPProxyType;
  54. std::string m_FTPProxy;
  55. int m_FTPProxyType;
  56. bool m_Verbose;
  57. };
  58. #endif