Commit 95991f2d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to modify settings with dbus command

parent 8baf56e2
......@@ -230,6 +230,17 @@ bool NewMailNotifierAgent::enabledAgent() const
return NewMailNotifierAgentSettings::enabled();
}
bool NewMailNotifierAgent::showButtonToDisplayMail() const
{
return NewMailNotifierAgentSettings::showButtonToDisplayMail();
}
void NewMailNotifierAgent::setShowButtonToDisplayMail(bool b)
{
NewMailNotifierAgentSettings::setShowButtonToDisplayMail(b);
NewMailNotifierAgentSettings::self()->writeConfig();
}
void NewMailNotifierAgent::showConfigureDialog(qlonglong windowId)
{
......
......@@ -77,6 +77,9 @@ public:
void printDebug();
bool showButtonToDisplayMail() const;
void setShowButtonToDisplayMail(bool b);
protected:
void itemAdded( const Akonadi::Item &item, const Akonadi::Collection &collection );
void itemsMoved( const Akonadi::Item::List &items, const Akonadi::Collection &sourceCollection, const Akonadi::Collection &destinationCollection );
......
......@@ -64,6 +64,12 @@
<method name="textToSpeak" >
<arg type="s" direction="out"/>
</method>
<method name="setShowButtonToDisplayMail" >
<arg type="b" direction="in"/>
</method>
<method name="showButtonToDisplayMail" >
<arg type="b" direction="out"/>
</method>
<method name="printDebug" />
......
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