Commit 86b9cbf8 authored by Laurent Montel's avatar Laurent Montel 😁

Allow to debug sendlaterinfo

parent 97f1836c
cmake_minimum_required(VERSION 3.5)
set(PIM_VERSION "5.12.42")
set(PIM_VERSION "5.12.43")
project(kdepim-apps-lib VERSION ${PIM_VERSION})
set(KF5_MIN_VERSION "5.63.0")
......
......@@ -173,3 +173,16 @@ void SendLaterInfo::writeConfig(KConfigGroup &config)
config.writeEntry("to", mTo);
config.sync();
}
QDebug operator<<(QDebug d, const SendLaterInfo &info)
{
d << "mTo: " << info.to();
d << "mSubject: " << info.subject();
d << "mDateTime: " << info.dateTime().toString();
d << "mLastDateTimeSend: " << info.lastDateTimeSend().toString();
d << "mId: " << info.itemId();
d << "mRecurrenceEachValue: " << info.recurrenceEachValue();
d << "mRecurrenceUnit: " << info.recurrenceUnit();
d << "mRecurrence: " << info.isRecurrence();
return d;
}
......@@ -86,5 +86,5 @@ private:
bool mRecurrence = false;
};
}
SENDLATER_EXPORT QDebug operator<<(QDebug debug, const SendLater::SendLaterInfo &info);
#endif // SENDLATERINFO_H
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