main.h

00001 /*
00002    Copyright (c) 2001 Waldo Bastian <bastian@kde.org>
00003    Copyright (c) 2004 Frans Englich <frans.englich@telia.com>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 
00020 */
00021 
00022 #ifndef __kcmshell_h__
00023 #define __kcmshell_h__
00024 
00025 #include <dcopobject.h>
00026 
00027 #include <kapplication.h>
00028 #include <kcmultidialog.h>
00029 
00033 class KCMShell : public KApplication
00034 {
00035     Q_OBJECT
00036 
00037 public:
00038 
00046     void setDCOPName(const QCString &dcopName, bool rootMode );
00047 
00052     void waitForExit();
00053 
00057     bool isRunning();
00058 
00059 private slots:
00060 
00063     void appExit( const QCString &appId );
00064 
00065 private:
00066 
00071     QCString m_dcopName;
00072 
00073 };
00074 
00075 
00082 class KCMShellMultiDialog : public KCMultiDialog, public DCOPObject
00083 {
00084     Q_OBJECT
00085     K_DCOP
00086 
00087 public:
00088 
00091     KCMShellMultiDialog( int dialogFace, const QString& caption,
00092             QWidget *parent=0, const char *name=0, bool modal=false);
00093 
00094 k_dcop:
00095 
00098     virtual void activate( QCString asn_id );
00099 
00100 };
00101 
00102 
00103 // vim: sw=4 et sts=4
00104 #endif //__kcmshell_h__
KDE Home | KDE Accessibility Home | Description of Access Keys