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

Add job to finish task

parent 79a4280f
......@@ -14,6 +14,7 @@ set(followupreminderagent_SRCS
followupreminderjob.cpp
followupremindernoanswerdialog.cpp
followupreminderinfowidget.cpp
followupreminderfinishtaskjob.cpp
)
qt4_add_dbus_adaptor(followupreminderagent_SRCS org.freedesktop.Akonadi.FollowUpReminder.xml followupreminderagent.h FollowUpReminderAgent)
......
/*
Copyright (c) 2014 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "followupreminderfinishtaskjob.h"
FollowUpReminderFinishTaskJob::FollowUpReminderFinishTaskJob(QObject *parent)
: QObject(parent)
{
}
FollowUpReminderFinishTaskJob::~FollowUpReminderFinishTaskJob()
{
}
void FollowUpReminderFinishTaskJob::start()
{
}
/*
Copyright (c) 2014 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef FOLLOWUPREMINDERFINISHTASKJOB_H
#define FOLLOWUPREMINDERFINISHTASKJOB_H
#include <QObject>
class FollowUpReminderFinishTaskJob : public QObject
{
Q_OBJECT
public:
explicit FollowUpReminderFinishTaskJob(QObject *parent = 0);
~FollowUpReminderFinishTaskJob();
void start();
};
#endif // FOLLOWUPREMINDERFINISHTASKJOB_H
......@@ -19,6 +19,7 @@
#include "followupreminderinfo.h"
#include "followupremindernoanswerdialog.h"
#include "followupreminderjob.h"
#include "followupreminderfinishtaskjob.h"
#include <KGlobal>
#include <KConfigGroup>
......@@ -80,6 +81,10 @@ void FollowUpReminderManager::slotCheckFollowUpFinished(const QString &messageId
if (info->messageId() == messageId) {
answerReceived(info->to());
//Remove info in list and settings
//Close task
FollowUpReminderFinishTaskJob *job = new FollowUpReminderFinishTaskJob(this);
//TODO
job->start();
break;
}
}
......@@ -97,6 +102,4 @@ void FollowUpReminderManager::answerReceived(const QString &from)
}
#include "followupremindermanager.moc"
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