kutils Library API Documentation

kcmoduleproxyIfaceImpl.h

00001 /*
00002  * Copyright (C) 2004 Frans Englich <frans.englich@telia.com>
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 version 2 as published by the Free Software Foundation.
00007  *
00008  * This library is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011  * Library General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU Library General Public License
00014  * along with this library; see the file COPYING.LIB.  If not, write to
00015  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00016  * Boston, MA 02111-1307, USA.
00017  */
00018 
00019 #ifndef __KCMODULEPROXYIFACEIMPL_H__
00020 #define __KCMODULEPROXYIFACEIMPL_H__
00021 
00022 #include "kcmoduleproxyIface.h"
00023 
00024 class KCModuleProxy;
00025 
00026 /***************************************************************/
00027 class KCModuleProxyIfaceImpl: public QObject, virtual public KCModuleProxyIface
00028 {
00029     /* KDE4 Merge KCModuleProxyIfaceImpl with KCModuleProxy(MI)
00030      * if it doesn't break what DCOPClient it binds to.
00031      * Update: This is probably not possible, since we don't want the DCOPObject when 
00032      * we're running in root mode. */
00033 
00034     Q_OBJECT
00035 
00036 public:
00037 
00038     /* Reimplementations of DCOP members */
00039     KCModuleProxyIfaceImpl( const QCString& name, KCModuleProxy* const client );
00040 
00041     virtual void save();
00042 
00043     virtual void load();
00044 
00045     virtual void defaults();
00046 
00047     virtual QString applicationName();
00048 
00049     virtual QString quickHelp();
00050 
00051     virtual bool changed();
00052 public slots:
00053 
00057     void changedRelay( bool c );
00058 
00062     void quickHelpRelay();
00063     
00064 
00065 private:
00066 
00067     KCModuleProxy* p;
00068 };
00069 /***************************************************************/
00070 
00071 
00072 
00073 
00074 /***************************************************************/
00075 class KCModuleProxyRootCommunicatorImpl: public QObject, 
00076     virtual public KCModuleProxyRootDispatcher
00077 {
00078     Q_OBJECT
00079 
00080 public:
00081     KCModuleProxyRootCommunicatorImpl( const QCString& name, KCModuleProxy* const client );
00082 
00083     /* Reimplementations of DCOP members */
00084     virtual void changed( bool c );
00085 
00086     virtual void quickHelpChanged();
00087 
00088 KCModuleProxy* p;
00089 };
00090 /***************************************************************/
00091 
00092 #endif // __KCMODULEPROXYIFACEIMPL_H__
00093 
KDE Logo
This file is part of the documentation for kutils Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Feb 8 08:03:16 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003