1//--------------------------------------------------------------------------- 2// This file is generated by wxPython's SIP generator. Do not edit by hand. 3// 4// Copyright: (c) 2018 by Total Control Software 5// License: wxWindows License 6// 7// This file will be included by _core.sip 8// 9//--------------------------------------------------------------------------- 10 11//--------------------------------------------------------------------------- 12 13class wxSingleInstanceChecker 14{ 15 %Docstring 16 SingleInstanceChecker() 17 SingleInstanceChecker(name, path=EmptyString) 18 19 wxSingleInstanceChecker class allows checking that only a single 20 instance of a program is running. 21 %End 22 %TypeHeaderCode 23 #include <wx/snglinst.h> 24 %End 25 26public: 27 wxSingleInstanceChecker(); 28 29 wxSingleInstanceChecker( 30 const wxString & name, 31 const wxString & path = wxEmptyString 32 ); 33 34 ~wxSingleInstanceChecker(); 35 36 bool Create( 37 const wxString & name, 38 const wxString & path = wxEmptyString 39 ); 40 %Docstring 41 Create(name, path=EmptyString) -> bool 42 43 Initialize the object if it had been created using the default 44 constructor. 45 %End 46 47 bool CreateDefault(); 48 %Docstring 49 CreateDefault() -> bool 50 51 Calls Create() with default name. 52 %End 53 54 bool IsAnotherRunning() const; 55 %Docstring 56 IsAnotherRunning() -> bool 57 58 Returns true if another copy of this program is already running and 59 false otherwise. 60 %End 61 62 private: 63 wxSingleInstanceChecker(const wxSingleInstanceChecker&); 64 65 66 private: 67 wxSingleInstanceChecker& operator=(const wxSingleInstanceChecker&); 68 69 70}; // end of class wxSingleInstanceChecker 71 72 73 74//--------------------------------------------------------------------------- 75 76