kaddressbook

pab_xxport.h
1/*
2 This file is part of KAddressbook.
3 Copyright (c) 2000 - 2000 Hans Dijkema <kmailcvt@hum.org>
4 2003 - 2003 Helge Deller <deller@kde.org>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
20 As a special exception, permission is given to link this program
21 with any edition of TQt, and distribute the resulting executable,
22 without including the source code for TQt in the source distribution.
23*/
24
25#ifndef PAB_XXPORT_H
26#define PAB_XXPORT_H
27
28#include <xxport.h>
29
30class PABXXPort : public KAB::XXPort
31{
32 TQ_OBJECT
33
34
35 public:
36 PABXXPort( TDEABC::AddressBook *ab, TQWidget *parent, const char *name = 0 );
37
38 TQString identifier() const { return "pab"; }
39
40 public slots:
41 TDEABC::AddresseeList importContacts( const TQString &data ) const;
42
43 private:
44 void doExport( TQFile *fp, const TDEABC::AddresseeList &list );
45};
46
47
48
49
51
52/*
53 * MS Windows tags as reengineered from an MS Exchange .PAB and
54 * Outlook .PAB file.
55 */
56
58
59#define MS_GIVEN_NAME 0x3a13
60#define MS_GIVEN_NAME_1 0x3a45
61#define MS_GIVEN_NAME_2 0x3a47
62#define MS_GIVEN_NAME_3 0x3a4f
63#define MS_GIVEN_NAME_4 0x3001
64#define MS_GIVEN_NAME_5 0x3a20
65#define SET_MS_GIVEN_NAME \
66 MS_GIVEN_NAME,MS_GIVEN_NAME_1,MS_GIVEN_NAME_2, \
67 MS_GIVEN_NAME_3,MS_GIVEN_NAME_4,MS_GIVEN_NAME_5
68
70
71#define MS_EMAIL 0x3a56
72#define MS_EMAIL_1 0x3003
73#define SET_MS_EMAIL \
74 MS_EMAIL,MS_EMAIL_1
75
77
78#define MS_FIRSTNAME 0x3a06
79#define SET_MS_FIRSTNAME \
80 MS_FIRSTNAME
81
83
84#define MS_LASTNAME 0x3a11
85#define SET_MS_LASTNAME \
86 MS_LASTNAME
87
88
90
91#define MS_MIDDLENAME 0x3a44
92#define SET_MS_MIDDLENAME \
93 MS_MIDDLENAME
94
96
97#define MS_TITLE 0x3a17
98#define SET_MS_TITLE \
99 MS_TITLE
100
102
103#define MS_ADDRESS 0x3a15
104#define MS_ADDRESS_1 0x3a29
105#define MS_ADDRESS_2 0x3a59
106#define SET_MS_ADDRESS \
107 MS_ADDRESS, MS_ADDRESS_1, MS_ADDRESS_2
108
110
111#define MS_ZIP 0x3a5b
112#define MS_ZIP_1 0x3a2a
113#define SET_MS_ZIP \
114 MS_ZIP, MS_ZIP_1
115
117
118#define MS_STATE 0x3a28
119#define MS_STATE_1 0x3a5c
120#define SET_MS_STATE \
121 MS_STATE, MS_STATE_1
122
124
125#define MS_TOWN 0x3a27
126#define MS_TOWN_1 0x3a59
127#define SET_MS_TOWN \
128 MS_TOWN, MS_TOWN_1
129
131
132#define MS_COUNTRY 0x3a26
133#define MS_COUNTRY_1 0x3a5a
134#define SET_MS_COUNTRY \
135 MS_COUNTRY, MS_COUNTRY_1
136
138
139#define MS_TEL 0x3a08
140#define MS_TEL_1 0x3a09
141#define MS_TEL_2 0x3a1a
142#define MS_TEL_3 0x3a1b
143#define MS_TEL_4 0x3a1f
144#define MS_TEL_5 0x3a1d
145#define MS_TEL_6 0x3a2d
146#define MS_TEL_7 0x3a2f
147#define SET_MS_TEL \
148 MS_TEL,MS_TEL_1,MS_TEL_2,MS_TEL_3,MS_TEL_4, \
149 MS_TEL_5,MS_TEL_6,MS_TEL_7
150
152
153#define MS_MOBILE 0x3a1c
154#define MS_MOBILE_1 0x3a1e
155#define MS_MOBILE_2 0x3a21
156#define SET_MS_MOBILE \
157 MS_MOBILE,MS_MOBILE_1,MS_MOBILE_2
158
160
161#define MS_FAX 0x3a23
162#define MS_FAX_1 0x3a24
163#define MS_FAX_2 0x3a25
164#define MS_FAX_3 0x3a2c
165#define SET_MS_FAX \
166 MS_FAX,MS_FAX_1,MS_FAX_2,MS_FAX_3
167
169
170#define MS_ORG 0x3a16
171#define SET_MS_ORGANIZATION \
172 MS_ORG
173
175
176#define MS_DEP 0x3a18
177#define SET_MS_DEPARTMENT \
178 MS_DEP
179
181
182#define MS_COMMENT 0x3004
183#define SET_MS_COMMENT \
184 MS_COMMENT
185
187
188#define SET_NOT_USED \
189 0x3002, \
190 0x300b, \
191 0x3a2e, \
192 0x3a30, \
193 0x3a19
194 // 3002 probably address type
195 // 300b some sort of key
196 // 3a2e secretary tel number
197 // 3a30 name of secretary
198 // 3a19 office location
199
200
201
203
204/*
205 * HP Openmail as reengineered from the X.400 .PAB file.
206 */
207
209
210#define HP_OPENMAIL_JOB 0x672b
211#define HP_OPENMAIL_ORGANIZATION 0x6728
212#define HP_OPENMAIL_DEPARTMENT 0x6729
213#define HP_OPENMAIL_SUBDEP 0x672b
214#define HP_OPENMAIL_LOCATION_OF_WORK 0x672a
215
217
218#endif