cmWIXAccessControlList.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2014 Kitware, Inc.
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmWIXAccessControlList_h
  11. #define cmWIXAccessControlList_h
  12. #include <cmInstalledFile.h>
  13. #include <CPack/cmCPackLog.h>
  14. #include "cmWIXSourceWriter.h"
  15. class cmWIXAccessControlList
  16. {
  17. public:
  18. cmWIXAccessControlList(
  19. cmCPackLog *logger,
  20. cmInstalledFile const& installedFile,
  21. cmWIXSourceWriter &sourceWriter);
  22. bool Apply();
  23. private:
  24. void CreatePermissionElement(std::string const& entry);
  25. void ReportError(std::string const& entry, std::string const& message);
  26. bool IsBooleanAttribute(std::string const& name);
  27. void EmitBooleanAttribute(
  28. std::string const& entry, std::string const& name);
  29. cmCPackLog* Logger;
  30. cmInstalledFile const& InstalledFile;
  31. cmWIXSourceWriter &SourceWriter;
  32. };
  33. #endif