• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KUtils

  • sources
  • kde-4.12
  • kdelibs
  • kutils
kcmoduleproxy.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 2003 Matthias Kretz <kretz@kde.org>
3  Copyright (C) 2004 Frans Englich <frans.englich@telia.com>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 
19 */
20 
21 #ifndef KCMUTILS_KCMODULEPROXY_H
22 #define KCMUTILS_KCMODULEPROXY_H
23 
24 #include <QtGui/QImage>
25 #include <QtCore/QStringList>
26 
27 #include <kcmodule.h>
28 #include <kservice.h>
29 #include <kcmutils_export.h>
30 
31 class KAboutData;
32 class KCModuleInfo;
33 class KComponentData;
34 class KCModuleProxyPrivate;
35 
67 class KCMUTILS_EXPORT KCModuleProxy : public QWidget
68 {
69 Q_DECLARE_PRIVATE(KCModuleProxy)
70 Q_OBJECT
71 public:
80  explicit KCModuleProxy( const KCModuleInfo& info, QWidget* parent = 0,
81  const QStringList& args = QStringList() );
82 
93  explicit KCModuleProxy( const QString& serviceName, QWidget* parent = 0,
94  const QStringList& args = QStringList() );
95 
104  explicit KCModuleProxy( const KService::Ptr& service, QWidget* parent = 0,
105  const QStringList& args = QStringList() );
106 
110  ~KCModuleProxy();
111 
116  void load();
117 
125  void save();
126 
130  QString quickHelp() const;
131 
135  const KAboutData * aboutData() const;
136 
141  KCModule::Buttons buttons() const;
142 
148  QString rootOnlyMessage() const;
149  //KDE4 remove. There's a limit for convenience functions,
150  // this one's available via realModule()->
151 
156  bool useRootOnlyMessage() const;
157  //KDE4 remove. There's a limit for convenience functions,
158  // this one's available via realModule()->
159 
165  KComponentData componentData() const;
166  //KDE4 remove. There's a limit for convenience functions,
167  // this one's available via realModule()
168 
173  bool changed() const;
174 
183  KCModule* realModule() const;
184 
189  KCModuleInfo moduleInfo() const;
190 
194  QString dbusService() const;
198  QString dbusPath() const;
202  QSize minimumSizeHint() const;
203 
204 public Q_SLOTS:
205 
210  void defaults();
211 
217  void deleteClient();
218 
219 Q_SIGNALS:
220 
221  /*
222  * This signal is emitted when the contained module is changed.
223  */
224  void changed( bool state );
225 
230  void changed( KCModuleProxy* mod );
231 
236  void childClosed();
237 
238  /*
239  * This signal is relayed from the encapsulated module, and
240  * is equivalent to the module's own quickHelpChanged() signal.
241  */
242  void quickHelpChanged();
243 
244 protected:
245 
250  void showEvent( QShowEvent * );
251 
252 protected:
253  KCModuleProxyPrivate *const d_ptr;
254 
255 private:
256  Q_PRIVATE_SLOT(d_func(), void _k_moduleChanged(bool))
257  Q_PRIVATE_SLOT(d_func(), void _k_moduleDestroyed())
258  Q_PRIVATE_SLOT(d_func(), void _k_ownerChanged(const QString &service, const QString &oldOwner, const QString &newOwner))
259 };
260 
261 #endif // KUTILS_KCMODULEPROXY_H
262 // vim: ts=4
KSharedPtr< KService >
kcmodule.h
QWidget
QString
QStringList
KAboutData
kservice.h
KCModuleInfo
A class that provides information about a KCModule.
Definition: kcmoduleinfo.h:47
kcmutils_export.h
KCModuleProxy
Encapsulates a KCModule for embedding.
Definition: kcmoduleproxy.h:67
KCModuleProxy::d_ptr
KCModuleProxyPrivate *const d_ptr
Definition: kcmoduleproxy.h:253
defaults
KGuiItem defaults()
QSize
KCModuleProxyPrivate
Definition: kcmoduleproxy_p.h:28
save
KAction * save(const QObject *recvr, const char *slot, QObject *parent)
KCModule
KComponentData
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KUtils

Skip menu "KUtils"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal