mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
#31 Squashed merge of commits relating to the plugin system and IContext redesign, from the 'interconnect' branch.
This commit is contained in:
@@ -8,10 +8,13 @@
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <QMap>
|
||||
#include <QString>
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
|
||||
class IContext;
|
||||
|
||||
class CValue
|
||||
{
|
||||
public:
|
||||
@@ -59,12 +62,13 @@ namespace BlackMisc
|
||||
//! Configuration class.
|
||||
/*!
|
||||
This class implements the configuration part of the library.
|
||||
\warning it is not safe to use this from within
|
||||
*/
|
||||
class CConfig
|
||||
{
|
||||
public:
|
||||
|
||||
CConfig(const QString& filename, const QString& separator = "=", bool isRelative = false);
|
||||
CConfig(IContext &context, const QString& filename, const QString& separator = "=", bool isRelative = false);
|
||||
|
||||
//! Sets the value of the specified key.
|
||||
/*!
|
||||
@@ -151,6 +155,7 @@ namespace BlackMisc
|
||||
|
||||
protected:
|
||||
|
||||
IContext &m_context;
|
||||
QString m_configfile;
|
||||
QString m_separator;
|
||||
typedef QMap<QString, CValue> TValueMap;
|
||||
|
||||
Reference in New Issue
Block a user