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

improve++

parent 9984317a
......@@ -66,6 +66,9 @@ void FollowUpReminderAgent::setEnableAgent(bool enabled)
FollowUpReminderAgentSettings::self()->writeConfig();
if (enabled) {
mManager->load();
mTimer->start();
} else {
mTimer->stop();
}
}
......@@ -117,4 +120,3 @@ void FollowUpReminderAgent::reload()
AKONADI_AGENT_MAIN( FollowUpReminderAgent )
#include "followupreminderagent.moc"
......@@ -25,6 +25,28 @@
#include <kmenu.h>
#include <KLocalizedString>
FollowUpReminderInfoItem::FollowUpReminderInfoItem(QTreeWidget *parent)
: QTreeWidgetItem(parent),
mInfo(0)
{
}
FollowUpReminderInfoItem::~FollowUpReminderInfoItem()
{
delete mInfo;
}
void FollowUpReminderInfoItem::setInfo(FollowUpReminder::FollowUpReminderInfo *info)
{
mInfo = info;
}
FollowUpReminder::FollowUpReminderInfo* FollowUpReminderInfoItem::info() const
{
return mInfo;
}
FollowUpReminderInfoWidget::FollowUpReminderInfoWidget(QWidget *parent)
: QWidget(parent)
{
......
......@@ -20,10 +20,26 @@
#include <QWidget>
#include <KConfigGroup>
#include <QTreeWidgetItem>
class QTreeWidget;
namespace FollowUpReminder {
class FollowUpReminderInfo;
}
class FollowUpReminderInfoItem : public QTreeWidgetItem
{
public:
explicit FollowUpReminderInfoItem(QTreeWidget *parent = 0);
~FollowUpReminderInfoItem();
void setInfo(FollowUpReminder::FollowUpReminderInfo *info);
FollowUpReminder::FollowUpReminderInfo *info() const;
private:
FollowUpReminder::FollowUpReminderInfo *mInfo;
};
class FollowUpReminderInfoWidget : public QWidget
{
Q_OBJECT
......
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