refs #198 , added utility methods for read/write settings

This commit is contained in:
Klaus Basan
2014-04-01 12:12:48 +02:00
parent 0d53d44157
commit 2a0514fff9
2 changed files with 64 additions and 0 deletions

View File

@@ -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