cmCTestSubmitHandler.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 cmCTestSubmitHandler_h
  14. #define cmCTestSubmitHandler_h
  15. #include "cmCTestGenericHandler.h"
  16. /** \class cmCTestSubmitHandler
  17. * \brief Helper class for CTest
  18. *
  19. * Submit testing results
  20. *
  21. */
  22. class cmCTestSubmitHandler : public cmCTestGenericHandler
  23. {
  24. public:
  25. cmTypeMacro(cmCTestSubmitHandler, cmCTestGenericHandler);
  26. cmCTestSubmitHandler();
  27. ~cmCTestSubmitHandler() { this->LogFile = 0; }
  28. /*
  29. * The main entry point for this class
  30. */
  31. int ProcessHandler();
  32. void Initialize();
  33. private:
  34. void SetLogFile(std::ostream* ost) { this->LogFile = ost; }
  35. /**
  36. * Submit file using various ways
  37. */
  38. bool SubmitUsingFTP(const cmStdString& localprefix,
  39. const std::set<cmStdString>& files,
  40. const cmStdString& remoteprefix,
  41. const cmStdString& url);
  42. bool SubmitUsingHTTP(const cmStdString& localprefix,
  43. const std::set<cmStdString>& files,
  44. const cmStdString& remoteprefix,
  45. const cmStdString& url);
  46. bool SubmitUsingSCP(const cmStdString& scp_command,
  47. const cmStdString& localprefix,
  48. const std::set<cmStdString>& files,
  49. const cmStdString& remoteprefix,
  50. const cmStdString& url);
  51. bool TriggerUsingHTTP(const std::set<cmStdString>& files,
  52. const cmStdString& remoteprefix,
  53. const cmStdString& url);
  54. bool SubmitUsingXMLRPC(const cmStdString& localprefix,
  55. const std::set<cmStdString>& files,
  56. const cmStdString& remoteprefix,
  57. const cmStdString& url);
  58. std::string GetSubmitResultsPrefix();
  59. cmStdString HTTPProxy;
  60. int HTTPProxyType;
  61. cmStdString HTTPProxyAuth;
  62. cmStdString FTPProxy;
  63. int FTPProxyType;
  64. std::ostream* LogFile;
  65. bool CDash;
  66. };
  67. #endif