cmWIXAccessControlList.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 "cmWIXSourceWriter.h"
  13. #include <CPack/cmCPackLog.h>
  14. #include <cmInstalledFile.h>
  15. class cmWIXAccessControlList
  16. {
  17. public:
  18. cmWIXAccessControlList(cmCPackLog* logger,
  19. cmInstalledFile const& installedFile,
  20. cmWIXSourceWriter& sourceWriter);
  21. bool Apply();
  22. private:
  23. void CreatePermissionElement(std::string const& entry);
  24. void ReportError(std::string const& entry, std::string const& message);
  25. bool IsBooleanAttribute(std::string const& name);
  26. void EmitBooleanAttribute(std::string const& entry, std::string const& name);
  27. cmCPackLog* Logger;
  28. cmInstalledFile const& InstalledFile;
  29. cmWIXSourceWriter& SourceWriter;
  30. };
  31. #endif