OpenCPN Partial API docs
|
InstanceCheck implementation based on <unistd.h> i. More...
#include <std_instance_chk.h>
Public Member Functions | |
bool | IsMainInstance () override |
Return true if this process is the primary opencpn instance. | |
void | CleanUp () override |
Remove all persistent instance state, including possible lock file and defunct opencpn processes. | |
![]() | |
virtual void | WaitUntilValid () |
Wait until this object can be used for example for Dbus connection. | |
virtual void | OnExit () |
Do whatever needed before wxWidget's checks triggers. | |
Additional Inherited Members | |
![]() | |
static InstanceCheck & | GetInstance () |
InstanceCheck implementation based on <unistd.h> i.
e. Linux/MacOS
Definition at line 27 of file std_instance_chk.h.
StdInstanceCheck::StdInstanceCheck | ( | ) |
Definition at line 51 of file std_instance_chk.cpp.
|
virtual |
Definition at line 85 of file std_instance_chk.cpp.
|
overridevirtual |
Remove all persistent instance state, including possible lock file and defunct opencpn processes.
Reimplemented from InstanceCheck.
Definition at line 68 of file std_instance_chk.cpp.
|
overridevirtual |
Return true if this process is the primary opencpn instance.
Implements InstanceCheck.
Definition at line 66 of file std_instance_chk.cpp.