KDEUI
kcmodule.cpp
Go to the documentation of this file.
150 d->_authAction = new KAuth::Action(QString("org.kde.kcontrol." + d->_about->appName() + ".save"));
void unmanagedWidgetChangeState(bool)
Call this method when your manually managed widgets change state between changed and not changed.
Definition: kcmodule.cpp:241
Class for handling preferences settings for an application.
Definition: kconfigskeleton.h:40
void insertCatalog(const QString &catalog)
KAuth::Action * authAction() const
Returns the action previously set with setAuthAction().
Definition: kcmodule.cpp:167
bool managedWidgetChangeState() const
Returns the changed state of automatically managed widgets in this dialog.
Definition: kcmodule.cpp:229
bool needsAuthorization() const
Returns the value previously set with setNeedsAuthorization().
Definition: kcmodule.cpp:162
void message(KMessage::MessageType messageType, const QString &text, const QString &caption=QString())
void setNeedsAuthorization(bool needsAuth)
Set if the module's save() method requires authorization to be executed.
Definition: kcmodule.cpp:146
virtual const KAboutData * aboutData() const
This is generally only called for the KBugReport.
Definition: kcmodule.cpp:247
AuthStatus
bool isValid() const
void setAboutData(const KAboutData *about)
This sets the KAboutData returned by aboutData()
Definition: kcmodule.cpp:252
void authStatusChanged(int)
The status of the auth action, if one, has changed.
Definition: kcmodule.cpp:172
KConfigDialogManager * addConfig(KCoreConfigSkeleton *config, QWidget *widget)
Adds a KCoreConfigskeleton config to watch the widget widget.
Definition: kcmodule.cpp:128
KLocale * locale()
Authorized
QString rootOnlyMessage() const
Get the RootOnly message for this module.
Definition: kcmodule.cpp:266
void updateWidgets()
Traverse the specified widgets, sets the state of all known widgets according to the state in the set...
Definition: kconfigdialogmanager.cpp:332
void updateWidgetsDefault()
Traverse the specified widgets, sets the state of all known widgets according to the default state in...
Definition: kconfigdialogmanager.cpp:371
void rootOnlyMessageChanged(bool use, QString message)
Indicate that the module's root message has changed.
bool hasChanged() const
Returns whether the current state of the known widgets are different from the state in the config obj...
Definition: kconfigdialogmanager.cpp:517
bool useRootOnlyMessage() const
Tell if KControl should show a RootOnly message when run as a normal user.
Definition: kcmodule.cpp:277
void widgetChanged()
A managed widget was changed, the widget settings and the current settings are compared and a corresp...
Definition: kcmodule.cpp:224
KSharedConfigPtr config()
QString i18n(const char *text)
void setRootOnlyMessage(const QString &message)
Sets the RootOnly message.
Definition: kcmodule.cpp:260
QString componentName() const
KAction * help(const QObject *recvr, const char *slot, QObject *parent)
Display the help.
Definition: kstandardaction.cpp:596
void setUseRootOnlyMessage(bool on)
Change whether or not the RootOnly message should be shown.
Definition: kcmodule.cpp:271
Provides a means of automatically retrieving, saving and resetting KConfigSkeleton based settings in ...
Definition: kconfigdialogmanager.h:85
virtual void defaults()
Sets the configuration to sensible default values.
Definition: kcmodule.cpp:217
void updateSettings()
Traverse the specified widgets, saving the settings of all known widgets in the settings object.
Definition: kconfigdialogmanager.cpp:378
void setExportText(const QString &)
Sets the export QString value, used for exporting data.
Definition: kcmodule.cpp:297
const char * name(StandardAction id)
This will return the internal name of a given standard action.
Definition: kstandardaction.cpp:223
AuthRequired
KCModule(const KComponentData &componentData, QWidget *parent=0, const QVariantList &args=QVariantList())
Base class for all KControlModules.
Definition: kcmodule.cpp:77
void changed()
Calling this slot is equivalent to emitting changed(true).
Definition: kcmodule.cpp:282
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.