Newer
Older
ZXSSCJ / DevStatusAcq / common / ConstCache.h
TAN YUE on 10 Nov 2021 538 bytes 20211110 设备设置指令
#ifndef CONSTCACHE_H
#define CONSTCACHE_H

#include <QObject>
#include <QMap>
#include <QList>
#include <QJsonObject>

class ConstCache : public QObject
{
    Q_OBJECT
public:
    ~ConstCache() {};
    ConstCache(const ConstCache&)=delete;
    ConstCache& operator=(const ConstCache&)=delete;

    static ConstCache& getInstance() {
        static ConstCache instance;
        return instance;
    }

    QMap<QString, QString> deviceTypes;
    QList<QJsonObject> deviceList;

private:
    ConstCache() {};

};

#endif // CONSTCACHE_H