cmQtAutoGeneratorCommon.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmQtAutoGeneratorCommon_h
  4. #define cmQtAutoGeneratorCommon_h
  5. #include <cmConfigure.h>
  6. #include <string>
  7. #include <vector>
  8. class cmQtAutoGeneratorCommon
  9. {
  10. // - Types and statics
  11. public:
  12. static const char* listSep;
  13. enum GeneratorType
  14. {
  15. MOC,
  16. UIC,
  17. RCC
  18. };
  19. public:
  20. /// @brief Returns a the string escaped and enclosed in quotes
  21. ///
  22. static std::string Quoted(const std::string& text);
  23. /// @brief Reads the resource files list from from a .qrc file
  24. /// @arg fileName Must be the absolute path of the .qrc file
  25. /// @return True if the rcc file was successfully parsed
  26. static bool RccListInputs(const std::string& qtMajorVersion,
  27. const std::string& rccCommand,
  28. const std::string& fileName,
  29. std::vector<std::string>& files,
  30. std::string* errorMessage = CM_NULLPTR);
  31. };
  32. #endif