cmake/Source/CPack/WiX/cmWIXAccessControlList.h

45 lines
1.3 KiB
C
Raw Normal View History

2015-04-27 22:25:09 +02:00
/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2014 Kitware, Inc.
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
#ifndef cmWIXAccessControlList_h
#define cmWIXAccessControlList_h
#include "cmWIXSourceWriter.h"
2016-07-09 11:21:54 +02:00
#include <CPack/cmCPackLog.h>
#include <cmInstalledFile.h>
2015-04-27 22:25:09 +02:00
class cmWIXAccessControlList
{
public:
2016-07-09 11:21:54 +02:00
cmWIXAccessControlList(cmCPackLog* logger,
cmInstalledFile const& installedFile,
cmWIXSourceWriter& sourceWriter);
2015-04-27 22:25:09 +02: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-07-09 11:21:54 +02:00
void EmitBooleanAttribute(std::string const& entry, std::string const& name);
2015-04-27 22:25:09 +02:00
cmCPackLog* Logger;
cmInstalledFile const& InstalledFile;
2016-07-09 11:21:54 +02:00
cmWIXSourceWriter& SourceWriter;
2015-04-27 22:25:09 +02:00
};
#endif