Menu

[c54480]: / vymlock.h  Maximize  Restore  History

Download this file

35 lines (30 with data), 686 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
#ifndef VYMLOCK_H
#define VYMLOCK_H
extern bool debug;
class VymLock
{
public:
enum LockState {undefined, lockedByMyself, lockedByOther, notWritable};
VymLock();
VymLock( const QString &fn );
~VymLock();
void init();
bool tryLock();
LockState getState();
bool removeLock();
bool releaseLock();
bool rename( const QString &newMapPath);
void setAuthor(const QString &s);
QString getAuthor();
void setHost(const QString &s);
QString getHost();
void setMapPath(const QString &s);
QString getMapPath();
private:
QWidget *parent;
QString author;
QString host;
QString mapPath;
LockState state;
};
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.