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)
${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
ui/composercryptoconfiguration.ui
......
......@@ -21,6 +21,7 @@
#include "archivemailagentinterface.h"
#include "sendlateragentinterface.h"
#include "followupreminderinterface.h"
#include <QtDBus/QDBusInterface>
#include <QtDBus/QDBusReply>
......@@ -56,3 +57,13 @@ void KMConfigureAgent::slotConfigureSendLater()
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:
public Q_SLOTS:
void slotConfigureSendLater();
void slotConfigureAutomaticArchiving();
void slotConfigureFollowupReminder();
private:
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