22 #ifndef KABC_VCARD21FORMAT_H
23 #define KABC_VCARD21FORMAT_H
25 #include <tqdatetime.h>
30 #include <tqvaluelist.h>
32 #include "addressee.h"
33 #include "addressbook.h"
34 #include "phonenumber.h"
37 #define VCARD_BEGIN "begin:vcard"
38 #define VCARD_END "end:vcard"
39 #define VCARD_BEGIN_N "begin"
40 #define VCARD_END_N "end"
41 #define VCARD_VERSION "version"
47 #define VCARD_NAME "name"
48 #define VCARD_NICKNAME "nickname"
49 #define VCARD_PHOTO "photo"
50 #define VCARD_BDAY "bday"
51 #define VCARD_ADR "adr"
54 #define VCARD_ADR_DOM "dom"
55 #define VCARD_ADR_INTL "intl"
56 #define VCARD_ADR_POSTAL "postal"
57 #define VCARD_ADR_PARCEL "parcel"
58 #define VCARD_ADR_HOME "home"
59 #define VCARD_ADR_WORK "work"
60 #define VCARD_ADR_PREF "pref"
62 #define VCARD_ADR_POBOX "PO Box"
63 #define VCARD_ADR_EXTADR "Extended Address"
64 #define VCARD_ADR_STREET "Street"
65 #define VCARD_ADR_LOCALITY "Locality"
66 #define VCARD_ADR_REGION "Region"
67 #define VCARD_ADR_POSTCODE "Postal Code"
68 #define VCARD_ADR_COUNTRY "Country Name"
69 #define VCARD_LABEL "label"
70 #define VCARD_PROFILE "profile"
71 #define VCARD_SOURCE "source"
72 #define VCARD_TEL "tel"
74 #define VCARD_TEL_HOME "home"
75 #define VCARD_TEL_WORK "work"
76 #define VCARD_TEL_PREF "pref"
77 #define VCARD_TEL_VOICE "voice"
78 #define VCARD_TEL_FAX "fax"
79 #define VCARD_TEL_MSG "msg"
80 #define VCARD_TEL_CELL "cell"
81 #define VCARD_TEL_PAGER "pager"
82 #define VCARD_TEL_BBS "bbs"
83 #define VCARD_TEL_MODEM "modem"
84 #define VCARD_TEL_CAR "car"
85 #define VCARD_TEL_ISDN "isdn"
86 #define VCARD_TEL_VIDEO "video"
87 #define VCARD_TEL_PCS "pcs"
88 #define VCARD_EMAIL "email"
90 #define VCARD_EMAIL_PREF "pref"
91 #define VCARD_EMAIL_INTERNET "internet"
92 #define VCARD_EMAIL_X400 "x400"
94 #define VCARD_GEO "geo"
95 #define VCARD_MAILER "mailer"
96 #define VCARD_TITLE "title"
97 #define VCARD_ROLE "role"
98 #define VCARD_LOGO "logo"
99 #define VCARD_AGENT "agent"
100 #define VCARD_ORG "org"
101 #define VCARD_CATEGORIES "categories"
102 #define VCARD_NOTE "note"
103 #define VCARD_PRODID "prodid"
104 #define VCARD_REV "rev"
105 #define VCARD_SOUND "sound"
106 #define VCARD_UID "uid"
107 #define VCARD_URL "url"
108 #define VCARD_CLASS "class"
109 #define VCARD_CLASS_PUBLIC "public"
110 #define VCARD_CLASS_PRIVATE "private"
111 #define VCARD_CLASS_CONFIDENTIAL "confidential"
112 #define VCARD_KEY "key"
114 #define VCARD_KEY_X509 "x509"
115 #define VCARD_KEY_PGP "pgp"
117 #define VCARD_QUOTED_PRINTABLE "quoted-printable"
119 #define VCARD_ENCODING_QUOTED_PRINTABLE "encoding=quoted-printable"
120 #define VCARD_BASE64 "base64"
122 #define VC_STATE_BEGIN 1
123 #define VC_STATE_BODY 2
124 #define VC_STATE_END 4
125 #define VC_STATE_HAVE_N 8
126 #define VC_STATE_HAVE_VERSION 16
128 #define VC_ERR_NO_BEGIN 1
129 #define VC_ERR_NO_END 2
130 #define VC_ERR_INVALID_LINE 3
131 #define VC_ERR_INTERNAL 4
132 #define VC_ERR_INVALID_NAME 5
133 #define VC_ERR_MISSING_MANDATORY 6
181 static TDEABC::Address readAddressFromQStringList (
const TQStringList &data,
const int type);
194 TQValueList<TQString> qualifiers;
195 TQValueList<TQString> parameters;
196 bool isValid()
const;
210 TQString getValue(
const TQString& name,
const TQString& qualifier);
211 TQString getValue(
const TQString& name);
212 TQStringList getValues(
const TQString& name,
const TQString& qualifier);
213 TQStringList getValues(
const TQString& name);
215 TQValueList<VCardLineX> *_vcdata;
Postal address information.
static data, shared by ALL addressee objects