KUtils
kcmoduleproxyIfaceImpl.h
Go to the documentation of this file.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., 51 Franklin Street, Fifth Floor, 00016 * Boston, MA 02110-1301, USA. 00017 */ 00018 00019 #ifndef __KCMODULEPROXYIFACEIMPL_H__ 00020 #define __KCMODULEPROXYIFACEIMPL_H__ 00021 00022 #include "kcmoduleproxyIface.h" 00023 00024 class KCModuleProxy; 00025 00026 /***************************************************************/ 00029 class KCModuleProxyIfaceImpl: public QObject, virtual public KCModuleProxyIface 00030 { 00031 /* KDE4 Merge KCModuleProxyIfaceImpl with KCModuleProxy(MI) 00032 * if it doesn't break what DCOPClient it binds to. 00033 * Update: This is probably not possible, since we don't want the DCOPObject when 00034 * we're running in root mode. */ 00035 00036 Q_OBJECT 00037 00038 public: 00039 00040 /* Reimplementations of DCOP members */ 00041 KCModuleProxyIfaceImpl( const QCString& name, KCModuleProxy* const client ); 00042 00043 virtual void save(); 00044 00045 virtual void load(); 00046 00047 virtual void defaults(); 00048 00049 virtual QString applicationName(); 00050 00051 virtual QString quickHelp(); 00052 00053 virtual bool changed(); 00054 public slots: 00055 00059 void changedRelay( bool c ); 00060 00064 void quickHelpRelay(); 00065 00066 00067 private: 00068 00069 KCModuleProxy* p; 00070 }; 00071 /***************************************************************/ 00072 00073 00074 00075 00076 /***************************************************************/ 00079 class KCModuleProxyRootCommunicatorImpl: public QObject, 00080 virtual public KCModuleProxyRootDispatcher 00081 { 00082 Q_OBJECT 00083 00084 public: 00085 KCModuleProxyRootCommunicatorImpl( const QCString& name, KCModuleProxy* const client ); 00086 00087 /* Reimplementations of DCOP members */ 00088 virtual void changed( bool c ); 00089 00090 virtual void quickHelpChanged(); 00091 00092 KCModuleProxy* p; 00093 }; 00094 /***************************************************************/ 00095 00096 #endif // __KCMODULEPROXYIFACEIMPL_H__ 00097