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
38
39
40
41
42
43
44
45
46
47
|
#ifndef VDPDATASTORE_H
#define VDPDATASTORE_H
#include "SimpleHexRequest.h"
#include <QObject>
class VDPDataStore : public QObject, public SimpleHexRequestUser
{
Q_OBJECT
public:
static VDPDataStore& instance();
const unsigned char* getVramPointer() const;
const unsigned char* getPalettePointer() const;
const unsigned char* getRegsPointer() const;
const unsigned char* getStatusRegsPointer() const;
const unsigned char* getVdpVramPointer() const;
private:
VDPDataStore();
~VDPDataStore();
virtual void DataHexRequestReceived();
unsigned char* vram;
bool old_version; // VRAM debuggable has old or new name?
bool got_version; // is the above boolean already filled in?
friend class VDPDataStoreVersionCheck;
public slots:
void refresh();
signals:
void dataRefreshed(); // The refresh got the new data
/** This might become handy later on, for now we only need the dataRefreshed
*
void dataChanged(); //any of the contained data has changed
void vramChanged(); //only the vram changed
void paletteChanged(); //only the palette changed
void regsChanged(); //only the regs changed
void statusRegsChanged(); //only the regs changed
*/
};
#endif /* VDPDATASTORE_H */
|