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

KUtils

  • kutils
kpluginselector.h
Go to the documentation of this file.
1
21#ifndef KPLUGINSELECTOR_H
22#define KPLUGINSELECTOR_H
23
24#include <QtGui/QWidget>
25
26#include <QtCore/QList>
27
28#include <kcmutils_export.h>
29#include <ksharedconfig.h>
30
31class KComponentData;
32class KPluginInfo;
33
34
58class KCMUTILS_EXPORT KPluginSelector
59 : public QWidget
60{
61 Q_OBJECT
62
63public:
64 enum PluginLoadMethod {
65 ReadConfigFile = 0,
66 IgnoreConfigFile
67 };
68
72 KPluginSelector(QWidget *parent = 0);
73
77 ~KPluginSelector();
78
109 void addPlugins(const QString &componentName,
110 const QString &categoryName = QString(),
111 const QString &categoryKey = QString(),
112 KSharedConfig::Ptr config = KSharedConfig::Ptr());
113
118 void addPlugins(const KComponentData &instance,
119 const QString &categoryName = QString(),
120 const QString &categoryKey = QString(),
121 const KSharedConfig::Ptr &config = KSharedConfig::Ptr());
122
164 void addPlugins(const QList<KPluginInfo> &pluginInfoList,
165 PluginLoadMethod pluginLoadMethod = ReadConfigFile,
166 const QString &categoryName = QString(),
167 const QString &categoryKey = QString(),
168 const KSharedConfig::Ptr &config = KSharedConfig::Ptr());
169
174 void load();
175
179 void save();
180
185 void defaults();
186
192 bool isDefault() const;
193
211 void updatePluginsState();
212
213Q_SIGNALS:
217 void changed(bool hasChanged);
218
224 void configCommitted(const QByteArray &componentName);
225
226private:
227 class Private;
228 Private * const d;
229};
230
231#endif
KComponentData
KPluginInfo
KPluginSelector::Private
Definition: kpluginselector_p.h:46
KPluginSelector
A widget to select what plugins to load and configure the plugins.
Definition: kpluginselector.h:60
KPluginSelector::changed
void changed(bool hasChanged)
Tells you whether the configuration is changed or not.
KPluginSelector::configCommitted
void configCommitted(const QByteArray &componentName)
Emitted after the config of an embedded KCM has been saved.
KPluginSelector::PluginLoadMethod
PluginLoadMethod
Definition: kpluginselector.h:64
KSharedPtr< KSharedConfig >
QList
QWidget
kcmutils_export.h
ksharedconfig.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