-
Notifications
You must be signed in to change notification settings - Fork 4
/
picturefile.h
62 lines (49 loc) · 1.21 KB
/
picturefile.h
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef PICTUREFILE_H
#define PICTUREFILE_H
#include "tibiafile.h"
#include "tibiasprite.h"
#include "spritefile.h"
class UserThread;
class PictureFile : public TibiaFile
{
Q_OBJECT
public:
PictureFile( QObject *parent );
virtual ~PictureFile( void );
virtual bool createNew( void );
virtual bool isLoaded( void ) const {
return m_loaded;
};
virtual void unload( void );
virtual bool load( const QString& ) {
return false;
};
//virtual bool save( const QString& );
virtual bool save( const QString& ) {
return false;
};
virtual bool idle( const QString&, bool );
TibiaSprite loadPicture( quint16 pictureId );
virtual PictureFile *getPictureFile() {
return this;
};
virtual const PictureFile *getPictureFile() const {
return this;
};
quint16 getCount( void ) const {
return m_count;
};
void setCount( quint16 count ) {
m_count = count;
};
TibiaSprite getPicture( quint16 id );
UserThread *getThread( void ) const {
return m_thread;
};
private:
quint16 m_count;
UserThread *m_thread;
bool m_loaded;
mutable QMutex mutex;
};
#endif // PICTUREFILE_H