Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libcontacts
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mer-core-attic
libcontacts
Commits
d4197d25
Commit
d4197d25
authored
Nov 19, 2019
by
chriadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[libcontacts] Allow caching filter match role. Contributes to JB#47217
This is the role whose data matched the filter pattern.
parent
7b695fe4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/seasidecache.h
src/seasidecache.h
+4
-2
No files found.
src/seasidecache.h
View file @
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment