diff options
author | Klaas Freitag <freitag@owncloud.com> | 2016-03-23 18:47:13 +0300 |
---|---|---|
committer | Klaas Freitag <freitag@owncloud.com> | 2016-03-23 18:47:13 +0300 |
commit | 161d21904a6e8e8bcf31dcc9bbea6149fbde9862 (patch) | |
tree | ff98e75833e24f51a594d1b0cafa84fa9b1d06c9 /src/gui/activitydata.h | |
parent | ea2f19b78abcc9909763c641afc4eb0362eaae42 (diff) |
ActivityData: Add source file for implementation details
Add the ident() method and operators.
Diffstat (limited to 'src/gui/activitydata.h')
-rw-r--r-- | src/gui/activitydata.h | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/gui/activitydata.h b/src/gui/activitydata.h index 68067f553..f35611ede 100644 --- a/src/gui/activitydata.h +++ b/src/gui/activitydata.h @@ -26,17 +26,6 @@ namespace OCC { class ActivityLink { public: - QVariantHash toVariantHash() const { - QVariantHash hash; - - hash["label"] = _label; - hash["link"] = _link; - hash["verb"] = _verb; - hash["primary"] = _isPrimary; - - return hash; - } - QString _label; QString _link; QString _verb; @@ -54,10 +43,13 @@ public: class Activity { public: + typedef QPair<qlonglong, QString> Identifier; + enum Type { ActivityType, NotificationType }; + Type _type; qlonglong _id; QString _subject; @@ -73,10 +65,11 @@ public: * @param val * @return */ - bool operator<( const Activity& val ) const { - return _dateTime.toMSecsSinceEpoch() > val._dateTime.toMSecsSinceEpoch(); - } + bool operator<( const Activity& val ) const; + + bool operator==( const Activity& val ) const; + Identifier ident() const; }; /* ==================================================================== */ |