2016-09-27 22:01:08 +03:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2014-08-09 16:50:49 +04:00
|
|
|
#ifndef cmWIXAccessControlList_h
|
|
|
|
#define cmWIXAccessControlList_h
|
|
|
|
|
2016-04-29 16:40:20 +03:00
|
|
|
#include "cmWIXSourceWriter.h"
|
|
|
|
|
2014-08-09 16:50:49 +04:00
|
|
|
#include <CPack/cmCPackLog.h>
|
2016-04-29 17:53:13 +03:00
|
|
|
#include <cmInstalledFile.h>
|
2014-08-09 16:50:49 +04:00
|
|
|
|
|
|
|
class cmWIXAccessControlList
|
|
|
|
{
|
|
|
|
public:
|
2016-05-16 17:34:04 +03:00
|
|
|
cmWIXAccessControlList(cmCPackLog* logger,
|
|
|
|
cmInstalledFile const& installedFile,
|
|
|
|
cmWIXSourceWriter& sourceWriter);
|
2014-08-09 16:50:49 +04:00
|
|
|
|
|
|
|
bool Apply();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void CreatePermissionElement(std::string const& entry);
|
|
|
|
|
|
|
|
void ReportError(std::string const& entry, std::string const& message);
|
|
|
|
|
|
|
|
bool IsBooleanAttribute(std::string const& name);
|
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
void EmitBooleanAttribute(std::string const& entry, std::string const& name);
|
2014-08-09 16:50:49 +04:00
|
|
|
|
|
|
|
cmCPackLog* Logger;
|
|
|
|
cmInstalledFile const& InstalledFile;
|
2016-05-16 17:34:04 +03:00
|
|
|
cmWIXSourceWriter& SourceWriter;
|
2014-08-09 16:50:49 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|