Commit f3fa7254 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add function to show config dialog

parent 7d9613ed
......@@ -180,6 +180,12 @@ bool NewMailNotifierAgent::enabledNotifier() const
return NewMailNotifierAgentSettings::enabled();
}
void NewMailNotifierAgent::showConfigureDialog(qlonglong windowId)
{
configure( windowId );
}
void NewMailNotifierAgent::configure( WId windowId )
{
QPointer<NewMailNotifierSettingsDialog> dialog = new NewMailNotifierSettingsDialog;
......
......@@ -39,6 +39,7 @@ class NewMailNotifierAgent : public Akonadi::AgentBase, public Akonadi::AgentBas
public:
explicit NewMailNotifierAgent( const QString &id );
void showConfigureDialog(qlonglong windowId = 0);
void setEnableNotifier(bool b);
bool enabledNotifier() const;
......
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
<interface name="org.freedesktop.Akonadi.NewMailNotifier">
<method name="showConfigureDialog" >
<arg direction="in" type="x" name="windowId" />
</method>
<method name="setEnableNotifier" >
<arg type="b" direction="in"/>
</method>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment