28 lines
559 B
C++
28 lines
559 B
C++
#ifndef DATASYNCMANAGER_H
|
|
#define DATASYNCMANAGER_H
|
|
|
|
#include <QObject>
|
|
#include <QHash>
|
|
#include "global.h"
|
|
|
|
class DataSyncManager : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
static DataSyncManager& instance();
|
|
|
|
void registerPublicGroup(const QString&); //注册公共属性组
|
|
AttributeGroup getGroup(int);
|
|
void syncGroupVersion(int, int);
|
|
int getGropuVersion(int);//获取属性组的版本号
|
|
|
|
private:
|
|
explicit DataSyncManager();
|
|
~DataSyncManager();
|
|
|
|
QHash<int, AttributeGroup> m_publicGroups;
|
|
};
|
|
|
|
#endif //DATASYNCMANAGER_H
|