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

Add constructor

parent f1b60565
......@@ -31,6 +31,14 @@ FollowUpReminderInfo::FollowUpReminderInfo(const KConfigGroup &config)
readConfig(config);
}
FollowUpReminderInfo::FollowUpReminderInfo(const FollowUpReminderInfo &info)
{
mFollowUpReminderDate = info.followUpReminderDate();
mId = info.id();
mMessageId = info.messageId();
mTo = info.to();
}
void FollowUpReminderInfo::readConfig(const KConfigGroup &config)
{
if (config.hasKey(QLatin1String("followUpReminderDate"))) {
......
......@@ -26,6 +26,8 @@ class FollowUpReminderInfo
public:
FollowUpReminderInfo();
FollowUpReminderInfo(const KConfigGroup &config);
FollowUpReminderInfo(const FollowUpReminderInfo &info);
Akonadi::Item::Id id() const;
void setId(Akonadi::Item::Id value);
......
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