qmlRegisterType<SortedShareModel>("com.nextcloud.desktopclient", 1, 0, "SortedShareModel");
qmlRegisterType<SyncConflictsModel>("com.nextcloud.desktopclient", 1, 0, "SyncConflictsModel");
qmlRegisterUncreatableType<QAbstractItemModel>("com.nextcloud.desktopclient", 1, 0, "QAbstractItemModel", "QAbstractItemModel");
+ qmlRegisterUncreatableType<Activity>("com.nextcloud.desktopclient", 1, 0, "Activity", "Activity");
qmlRegisterUncreatableType<UnifiedSearchResultsListModel>("com.nextcloud.desktopclient", 1, 0, "UnifiedSearchResultsListModel", "UnifiedSearchResultsListModel");
qmlRegisterUncreatableType<UserStatus>("com.nextcloud.desktopclient", 1, 0, "UserStatus", "Access to Status enum");
QString messageId;
QString messageSent;
QString userAvatar;
+
+ [[nodiscard]] bool operator==(const TalkNotificationData &other) const
+ {
+ return conversationToken == other.conversationToken &&
+ messageId == other.messageId &&
+ messageSent == other.messageSent &&
+ userAvatar == other.userAvatar;
+ }
+
+ [[nodiscard]] bool operator!=(const TalkNotificationData &other) const
+ {
+ return conversationToken != other.conversationToken ||
+ messageId != other.messageId ||
+ messageSent != other.messageSent ||
+ userAvatar != other.userAvatar;
+ }
};
/* ==================================================================== */
class Activity
{
Q_GADGET
+ Q_PROPERTY(OCC::Activity::Type type MEMBER _type)
+ Q_PROPERTY(OCC::TalkNotificationData talkNotificationData MEMBER _talkNotificationData)
+ Q_PROPERTY(QVariantMap subjectRichParameters MEMBER _subjectRichParameters)
public:
using Identifier = QPair<qlonglong, QString>;