forked from dimbor-ru/opennx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMacUninstallApp.h
57 lines (46 loc) · 1.64 KB
/
MacUninstallApp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/////////////////////////////////////////////////////////////////////////////
// Name: macuninstallapp.h
// Purpose:
// Author: Fritz Elfert
// Modified by:
// Created: Fri 11 Sep 2009 01:17:42 PM CEST
// RCS-ID:
// Copyright: (C) 2009 by Fritz Elfert
// Licence:
/////////////////////////////////////////////////////////////////////////////
#ifndef _MACUNINSTALLAPP_H_
#define _MACUNINSTALLAPP_H_
#include "wx/image.h"
#include <wx/intl.h>
#include <wx/hashset.h>
class wxArrayString;
WX_DECLARE_HASH_SET(wxString, wxStringHash, wxStringEqual, StringSet);
class MacUninstallApp: public wxApp
{
DECLARE_CLASS( MacUninstallApp )
DECLARE_EVENT_TABLE()
public:
MacUninstallApp();
virtual void OnInitCmdLine(wxCmdLineParser& parser);
virtual bool OnCmdLineParsed(wxCmdLineParser& parser);
virtual bool OnInit();
virtual int OnExit();
private:
wxVariant GetPlistValue(const wxXmlDocument &doc, const wxString &docname, const wxString &keyname);
bool ElevatedUninstall(const wxString &, const wxString &);
bool DoUninstall(const wxString &, const wxString &);
bool TestReceipt(const wxString &, const wxString &);
bool FetchBOM(const wxString &, wxArrayString &, wxArrayString &);
wxString GetInstalledPath(const wxString &);
wxString MacAuthError(long);
bool m_bBatchMode;
bool m_bTestMode;
bool m_bCancelled;
wxLocale m_cLocale;
wxString m_sSelfPath;
wxString m_sLogName;
StringSet m_nodelete;
};
DECLARE_APP(MacUninstallApp)
#endif
// _MACUNINSTALLAPP_H_