Add MMDVM lock file based on an idea by DB1OFH.

This commit is contained in:
Jonathan Naylor
2018-10-10 20:05:24 +01:00
parent 867e1745d8
commit edaf37101a
6 changed files with 93 additions and 4 deletions

View File

@@ -35,6 +35,8 @@
#include <string>
class CMMDVMHost
{
public:
@@ -83,6 +85,8 @@ private:
std::string m_callsign;
unsigned int m_id;
std::string m_cwCallsign;
bool m_lockFileEnabled;
std::string m_lockFileName;
void readParams();
bool createModem();
@@ -94,6 +98,9 @@ private:
bool createPOCSAGNetwork();
void setMode(unsigned char mode);
void createLockFile();
void removeLockFile();
};
#endif