diff options
Diffstat (limited to 'src/toplevel.h')
-rw-r--r-- | src/toplevel.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/toplevel.h b/src/toplevel.h new file mode 100644 index 00000000..8eb0243a --- /dev/null +++ b/src/toplevel.h @@ -0,0 +1,27 @@ +#ifndef __TOPLEVEL_H__ +#define __TOPLEVEL_H__ + + +#include "kdevmainwindow.h" + + +/**\brief This class handles the single object of type KDevMainWindow. + +It is completely static (all methods and attributes). +*/ + +class TopLevel +{ +public: + + static KDevMainWindow *getInstance(); //!< Get a pointer to the single KDevTopLevel object + static bool mainWindowValid(); + static void invalidateInstance(KDevMainWindow *instance); //!< Signal that the object has been (or is about to be) destroyed + +private: + + static KDevMainWindow *s_instance; //!< Pointer to the single KDevTopLevel object or 0L + +}; + +#endif |