mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 15:09:23 +08:00
Add MMDVM lock file based on an idea by DB1OFH.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user