fe707a23fc
Global and user settings files can be declared. For global ones an update policy can be specified. If not specified, the settings file is not included in the package, but created by the program (or user) later. If an update type is specified, it defines what to do with the settings file when updating the package to a newer version. User settings files are never included in the package; they are always created by the program or the user. If the package contains a template/ default settings file, it can be declared, but for informative purposes only.
40 lines
776 B
C++
40 lines
776 B
C++
/*
|
|
* Copyright 2013, Haiku, Inc.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _PACKAGE__USER_SETTINGS_FILE_INFO_H_
|
|
#define _PACKAGE__USER_SETTINGS_FILE_INFO_H_
|
|
|
|
|
|
#include <String.h>
|
|
|
|
|
|
namespace BPackageKit {
|
|
|
|
|
|
class BUserSettingsFileInfo {
|
|
public:
|
|
BUserSettingsFileInfo();
|
|
BUserSettingsFileInfo(const BString& path,
|
|
const BString& templatePath = BString());
|
|
~BUserSettingsFileInfo();
|
|
|
|
status_t InitCheck() const;
|
|
|
|
const BString& Path() const;
|
|
const BString& TemplatePath() const;
|
|
|
|
void SetTo(const BString& path,
|
|
const BString& templatePath = BString());
|
|
|
|
private:
|
|
BString fPath;
|
|
BString fTemplatePath;
|
|
};
|
|
|
|
|
|
} // namespace BPackageKit
|
|
|
|
|
|
#endif // _PACKAGE__USER_SETTINGS_FILE_INFO_H_
|