~tiagosh/history-service/use-libphonenumber

« back to all changes in this revision

Viewing changes to src/types.h

Improve contact matching by accepting other addressable fields than just phone numbers.
Approved by: PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#define TYPES_H
24
24
 
25
25
#include <QSharedPointer>
 
26
#include <QFlags>
26
27
 
27
28
#define DefineSharedPointer(type) class type; typedef QSharedPointer<type> type##Ptr; typedef QWeakPointer<type> type##WeakPtr; typedef QList<type##Ptr> type##s;
28
29
 
150
151
static const char* FieldContactId = "contactId";
151
152
static const char* FieldAlias = "alias";
152
153
static const char* FieldAvatar = "avatar";
153
 
static const char* FieldPhoneNumber = "phoneNumber";
154
 
static const char* FieldPhoneSubTypes = "phoneSubTypes";
155
 
static const char* FieldPhoneContexts = "phoneContexts";
 
154
static const char* FieldIdentifier = "identifier";
 
155
static const char* FieldDetailProperties = "detailProperties";
156
156
 
157
157
}
158
158