#31 Squashed merge of commits relating to the plugin system and IContext redesign, from the 'interconnect' branch.

This commit is contained in:
Mathew Sutcliffe
2013-04-17 01:26:54 +01:00
parent 4e812975b4
commit 9916419678
57 changed files with 1517 additions and 1092 deletions

View File

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