KNotifyConfig 5.109.0
|
Configure the notification for a given application / context. More...
#include <KNotifyConfigWidget>
Signals | |
void | changed (bool state) |
Indicate that the state of the modules contents has changed. | |
Public Slots | |
void | disableAllSounds () |
void | revertToDefaults () |
void | save () |
save to the config file | |
Public Member Functions | |
KNotifyConfigWidget (QWidget *parent) | |
void | selectEvent (const QString &eventId) |
Select a given notification in the current list. | |
void | setApplication (const QString &appname=QString(), const QString &context_name=QString(), const QString &context_value=QString()) |
Change the application and the context. | |
Static Public Member Functions | |
static KNotifyConfigWidget * | configure (QWidget *parent=nullptr, const QString &appname=QString()) |
Show a dialog with the widget. | |
Configure the notification for a given application / context.
You probably will want to use the static function configure
If you create the widget yourself, you must call setApplication before showing it
|
signal |
Indicate that the state of the modules contents has changed.
This signal is emitted whenever the state of the configuration changes.
|
static |
Show a dialog with the widget.
parent | the parent widget of the dialog |
appname | the application name, if null, it is autodetected |
|
slot |
save to the config file
void KNotifyConfigWidget::selectEvent | ( | const QString & | eventId | ) |
Select a given notification in the current list.
id | The id of the notification |
void KNotifyConfigWidget::setApplication | ( | const QString & | appname = QString() , |
const QString & | context_name = QString() , |
||
const QString & | context_value = QString() |
||
) |
Change the application and the context.
appname | name of the application. if null QCoreApplication::instance()->applicationName() is used |
context_name | the name of the context, if null , avery context are considered |
context_value | the context value |