Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
ejconfigmanager.h 907 Bytes
Copy Edit Web IDE Raw Blame History
unix_chen authored 2018-03-26 07:59 . init
#ifndef EJCONFIGMANAGER_H
#define EJCONFIGMANAGER_H
#include "ejconfig.h"
#include <QMap>
class EJConfigManager
{
public:
~EJConfigManager();
static EJConfigManager *getInstance();
public:
bool addConfig(const QString &name);
EJConfig* delConfig(const QString &name);
EJConfig* getConfig(const QString &name);
bool putConfig(const QString &name, EJConfig* cnf);
static QString getAttrByName(const QString &xmlName, const QStringList &lable, const QString &attrName);
static QStringList getAttr(const QString &xmlName, const QStringList &lable, const QString &subLable, const QString &attrName);
static QStringList getValueByName(const QString &xmlName, const QStringList &lable, const QString &subLable);
private:
EJConfigManager(){}
private:
QMap<QString, EJConfig*> m_map;
static EJConfigManager *m_instance;
};
#endif // EJCONFIGMANAGER_H

Comment ( 0 )

Sign in for post a comment