Commit 302e0656 authored by chriadam's avatar chriadam

Merge branch 'jb47217-display' into 'master'

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

See merge request mer-core/libcontacts!17
parents 7b695fe4 d4197d25
......@@ -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