Menu

[efa3d9]: / src / vymlock.h  Maximize  Restore  History

Download this file

34 lines (29 with data), 693 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
#ifndef VYMLOCK_H
#define VYMLOCK_H
extern bool debug;
class VymLock {
public:
enum LockState { Undefined, LockedByMyself, LockedByOther, NotWritable };
void operator==(const VymLock &);
VymLock();
VymLock(const QString &fn);
~VymLock();
void init();
bool tryLock();
LockState getState();
bool releaseLock();
bool removeLockForced();
void setAuthor(const QString &s);
QString getAuthor();
void setHost(const QString &s);
QString getHost();
void setMapPath(const QString &path);
QString getMapPath();
private:
QString author;
QString host;
QString mapPath;
QString lockPath;
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.