Commit ecf9ca2a authored by Laurent Montel's avatar Laurent Montel 😁

Add method to configure followupreminderagent

parent 435cae67
...@@ -232,6 +232,10 @@ if (KDEPIM_BUILD_DESKTOP) ...@@ -232,6 +232,10 @@ if (KDEPIM_BUILD_DESKTOP)
${CMAKE_SOURCE_DIR}/kmail/dbusinterface/org.freedesktop.Akonadi.NewMailNotifier.xml ${CMAKE_SOURCE_DIR}/kmail/dbusinterface/org.freedesktop.Akonadi.NewMailNotifier.xml
) )
qt4_add_dbus_interfaces(kmailprivate_LIB_SRCS
${CMAKE_SOURCE_DIR}/agents/followupreminderagent/org.freedesktop.Akonadi.FollowUpReminder.xml
)
kde4_add_ui_files(kmailprivate_LIB_SRCS kde4_add_ui_files(kmailprivate_LIB_SRCS
ui/composercryptoconfiguration.ui ui/composercryptoconfiguration.ui
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "archivemailagentinterface.h" #include "archivemailagentinterface.h"
#include "sendlateragentinterface.h" #include "sendlateragentinterface.h"
#include "followupreminderinterface.h"
#include <QtDBus/QDBusInterface> #include <QtDBus/QDBusInterface>
#include <QtDBus/QDBusReply> #include <QtDBus/QDBusReply>
...@@ -56,3 +57,13 @@ void KMConfigureAgent::slotConfigureSendLater() ...@@ -56,3 +57,13 @@ void KMConfigureAgent::slotConfigureSendLater()
KMessageBox::error(mParentWidget,i18n("Send Later Agent was not registered.")); KMessageBox::error(mParentWidget,i18n("Send Later Agent was not registered."));
} }
} }
void KMConfigureAgent::slotConfigureFollowupReminder()
{
OrgFreedesktopAkonadiFollowUpReminderAgentInterface followUpInterface(QLatin1String("org.freedesktop.Akonadi.FollowUpReminderAgent"), QLatin1String("/FollowUpReminder"),QDBusConnection::sessionBus(), this);
if (followUpInterface.isValid()) {
followUpInterface.showConfigureDialog( (qlonglong)mParentWidget->winId() );
} else {
KMessageBox::error(mParentWidget,i18n("Followup Reminder Agent was not registered."));
}
}
...@@ -30,7 +30,7 @@ public: ...@@ -30,7 +30,7 @@ public:
public Q_SLOTS: public Q_SLOTS:
void slotConfigureSendLater(); void slotConfigureSendLater();
void slotConfigureAutomaticArchiving(); void slotConfigureAutomaticArchiving();
void slotConfigureFollowupReminder();
private: private:
QWidget *mParentWidget; QWidget *mParentWidget;
}; };
......
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