TDE core libraries
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.

kcmoduleproxyIfaceImpl.h 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /*
  2. * Copyright (C) 2004 Frans Englich <frans.englich@telia.com>
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Library General Public
  6. * License version 2 as published by the Free Software Foundation.
  7. *
  8. * This library is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. * Library General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU Library General Public License
  14. * along with this library; see the file COPYING.LIB. If not, write to
  15. * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  16. * Boston, MA 02110-1301, USA.
  17. */
  18. #ifndef __KCMODULEPROXYIFACEIMPL_H__
  19. #define __KCMODULEPROXYIFACEIMPL_H__
  20. #include "kcmoduleproxyIface.h"
  21. class KCModuleProxy;
  22. /***************************************************************/
  23. /** @internal
  24. @ingroup internal */
  25. class KCModuleProxyIfaceImpl: public TQObject, virtual public KCModuleProxyIface
  26. {
  27. /* KDE4 Merge KCModuleProxyIfaceImpl with KCModuleProxy(MI)
  28. * if it doesn't break what DCOPClient it binds to.
  29. * Update: This is probably not possible, since we don't want the DCOPObject when
  30. * we're running in root mode. */
  31. Q_OBJECT
  32. public:
  33. /* Reimplementations of DCOP members */
  34. KCModuleProxyIfaceImpl( const TQCString& name, KCModuleProxy* const client );
  35. virtual void save();
  36. virtual void load();
  37. virtual void defaults();
  38. virtual TQString applicationName();
  39. virtual TQString quickHelp();
  40. virtual bool changed();
  41. public slots:
  42. /**
  43. * Emits the changed(bool) DCOP signal.
  44. */
  45. void changedRelay( bool c );
  46. /**
  47. * Simply relays KCModuleProxy's signal with the same name.
  48. */
  49. void quickHelpRelay();
  50. private:
  51. KCModuleProxy* p;
  52. };
  53. /***************************************************************/
  54. /***************************************************************/
  55. /** @internal
  56. @ingroup internal */
  57. class KCModuleProxyRootCommunicatorImpl: public TQObject,
  58. virtual public KCModuleProxyRootDispatcher
  59. {
  60. Q_OBJECT
  61. public:
  62. KCModuleProxyRootCommunicatorImpl( const TQCString& name, KCModuleProxy* const client );
  63. /* Reimplementations of DCOP members */
  64. virtual void changed( bool c );
  65. virtual void quickHelpChanged();
  66. KCModuleProxy* p;
  67. };
  68. /***************************************************************/
  69. #endif // __KCMODULEPROXYIFACEIMPL_H__