summaryrefslogtreecommitdiffstats
path: root/src/toplevel.h
blob: 8eb0243a10a1c1034f0a6b0b8866df8846fb46b3 (plain)
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
#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