equal
deleted
inserted
replaced
46 #include <QMutex> |
46 #include <QMutex> |
47 |
47 |
48 #include "qtcontacts.h" |
48 #include "qtcontacts.h" |
49 #include "qcontactmaemo5debug_p.h" |
49 #include "qcontactmaemo5debug_p.h" |
50 |
50 |
|
51 #undef signals |
|
52 #include <libosso-abook/osso-abook.h> |
51 #include <gdk-pixbuf/gdk-pixbuf.h> |
53 #include <gdk-pixbuf/gdk-pixbuf.h> |
52 |
54 |
53 #include "osso-abook-workaround.h" |
|
54 #include "qcontactidshash.h" |
55 #include "qcontactidshash.h" |
55 |
56 |
56 QTM_USE_NAMESPACE |
57 QTM_USE_NAMESPACE |
57 |
58 |
58 /* Data shared with contact changes/added/removed callbacks */ |
59 /* Data shared with contact changes/added/removed callbacks */ |
95 void initAddressBook(); |
96 void initAddressBook(); |
96 void initLocalIdHash(); |
97 void initLocalIdHash(); |
97 |
98 |
98 bool setDetailValues(const QVariantMap& data, QContactDetail* detail) const; |
99 bool setDetailValues(const QVariantMap& data, QContactDetail* detail) const; |
99 |
100 |
100 OssoABookContact* getAContact(const QContactLocalId& contactId) const; |
101 OssoABookContact* getAContact(const QContactLocalId& contactId, QContactManager::Error* error) const; |
101 |
102 |
102 /* Filtering */ |
103 /* Filtering */ |
103 bool contactActionsMatch(OssoABookContact *contact, QList<QContactActionDescriptor> descriptors) const; |
|
104 EBookQuery* convert(const QContactFilter& filter) const; |
104 EBookQuery* convert(const QContactFilter& filter) const; |
105 |
105 |
106 /* Reading - eContact/abookContact to QContact methods */ |
106 /* Reading - eContact/abookContact to QContact methods */ |
107 QContact* convert(EContact *eContact) const; |
107 QContact* convert(EContact *eContact) const; |
108 |
108 |
123 QContactTimestamp* getTimestampDetail(EContact *eContact) const; |
123 QContactTimestamp* getTimestampDetail(EContact *eContact) const; |
124 QContactThumbnail* getThumbnailDetail(EContact *eContact) const; |
124 QContactThumbnail* getThumbnailDetail(EContact *eContact) const; |
125 QContactUrl* getUrlDetail(EContact *eContact) const; |
125 QContactUrl* getUrlDetail(EContact *eContact) const; |
126 |
126 |
127 /* Saving - QContact to abookContact */ |
127 /* Saving - QContact to abookContact */ |
128 OssoABookContact* convert(const QContact *contact) const; |
128 OssoABookContact* convert(const QContact *contact, QContactManager::Error* error) const; |
129 |
129 |
130 /* Save QDetails in OssoABookContact attributes */ |
130 /* Save QDetails in OssoABookContact attributes */ |
131 void setAddressDetail(const OssoABookContact* aContact, const QContactAddress& detail) const; |
131 void setAddressDetail(const OssoABookContact* aContact, const QContactAddress& detail) const; |
132 void setAvatarDetail(const OssoABookContact* aContact, const QContactAvatar& detail) const; |
132 void setAvatarDetail(const OssoABookContact* aContact, const QContactAvatar& detail) const; |
133 void setBirthdayDetail(const OssoABookContact* aContact, const QContactBirthday& detail) const; |
133 void setBirthdayDetail(const OssoABookContact* aContact, const QContactBirthday& detail) const; |