Version: 0.6.0
app.h
1 /******************************************************************************
2  * Project: wxGIS
3  * Purpose: global functions.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2011 Dmitry Baryshnikov
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  ****************************************************************************/
21 #pragma once
22 
23 #include "wxgis/core/core.h"
24 
32 class WXDLLIMPEXP_GIS_CORE IApplication : public wxObject
33 {
34  DECLARE_ABSTRACT_CLASS(IApplication)
35 public:
39  virtual ~IApplication(void) {};
40  //pure virtual
41  virtual void OnAppAbout(void) = 0;
42  virtual void OnAppOptions(void) = 0;
43  virtual wxString GetAppName(void) const = 0;
44  virtual wxString GetAppDisplayName(void) const = 0;
45  virtual wxString GetAppDisplayNameShort(void) const = 0;
46  virtual wxString GetAppVersionString(void) const = 0;
47  virtual bool CreateApp(void) = 0;
48  virtual bool SetupLog(const wxString &sLogPath, const wxString &sNamePrefix = wxEmptyString) = 0;
49  virtual wxString GetDecimalPoint(void) const = 0;
50  virtual bool SetupLoc(const wxString &sLoc, const wxString &sLocPath) = 0;
51  virtual bool SetupSys(const wxString &sSysPath) = 0;
52  virtual void SetDebugMode(bool bDebugMode) = 0;
53 };
54 
58 WXDLLIMPEXP_GIS_CORE IApplication* const GetApplication();
63 WXDLLIMPEXP_GIS_CORE void SetApplication(IApplication* pApp);
64 
virtual ~IApplication(void)
A destructor.
Definition: app.h:39
Definition: app.h:32