kaddressbook Library API Documentation

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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00019 
00020     As a special exception, permission is given to link this program
00021     with any edition of Qt, and distribute the resulting executable,
00022     without including the source code for Qt 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 
00034   public:
00035     PABXXPort( KABC::AddressBook *ab, QWidget *parent, const char *name = 0 );
00036 
00037     QString identifier() const { return "pab"; }
00038 
00039   public slots:
00040     KABC::AddresseeList importContacts( const QString &data ) const;
00041 
00042   private:
00043     void doExport( QFile *fp, const KABC::AddresseeList &list );
00044 };
00045 
00046 
00047 
00048 
00050 
00051 /*
00052  *  MS Windows tags as reengineered from an MS Exchange .PAB and 
00053  *  Outlook .PAB file.
00054  */
00055 
00057 
00058 #define MS_GIVEN_NAME               0x3a13
00059 #define MS_GIVEN_NAME_1             0x3a45
00060 #define MS_GIVEN_NAME_2             0x3a47
00061 #define MS_GIVEN_NAME_3             0x3a4f
00062 #define MS_GIVEN_NAME_4             0x3001
00063 #define MS_GIVEN_NAME_5             0x3a20
00064 #define SET_MS_GIVEN_NAME                       \
00065         MS_GIVEN_NAME,MS_GIVEN_NAME_1,MS_GIVEN_NAME_2,      \
00066         MS_GIVEN_NAME_3,MS_GIVEN_NAME_4,MS_GIVEN_NAME_5
00067         
00069         
00070 #define MS_EMAIL                    0x3a56
00071 #define MS_EMAIL_1                              0x3003
00072 #define SET_MS_EMAIL                            \
00073         MS_EMAIL,MS_EMAIL_1
00074 
00076 
00077 #define MS_FIRSTNAME                    0x3a06
00078 #define SET_MS_FIRSTNAME                        \
00079         MS_FIRSTNAME
00080 
00082 
00083 #define MS_LASTNAME                 0x3a11
00084 #define SET_MS_LASTNAME                         \
00085         MS_LASTNAME
00086 
00087 
00089 
00090 #define MS_MIDDLENAME                   0x3a44
00091 #define SET_MS_MIDDLENAME   \
00092         MS_MIDDLENAME
00093 
00095 
00096 #define MS_TITLE                    0x3a17
00097 #define SET_MS_TITLE        \
00098         MS_TITLE
00099 
00101 
00102 #define MS_ADDRESS                  0x3a15
00103 #define MS_ADDRESS_1                    0x3a29
00104 #define MS_ADDRESS_2                    0x3a59
00105 #define SET_MS_ADDRESS      \
00106         MS_ADDRESS, MS_ADDRESS_1, MS_ADDRESS_2
00107 
00109 
00110 #define MS_ZIP                      0x3a5b
00111 #define MS_ZIP_1                    0x3a2a
00112 #define SET_MS_ZIP      \
00113         MS_ZIP, MS_ZIP_1
00114 
00116 
00117 #define MS_STATE                    0x3a28
00118 #define MS_STATE_1                  0x3a5c
00119 #define SET_MS_STATE        \
00120         MS_STATE, MS_STATE_1
00121 
00123 
00124 #define MS_TOWN                     0x3a27
00125 #define MS_TOWN_1                   0x3a59
00126 #define SET_MS_TOWN     \
00127         MS_TOWN, MS_TOWN_1
00128 
00130 
00131 #define MS_COUNTRY                  0x3a26
00132 #define MS_COUNTRY_1                    0x3a5a
00133 #define SET_MS_COUNTRY      \
00134         MS_COUNTRY, MS_COUNTRY_1
00135 
00137 
00138 #define MS_TEL                      0x3a08
00139 #define MS_TEL_1                    0x3a09
00140 #define MS_TEL_2                    0x3a1a
00141 #define MS_TEL_3                    0x3a1b
00142 #define MS_TEL_4                    0x3a1f
00143 #define MS_TEL_5                    0x3a1d
00144 #define MS_TEL_6                    0x3a2d
00145 #define MS_TEL_7                    0x3a2f
00146 #define SET_MS_TEL      \
00147         MS_TEL,MS_TEL_1,MS_TEL_2,MS_TEL_3,MS_TEL_4, \
00148         MS_TEL_5,MS_TEL_6,MS_TEL_7
00149 
00151 
00152 #define MS_MOBILE                   0x3a1c
00153 #define MS_MOBILE_1                 0x3a1e
00154 #define MS_MOBILE_2                 0x3a21
00155 #define SET_MS_MOBILE       \
00156         MS_MOBILE,MS_MOBILE_1,MS_MOBILE_2
00157 
00159 
00160 #define MS_FAX                      0x3a23
00161 #define MS_FAX_1                    0x3a24
00162 #define MS_FAX_2                    0x3a25
00163 #define MS_FAX_3                    0x3a2c
00164 #define SET_MS_FAX      \
00165         MS_FAX,MS_FAX_1,MS_FAX_2,MS_FAX_3
00166 
00168 
00169 #define MS_ORG                      0x3a16
00170 #define SET_MS_ORGANIZATION \
00171         MS_ORG
00172 
00174 
00175 #define MS_DEP                      0x3a18
00176 #define SET_MS_DEPARTMENT   \
00177         MS_DEP
00178 
00180 
00181 #define MS_COMMENT                  0x3004
00182 #define SET_MS_COMMENT      \
00183         MS_COMMENT
00184 
00186 
00187 #define SET_NOT_USED        \
00188         0x3002, \
00189         0x300b, \
00190         0x3a2e, \
00191         0x3a30, \
00192         0x3a19
00193         // 3002 probably address type   
00194         // 300b some sort of key        
00195         // 3a2e secretary tel number        
00196         // 3a30 name of secretary       
00197         // 3a19 office location     
00198 
00199 
00200 
00202 
00203 /*
00204  * HP Openmail as reengineered from the X.400 .PAB file.
00205  */
00206 
00208 
00209 #define HP_OPENMAIL_JOB                            0x672b
00210 #define HP_OPENMAIL_ORGANIZATION                   0x6728
00211 #define HP_OPENMAIL_DEPARTMENT                     0x6729
00212 #define HP_OPENMAIL_SUBDEP                         0x672b
00213 #define HP_OPENMAIL_LOCATION_OF_WORK               0x672a
00214 
00216 
00217 #endif
KDE Logo
This file is part of the documentation for kaddressbook Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:38:53 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003