KDEUI
kcmodule.cpp
Go to the documentation of this file.
150 d->_authAction = new KAuth::Action(QString("org.kde.kcontrol." + d->_about->appName() + ".save"));
AuthStatus
Authorized
AuthRequired
void authStatusChanged(int)
The status of the auth action, if one, has changed.
Definition: kcmodule.cpp:172
bool managedWidgetChangeState() const
Returns the changed state of automatically managed widgets in this dialog.
Definition: kcmodule.cpp:229
void setNeedsAuthorization(bool needsAuth)
Set if the module's save() method requires authorization to be executed.
Definition: kcmodule.cpp:146
bool useRootOnlyMessage() const
Tell if KControl should show a RootOnly message when run as a normal user.
Definition: kcmodule.cpp:277
KConfigDialogManager * addConfig(KCoreConfigSkeleton *config, QWidget *widget)
Adds a KCoreConfigskeleton config to watch the widget widget.
Definition: kcmodule.cpp:128
QString rootOnlyMessage() const
Get the RootOnly message for this module.
Definition: kcmodule.cpp:266
void setAboutData(const KAboutData *about)
This sets the KAboutData returned by aboutData()
Definition: kcmodule.cpp:252
void setRootOnlyMessage(const QString &message)
Sets the RootOnly message.
Definition: kcmodule.cpp:260
void setUseRootOnlyMessage(bool on)
Change whether or not the RootOnly message should be shown.
Definition: kcmodule.cpp:271
KAuth::Action * authAction() const
Returns the action previously set with setAuthAction().
Definition: kcmodule.cpp:167
bool needsAuthorization() const
Returns the value previously set with setNeedsAuthorization().
Definition: kcmodule.cpp:162
KCModule(const KComponentData &componentData, QWidget *parent=0, const QVariantList &args=QVariantList())
Base class for all KControlModules.
Definition: kcmodule.cpp:77
void rootOnlyMessageChanged(bool use, QString message)
Indicate that the module's root message has changed.
void changed(bool state)
Indicate that the state of the modules contents has changed.
void setExportText(const QString &)
Sets the export QString value, used for exporting data.
Definition: kcmodule.cpp:297
void unmanagedWidgetChangeState(bool)
Call this method when your manually managed widgets change state between changed and not changed.
Definition: kcmodule.cpp:241
void widgetChanged()
A managed widget was changed, the widget settings and the current settings are compared and a corresp...
Definition: kcmodule.cpp:224
virtual const KAboutData * aboutData() const
This is generally only called for the KBugReport.
Definition: kcmodule.cpp:247
virtual void defaults()
Sets the configuration to sensible default values.
Definition: kcmodule.cpp:217
bool isValid() const
QString componentName() const
Provides a means of automatically retrieving, saving and resetting KConfigSkeleton based settings in ...
Definition: kconfigdialogmanager.h:85
void updateWidgetsDefault()
Traverse the specified widgets, sets the state of all known widgets according to the default state in...
Definition: kconfigdialogmanager.cpp:371
void updateWidgets()
Traverse the specified widgets, sets the state of all known widgets according to the state in the set...
Definition: kconfigdialogmanager.cpp:332
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
void updateSettings()
Traverse the specified widgets, saving the settings of all known widgets in the settings object.
Definition: kconfigdialogmanager.cpp:378
Class for handling preferences settings for an application.
Definition: kconfigskeleton.h:41
void insertCatalog(const QString &catalog)
QString i18n(const char *text)
KLocale * locale()
KSharedConfigPtr config()
void message(KMessage::MessageType messageType, const QString &text, const QString &caption=QString())
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
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.