view include/main.h @ 13:f5ffc34f045a

manage DB.
author pyon@macmini
date Wed, 14 Nov 2018 19:43:40 +0900
parents 799b6008db8e
children c262e17de9b1
line wrap: on
line source

// Filename   : main.h
// Last Change: 2018-11-14  11:32:46.
//
#include <wx/wx.h>
#include <wx/config.h>
#include <wx/fileconf.h>
#include <wx/splash.h>
#include <wx/fs_zip.h>
#include <wx/filesys.h>

// private classes
// Define a new application type, each program should derive a class from wxApp
class MyApp : public wxApp
{
    DECLARE_CLASS( MyApp )
	private:
		wxFileConfig *config;
		wxString      conf_file;
		int			  splash = 150;
		wxString      unlock_key;
		wxString	  m_serveraddr;
		int     	  m_serverport;
		wxString	  m_dbdir;
        bool          develop;

	public:
		wxRect rect;

		MyApp();
		~MyApp();

		virtual bool OnInit();
		virtual int  OnExit();

		void InitSetting();
		void SaveSetting();
		wxString GetVersion();
		void SplashScreen( int ms );
		void RemoveFile( wxString pattern );
};

DECLARE_APP( MyApp )