1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/snglinst.cpp
3 // Purpose: implements wxSingleInstanceChecker class for Win32 using
5 // Author: William Osborne - minimal working wxPalmOS port
9 // Copyright: (c) William Osborne
10 // Licence: wxWindows licence
11 ///////////////////////////////////////////////////////////////////////////////
13 // ============================================================================
15 // ============================================================================
17 // ----------------------------------------------------------------------------
19 // ----------------------------------------------------------------------------
21 // For compilers that support precompilation, includes "wx.h".
22 #include "wx/wxprec.h"
28 #if wxUSE_SNGLINST_CHECKER
31 #include "wx/string.h"
35 #include "wx/snglinst.h"
37 #include "wx/palmos/private.h"
39 // ----------------------------------------------------------------------------
40 // wxSingleInstanceCheckerImpl: the real implementation class
41 // ----------------------------------------------------------------------------
43 class WXDLLEXPORT wxSingleInstanceCheckerImpl
46 wxSingleInstanceCheckerImpl()
50 bool Create(const wxString
& name
)
55 bool WasOpened() const
60 ~wxSingleInstanceCheckerImpl()
65 // the result of the CreateMutex() call
68 // the mutex handle, may be NULL
71 DECLARE_NO_COPY_CLASS(wxSingleInstanceCheckerImpl
)
74 // ============================================================================
75 // wxSingleInstanceChecker implementation
76 // ============================================================================
78 bool wxSingleInstanceChecker::Create(const wxString
& name
,
79 const wxString
& WXUNUSED(path
))
84 bool wxSingleInstanceChecker::IsAnotherRunning() const
89 wxSingleInstanceChecker::~wxSingleInstanceChecker()
93 #endif // wxUSE_SNGLINST_CHECKER