Commit 020260c2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add dbus function

parent 543aa1dc
......@@ -195,6 +195,28 @@ bool NewMailNotifierAgent::beepOnNewMails() const
return NewMailNotifierAgentSettings::beepOnNewMails();
}
void NewMailNotifierAgent::setTextToSpeakEnabled(bool enabled)
{
NewMailNotifierAgentSettings::setTextToSpeakEnabled(enabled);
NewMailNotifierAgentSettings::self()->writeConfig();
}
bool NewMailNotifierAgent::textToSpeakEnabled() const
{
return NewMailNotifierAgentSettings::textToSpeakEnabled();
}
void NewMailNotifierAgent::setTextToSpeak(const QString &msg)
{
NewMailNotifierAgentSettings::setTextToSpeak(msg);
NewMailNotifierAgentSettings::self()->writeConfig();
}
QString NewMailNotifierAgent::textToSpeak() const
{
return NewMailNotifierAgentSettings::textToSpeak();
}
void NewMailNotifierAgent::clearAll()
{
mNewMails.clear();
......
......@@ -69,6 +69,11 @@ public:
void setExcludeMyselfFromNotification(bool b);
bool excludeMyselfFromNotification() const;
void setTextToSpeakEnabled(bool enabled);
bool textToSpeakEnabled() const;
QString textToSpeak() const;
void setTextToSpeak(const QString &msg);
void printDebug();
......
......@@ -52,6 +52,20 @@
<method name="excludeMyselfFromNotification" >
<arg type="b" direction="out"/>
</method>
<method name="setTextToSpeakEnabled" >
<arg type="b" direction="in"/>
</method>
<method name="textToSpeakEnabled" >
<arg type="b" direction="out"/>
</method>
<method name="setTextToSpeak" >
<arg type="s" direction="in"/>
</method>
<method name="textToSpeak" >
<arg type="s" direction="out"/>
</method>
<method name="printDebug" />
</interface>
</node>
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