KnowIt – tool for managing notes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

knowitapp.h 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /***************************************************************************
  2. knowitApplication.h - description
  3. -------------------
  4. begin : wto maj 20 2003
  5. copyright : (C) 2003 by Micha³ Rudolf
  6. email : mrudolf@kdewebdev.org
  7. ***************************************************************************/
  8. /***************************************************************************
  9. * *
  10. * This program is free software; you can redistribute it and/or modify *
  11. * it under the terms of the GNU General Public License as published by *
  12. * the Free Software Foundation; either version 2 of the License, or *
  13. * (at your option) any later version. *
  14. * *
  15. ***************************************************************************/
  16. #ifndef __KNOWIT_APP_H__
  17. #define __KNOWIT_APP_H__
  18. #include <kuniqueapplication.h>
  19. class KnowitApplication : public KUniqueApplication
  20. {
  21. Q_OBJECT
  22. public:
  23. KnowitApplication(bool allowStyles = true, bool GUIEnabled = true);
  24. ~KnowitApplication();
  25. /** Commits all Application-relevant data on shutdown.
  26. *
  27. * This function is called when the TQSessionManager wants to close the
  28. * Application. It is reimplemented to set the boolean sessionClose flag.
  29. *
  30. * @param sm The TQSessionManager object.
  31. */
  32. virtual void commitData(TQSessionManager& sm);
  33. /** Returns TRUE if the Application is closed by the session manager. */
  34. bool closeByLogout() {return(mcloseByLogout);}
  35. private:
  36. bool mcloseByLogout;
  37. };
  38. #endif