TDE personal information management applications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

219 lines
6.0KB

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