mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #198 , added utility methods for read/write settings
This commit is contained in:
@@ -49,12 +49,27 @@ namespace BlackMisc
|
||||
//! \brief Wrong path messages
|
||||
static BlackMisc::CStatusMessageList wrongPathMessages(const QString &path = "");
|
||||
|
||||
//! \brief Value not changed message
|
||||
static BlackMisc::CStatusMessage valueNotChangedMessage(const QString &valueName);
|
||||
|
||||
//! \brief Value changed message
|
||||
static BlackMisc::CStatusMessage valueChangedMessage(const QString &valueName);
|
||||
|
||||
//! \brief Remove leading path
|
||||
static QString removeLeadingPath(const QString &path);
|
||||
|
||||
//! \brief Append setting paths
|
||||
static QString appendPaths(const QString &part1, const QString &part2, const QString &part3 = "");
|
||||
|
||||
//! \brief prepare the settings directory, if required create it
|
||||
static bool initSettingsDirectory();
|
||||
|
||||
//! \brief get the settings directory
|
||||
static const QString &getSettingsDirectory();
|
||||
|
||||
//! \brief get the settings directory
|
||||
static const QString &getSettingsFile();
|
||||
|
||||
};
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user