pab_xxport.h
00001 /* 00002 This file is part of KAddressbook. 00003 Copyright (c) 2000 - 2000 Hans Dijkema <kmailcvt@hum.org> 00004 2003 - 2003 Helge Deller <deller@kde.org> 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 00020 As a special exception, permission is given to link this program 00021 with any edition of TQt, and distribute the resulting executable, 00022 without including the source code for TQt in the source distribution. 00023 */ 00024 00025 #ifndef PAB_XXPORT_H 00026 #define PAB_XXPORT_H 00027 00028 #include <xxport.h> 00029 00030 class PABXXPort : public KAB::XXPort 00031 { 00032 Q_OBJECT 00033 TQ_OBJECT 00034 00035 public: 00036 PABXXPort( KABC::AddressBook *ab, TQWidget *parent, const char *name = 0 ); 00037 00038 TQString identifier() const { return "pab"; } 00039 00040 public slots: 00041 KABC::AddresseeList importContacts( const TQString &data ) const; 00042 00043 private: 00044 void doExport( TQFile *fp, const KABC::AddresseeList &list ); 00045 }; 00046 00047 00048 00049 00051 00052 /* 00053 * MS Windows tags as reengineered from an MS Exchange .PAB and 00054 * Outlook .PAB file. 00055 */ 00056 00058 00059 #define MS_GIVEN_NAME 0x3a13 00060 #define MS_GIVEN_NAME_1 0x3a45 00061 #define MS_GIVEN_NAME_2 0x3a47 00062 #define MS_GIVEN_NAME_3 0x3a4f 00063 #define MS_GIVEN_NAME_4 0x3001 00064 #define MS_GIVEN_NAME_5 0x3a20 00065 #define SET_MS_GIVEN_NAME \ 00066 MS_GIVEN_NAME,MS_GIVEN_NAME_1,MS_GIVEN_NAME_2, \ 00067 MS_GIVEN_NAME_3,MS_GIVEN_NAME_4,MS_GIVEN_NAME_5 00068 00070 00071 #define MS_EMAIL 0x3a56 00072 #define MS_EMAIL_1 0x3003 00073 #define SET_MS_EMAIL \ 00074 MS_EMAIL,MS_EMAIL_1 00075 00077 00078 #define MS_FIRSTNAME 0x3a06 00079 #define SET_MS_FIRSTNAME \ 00080 MS_FIRSTNAME 00081 00083 00084 #define MS_LASTNAME 0x3a11 00085 #define SET_MS_LASTNAME \ 00086 MS_LASTNAME 00087 00088 00090 00091 #define MS_MIDDLENAME 0x3a44 00092 #define SET_MS_MIDDLENAME \ 00093 MS_MIDDLENAME 00094 00096 00097 #define MS_TITLE 0x3a17 00098 #define SET_MS_TITLE \ 00099 MS_TITLE 00100 00102 00103 #define MS_ADDRESS 0x3a15 00104 #define MS_ADDRESS_1 0x3a29 00105 #define MS_ADDRESS_2 0x3a59 00106 #define SET_MS_ADDRESS \ 00107 MS_ADDRESS, MS_ADDRESS_1, MS_ADDRESS_2 00108 00110 00111 #define MS_ZIP 0x3a5b 00112 #define MS_ZIP_1 0x3a2a 00113 #define SET_MS_ZIP \ 00114 MS_ZIP, MS_ZIP_1 00115 00117 00118 #define MS_STATE 0x3a28 00119 #define MS_STATE_1 0x3a5c 00120 #define SET_MS_STATE \ 00121 MS_STATE, MS_STATE_1 00122 00124 00125 #define MS_TOWN 0x3a27 00126 #define MS_TOWN_1 0x3a59 00127 #define SET_MS_TOWN \ 00128 MS_TOWN, MS_TOWN_1 00129 00131 00132 #define MS_COUNTRY 0x3a26 00133 #define MS_COUNTRY_1 0x3a5a 00134 #define SET_MS_COUNTRY \ 00135 MS_COUNTRY, MS_COUNTRY_1 00136 00138 00139 #define MS_TEL 0x3a08 00140 #define MS_TEL_1 0x3a09 00141 #define MS_TEL_2 0x3a1a 00142 #define MS_TEL_3 0x3a1b 00143 #define MS_TEL_4 0x3a1f 00144 #define MS_TEL_5 0x3a1d 00145 #define MS_TEL_6 0x3a2d 00146 #define MS_TEL_7 0x3a2f 00147 #define SET_MS_TEL \ 00148 MS_TEL,MS_TEL_1,MS_TEL_2,MS_TEL_3,MS_TEL_4, \ 00149 MS_TEL_5,MS_TEL_6,MS_TEL_7 00150 00152 00153 #define MS_MOBILE 0x3a1c 00154 #define MS_MOBILE_1 0x3a1e 00155 #define MS_MOBILE_2 0x3a21 00156 #define SET_MS_MOBILE \ 00157 MS_MOBILE,MS_MOBILE_1,MS_MOBILE_2 00158 00160 00161 #define MS_FAX 0x3a23 00162 #define MS_FAX_1 0x3a24 00163 #define MS_FAX_2 0x3a25 00164 #define MS_FAX_3 0x3a2c 00165 #define SET_MS_FAX \ 00166 MS_FAX,MS_FAX_1,MS_FAX_2,MS_FAX_3 00167 00169 00170 #define MS_ORG 0x3a16 00171 #define SET_MS_ORGANIZATION \ 00172 MS_ORG 00173 00175 00176 #define MS_DEP 0x3a18 00177 #define SET_MS_DEPARTMENT \ 00178 MS_DEP 00179 00181 00182 #define MS_COMMENT 0x3004 00183 #define SET_MS_COMMENT \ 00184 MS_COMMENT 00185 00187 00188 #define SET_NOT_USED \ 00189 0x3002, \ 00190 0x300b, \ 00191 0x3a2e, \ 00192 0x3a30, \ 00193 0x3a19 00194 // 3002 probably address type 00195 // 300b some sort of key 00196 // 3a2e secretary tel number 00197 // 3a30 name of secretary 00198 // 3a19 office location 00199 00200 00201 00203 00204 /* 00205 * HP Openmail as reengineered from the X.400 .PAB file. 00206 */ 00207 00209 00210 #define HP_OPENMAIL_JOB 0x672b 00211 #define HP_OPENMAIL_ORGANIZATION 0x6728 00212 #define HP_OPENMAIL_DEPARTMENT 0x6729 00213 #define HP_OPENMAIL_SUBDEP 0x672b 00214 #define HP_OPENMAIL_LOCATION_OF_WORK 0x672a 00215 00217 00218 #endif