1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: palmos/snglinst.cpp
3 // Purpose: implements wxSingleInstanceChecker class for Win32 using
5 // Author: William Osborne
9 // Copyright: (c) William Osborne
10 // Licence: wxWindows licence
11 ///////////////////////////////////////////////////////////////////////////////
13 // ============================================================================
15 // ============================================================================
17 // ----------------------------------------------------------------------------
19 // ----------------------------------------------------------------------------
21 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
22 #pragma implementation "snglinst.h"
25 // For compilers that support precompilation, includes "wx.h".
26 #include "wx/wxprec.h"
32 #if wxUSE_SNGLINST_CHECKER
35 #include "wx/string.h"
39 #include "wx/snglinst.h"
41 #include "wx/palmos/private.h"
43 // ----------------------------------------------------------------------------
44 // wxSingleInstanceCheckerImpl: the real implementation class
45 // ----------------------------------------------------------------------------
47 class WXDLLEXPORT wxSingleInstanceCheckerImpl
50 wxSingleInstanceCheckerImpl()
54 bool Create(const wxString
& name
)
59 bool WasOpened() const
64 ~wxSingleInstanceCheckerImpl()
69 // the result of the CreateMutex() call
72 // the mutex handle, may be NULL
75 DECLARE_NO_COPY_CLASS(wxSingleInstanceCheckerImpl
)
78 // ============================================================================
79 // wxSingleInstanceChecker implementation
80 // ============================================================================
82 bool wxSingleInstanceChecker::Create(const wxString
& name
,
83 const wxString
& WXUNUSED(path
))
88 bool wxSingleInstanceChecker::IsAnotherRunning() const
93 wxSingleInstanceChecker::~wxSingleInstanceChecker()
97 #endif // wxUSE_SNGLINST_CHECKER