-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmemory.h
More file actions
37 lines (28 loc) · 711 Bytes
/
memory.h
File metadata and controls
37 lines (28 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef MEMORY_H
#define MEMORY_H
#include <QObject>
#include <QCoreApplication>
#include <QTimer>
#include <QTextStream>
#include <QFile>
#include <QDebug>
#include <QRegularExpression>
class Memory : public QObject
{
Q_OBJECT
Q_PROPERTY(QVariantMap memory READ memory WRITE setMemory NOTIFY memoryChanged FINAL)
public:
explicit Memory(QObject *parent = nullptr);
QVariantMap memory() const;
void setMemory(const QVariantMap &newMemory);
Q_INVOKABLE QString dataFromCpp(QString key);
signals:
void memoryChanged(QVariantMap map);
private:
QVariantMap m_memory;
QVariantMap m_tempMem;
QTimer m_timer;
bool getOK;
void getMemory();
};
#endif // MEMORY_H