Commit d4197d25 authored by chriadam's avatar chriadam

[libcontacts] Allow caching filter match role. Contributes to JB#47217

This is the role whose data matched the filter pattern.
parent 7b695fe4
......@@ -141,10 +141,11 @@ public:
struct CacheItem
CacheItem() : itemData(0), iid(0), statusFlags(0), contactState(ContactAbsent), listeners(0) {}
CacheItem() : itemData(0), iid(0), statusFlags(0), contactState(ContactAbsent), listeners(0), filterMatchRole(-1) {}
CacheItem(const QContact &contact)
: contact(contact), itemData(0), iid(internalId(contact)),
statusFlags(contact.detail<QContactStatusFlags>().flagsValue()), contactState(ContactAbsent), listeners(0) {}
statusFlags(contact.detail<QContactStatusFlags>().flagsValue()), contactState(ContactAbsent), listeners(0),
filterMatchRole(-1) {}
QContactId apiId() const { return SeasideCache::apiId(contact); }
......@@ -201,6 +202,7 @@ public:
ItemListener *listeners;
QString displayLabelGroup;
QString displayLabel;
int filterMatchRole;
struct ContactLinkRequest
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