]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/module.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Modules handling
4 // Author: Wolfram Gloger/adapted by Guilhem Lavaux
8 // Copyright: (c) Wolfram Gloger and Guilhem Lavaux
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "module.h"
19 #include "wx/object.h"
23 class WXDLLEXPORT wxModule
: public wxObject
29 // If returns FALSE, quits the application immediately.
30 bool Init(void) { return OnInit(); }
31 void Exit(void) { OnExit(); }
33 // Override both of these
34 virtual bool OnInit(void) = 0;
35 virtual void OnExit(void) = 0;
37 static void RegisterModule(wxModule
* module);
38 static bool RegisterModules(void);
39 static bool InitializeModules(void);
40 static void CleanUpModules(void);
43 static wxList m_modules
;
45 DECLARE_CLASS(wxModule
)