summaryrefslogtreecommitdiffstats
path: root/src/knowitapp.h
blob: 209ed54663d3820c8bfa06277805669fdf28ad1b (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/***************************************************************************
                          knowitApplication.h  -  description
                             -------------------
    begin                : wto maj 20 2003
    copyright            : (C) 2003 by Micha³ Rudolf
    email                : mrudolf@tdewebdev.org
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef __KNOWIT_APP_H__
#define __KNOWIT_APP_H__
#include <kuniqueapplication.h>

class KnowitApplication : public KUniqueApplication
{
Q_OBJECT
  TQ_OBJECT

public:
  KnowitApplication(bool allowStyles = true, bool GUIEnabled = true);
  ~KnowitApplication();
  /** Commits all Application-relevant data on shutdown.
    *
    * This function is called when the TQSessionManager wants to close the
    * Application. It is reimplemented to set the boolean sessionClose flag.
    *
    * @param sm  The TQSessionManager object.
    */
  virtual void commitData(TQSessionManager& sm);
  /** Returns TRUE if the Application is closed by the session manager. */
  bool closeByLogout() {return(mcloseByLogout);}

private:
  bool mcloseByLogout;
};

#endif