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

KUtils

  • 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
31class KAboutData;
32class KCModuleInfo;
33class KComponentData;
34class KCModuleProxyPrivate;
35
67class KCMUTILS_EXPORT KCModuleProxy : public QWidget
68{
69Q_DECLARE_PRIVATE(KCModuleProxy)
70Q_OBJECT
71public:
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
204public Q_SLOTS:
205
210 void defaults();
211
217 void deleteClient();
218
219Q_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
244protected:
245
250 void showEvent( QShowEvent * );
251
252protected:
253 KCModuleProxyPrivate *const d_ptr;
254
255private:
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
KAboutData
KCModuleInfo
A class that provides information about a KCModule.
Definition: kcmoduleinfo.h:48
KCModuleProxyPrivate
Definition: kcmoduleproxy_p.h:29
KCModuleProxy
Encapsulates a KCModule for embedding.
Definition: kcmoduleproxy.h:68
KCModuleProxy::childClosed
void childClosed()
When a module running with root privileges and exits, returns to normal mode, the childClosed() signa...
KCModuleProxy::d_ptr
KCModuleProxyPrivate *const d_ptr
Definition: kcmoduleproxy.h:253
KCModuleProxy::quickHelpChanged
void quickHelpChanged()
KCModuleProxy::changed
void changed(bool state)
KCModuleProxy::changed
void changed(KCModuleProxy *mod)
This is emitted in the same situations as in the one above.
KCModule
KComponentData
KSharedPtr< KService >
QWidget
kcmodule.h
kcmutils_export.h
kservice.h
save
KAction * save(const QObject *recvr, const char *slot, QObject *parent)
defaults
KGuiItem defaults()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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