summaryrefslogtreecommitdiffstats
path: root/doc/src/vcardsupport.qdoc
blob: f27ec7817b39fca708889956a9160a3facfc6d86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:FDL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.  For licensing terms and
** conditions see http://qt.digia.com/licensing.  For further information
** use the contact form at http://qt.digia.com/contact-us.
**
** GNU Free Documentation License Usage
** Alternatively, this file may be used under the terms of the GNU Free
** Documentation License version 1.3 as published by the Free Software
** Foundation and appearing in the file included in the packaging of
** this file.  Please review the following information to ensure
** the GNU Free Documentation License version 1.3 requirements
** will be met: http://www.gnu.org/copyleft/fdl.html.
** $QT_END_LICENSE$
**
****************************************************************************/

/*!

\page vcardsupport.html

\target vcardsupport
\title Supported vCard Features

\section1 Properties

The following table lists the vCard properties that the \l{Versit}{Versit API} supports.

\table
  \header
    \o Versit Property
    \o QContactDetail
  \row
    \o ADR
    \o QContactAddress
  \row
    \o BDAY
    \o QContactBirthday
  \row
    \o CATEGORIES, X-CATEGORIES*
    \o QContactTag
  \row
    \o FN
    \o QContactName (CustomLabel field)
  \row
    \o GEO
    \o QContactGeoLocation
  \row
    \o EMAIL
    \o QContactEmailAddress
  \row
    \o IMPP, X-IMPP*
    \o QContactOnlineAccount (SubTypeImpp)
  \row
    \o LOGO
    \o QContactOrganization (LogoUrl field)
  \row
    \o N
    \o QContactName
  \row
    \o NICKNAME, X-NICKNAME*, X-EPOCSECONDNAME*
    \o QContactNickname
  \row
    \o NOTE
    \o QContactNote
  \row
    \o ORG
    \o QContactOrganization (Name field)
  \row
    \o PHOTO
    \o QContactThumbnail for base-64 encoded images or QContactAvatar for URLs
  \row
    \o REV
    \o QContactTimestamp
  \row
    \o ROLE
    \o QContactOrganization (Role field)
  \row
    \o SOUND
    \o QContactRingtone
  \row
    \o TEL
    \o QContactPhoneNumber
  \row
    \o TITLE
    \o QContactOrganization (Title field)
  \row
    \o UID
    \o QContactGuid
  \row
    \o URL
    \o QContactUrl
  \row
    \o X-ANNIVERSARY
    \o QContactAnniversary
  \row
    \o X-ASSISTANT
    \o QContactOrganization (Assistant field)
  \row
    \o X-ASSISTANT-TEL
    \o QContactPhoneNumber (SubTypeAssistant)
  \row
    \o X-CHILDREN
    \o QContactFamily (Children field)
  \row
    \o X-GENDER
    \o QContactGender
  \row
    \o X-JABBER
    \o QContactOnlineAccount (SubTypeImpp)
  \row
    \o X-SIP
    \o QContactOnlineAccount
  \row
    \o X-SPOUSE
    \o QContactFamily (Spouse field)
\endtable

* These are understood by the importer, but are not generated by the exporter.

\section1 Parameters

The Versit module supports the following vCard parameter:
\list
  \o ENCODING (for base64 or quoted-printable values)
  \o CHARSET (text character set for a specific property)
  \o VALUE (for LOGO, SOUND and PHOTO to specify whether the resource is external or embedded)
  \o TYPE (see below)
\endlist

The following table lists the values that are supported for the TYPE parameter:

\table
  \header
    \o Value of TYPE parameter
    \o Value of QContactDetail Context/SubType
  \row
    \o HOME
    \o QContactDetail::ContextHome
  \row
    \o WORK
    \o QContactDetail::ContextWork
  \row
    \o DOM
    \o QContactAddress::SubTypeDomestic
  \row
    \o INTL
    \o QContactAddress::SubTypeInternational
  \row
    \o POSTAL
    \o QContactAddress::SubTypePostal
  \row
    \o PARCEL
    \o QContactAddress::SubTypeParcel
  \row
    \o VOICE
    \o QContactPhoneNumber::SubTypeVoice
  \row
    \o CELL
    \o QContactPhoneNumber::SubTypeMobile
  \row
    \o MODEM
    \o QContactPhoneNumber::SubTypeModem
  \row
    \o CAR
    \o QContactPhoneNumber::SubTypeCar
  \row
    \o VIDEO
    \o QContactPhoneNumber::SubTypeVideo
  \row
    \o FAX
    \o QContactPhoneNumber::SubTypeFax
  \row
    \o BBS
    \o QContactPhoneNumber::SubTypeBulletinBoardSystem
  \row
    \o PAGER
    \o QContactPhoneNumber::SubTypePager
  \row
    \o SWIS
    \o QContactOnlineAccount::SubTypeVideoShare
  \row
    \o VOIP
    \o QContactOnlineAccount::SubTypeSipVoip
\endtable

PREF is partially supported.  If a property has the parameter TYPE set to PREF, the QContactDetail
that it generates is placed at the front of the list saved to the resultant QContact.  This has the
effect that calling QContact::detail() will return it in preference over other details.  However,
the existence of the PREF parameter is not preserved, so it won't appear when exporting the contact
back to vCard.

*/