lib Library API Documentation

koApplication.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017    Boston, MA 02111-1307, USA.
00018 */
00019 
00020 #ifndef __ko_app_h__
00021 #define __ko_app_h__
00022 
00023 namespace std { }
00024 using namespace std;
00025 #include <kapplication.h>
00026 
00027 // Be VERY careful with this. There is no KoApplication when embedded into e.g. konqueror
00028 // Ah well, don't even use it at all, that would be better.
00029 // Next version: remove completely
00030 #define KOAPP ((KoApplication *)KApplication::kApplication())
00031 
00032 class KoApplicationPrivate;
00033 
00048 class KoApplication : public KApplication
00049 {
00050     Q_OBJECT
00051 
00052 public:
00057     KoApplication();
00058 
00062     virtual ~KoApplication();
00063 
00064     // ######### Bad name
00076     virtual bool start();
00077 
00081     static bool isStarting();
00082 
00083 private:
00084     bool initHack();
00085     KoApplicationPrivate* d;
00086     static bool m_starting ; // is the application starting or not
00087     class ResetStarting;
00088     friend class ResetStarting;
00089 };
00090 
00091 #endif
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Mar 20 14:25:24 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003