author | zautrix <zautrix> | 2005-10-28 21:15:00 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-10-28 21:15:00 (UTC) |
commit | 85d2ea5c17a2b2c7a4ae4dd954bc635a56239b57 (patch) (unidiff) | |
tree | 8628f5cef407eaeee2d8b893f82d296d5dcd4787 | |
parent | 16e87ac5b81352c51343715cf1080191aaba9611 (diff) | |
download | kdepimpi-85d2ea5c17a2b2c7a4ae4dd954bc635a56239b57.zip kdepimpi-85d2ea5c17a2b2c7a4ae4dd954bc635a56239b57.tar.gz kdepimpi-85d2ea5c17a2b2c7a4ae4dd954bc635a56239b57.tar.bz2 |
fixx
-rw-r--r-- | bin/kdepim/kaddressbook/germantranslation.txt | 5 | ||||
-rw-r--r-- | kabc/addressee.cpp | 14 | ||||
-rw-r--r-- | kabc/addressee.h | 7 | ||||
-rw-r--r-- | kabc/field.cpp | 12 | ||||
-rw-r--r-- | kabc/phonenumber.cpp | 4 | ||||
-rw-r--r-- | kaddressbook/xxport/csvimportdialog.cpp | 4 | ||||
-rw-r--r-- | kaddressbook/xxport/csvimportdialog.h | 2 |
7 files changed, 10 insertions, 38 deletions
diff --git a/bin/kdepim/kaddressbook/germantranslation.txt b/bin/kdepim/kaddressbook/germantranslation.txt index 06f25e9..3448dcc 100644 --- a/bin/kdepim/kaddressbook/germantranslation.txt +++ b/bin/kdepim/kaddressbook/germantranslation.txt | |||
@@ -800,38 +800,37 @@ | |||
800 | { "Receiving file from remote...","Empfange entfernte Datei..." }, | 800 | { "Receiving file from remote...","Empfange entfernte Datei..." }, |
801 | { "Sending back synced file...","Sende synchronisierte Datei zurück..." }, | 801 | { "Sending back synced file...","Sende synchronisierte Datei zurück..." }, |
802 | { "Do you want to\nclear all sync info\nof all profiles?","Möchten Sie wirklich\ndie Sync-Info\nfür alle Profile\nlöschen?" }, | 802 | { "Do you want to\nclear all sync info\nof all profiles?","Möchten Sie wirklich\ndie Sync-Info\nfür alle Profile\nlöschen?" }, |
803 | { "Do you want to\nclear the sync\ninfo of profile\n%1?\n","Möchten Sie wirklich\ndie Sync-Info für Profil\n%1?\nlöschen" }, | 803 | { "Do you want to\nclear the sync\ninfo of profile\n%1?\n","Möchten Sie wirklich\ndie Sync-Info für Profil\n%1?\nlöschen" }, |
804 | { "Sorry, no valid port.Syncing cancelled.","Sorry, kein gültiger Port. Syncing abgebrochen." }, | 804 | { "Sorry, no valid port.Syncing cancelled.","Sorry, kein gültiger Port. Syncing abgebrochen." }, |
805 | { "Remote port number:\n(May be: 1 - 65535)","Ferne Port Nummer:\n(Darf sein: 1 - 65535)" }, | 805 | { "Remote port number:\n(May be: 1 - 65535)","Ferne Port Nummer:\n(Darf sein: 1 - 65535)" }, |
806 | { "Writing back file ...","Schreibe Datei zurück..." }, | 806 | { "Writing back file ...","Schreibe Datei zurück..." }, |
807 | { "Sending back file ...","Sende Datei zurück..." }, | 807 | { "Sending back file ...","Sende Datei zurück..." }, |
808 | { "Eeek, there I am ticklish!","Huch, da bin ich kitzlig!" }, | 808 | { "Eeek, there I am ticklish!","Huch, da bin ich kitzlig!" }, |
809 | { "Save using LOCAL storage","Speichere nutze LOCAL Pfad" }, | 809 | { "Save using LOCAL storage","Speichere nutze LOCAL Pfad" }, |
810 | { "...and %1 more\ncontact(s) selected","...und noch %1 Kontakte\n mehr ausgewählt" }, | 810 | { "...and %1 more\ncontact(s) selected","...und noch %1 Kontakte\n mehr ausgewählt" }, |
811 | { "Do you really\nwant to delete the\nsetected contact(s)?\n\n","Möchten Sie wirklich\ndie ausgewählten\nKontakte löschen?\n\n" }, | 811 | { "Do you really\nwant to delete the\nsetected contact(s)?\n\n","Möchten Sie wirklich\ndie ausgewählten\nKontakte löschen?\n\n" }, |
812 | { "%1 contacts\nsuccessfully\nimported.","%1 Kontakte\nerfolgreich\nimportiert." }, | 812 | { "%1 contacts\nsuccessfully\nimported.","%1 Kontakte\nerfolgreich\nimportiert." }, |
813 | { "Import this contact?","Importiere diesen Kontakt?" }, | 813 | { "Import this contact?","Importiere diesen Kontakt?" }, |
814 | { "Import all!","Importiere alle!" }, | 814 | { "Import all!","Importiere alle!" }, |
815 | { "Loading addressbook data ... please wait","Lade Adressbuchdaten ... bitte warten" }, | 815 | { "Loading addressbook data ... please wait","Lade Adressbuchdaten ... bitte warten" }, |
816 | { "Import Format","Import Format" }, | 816 | { "Import Format","Import Format" }, |
817 | { "Select import format!\nDefault and standard is Utf8.\nLatin1 may be the right\nfor some West Europian languages.","Wähle Import Format!\nDefault und Standard ist Utf8.\nLatin1 kann das richtige für\nWesteuropäische Sprachen sein." }, | 817 | { "Select import format!\nDefault and standard is Utf8.\nLatin1 may be the right\nfor some West Europian languages.","Wähle Import Format!\nDefault und Standard ist Utf8.\nLatin1 kann das richtige für\nWesteuropäische Sprachen sein." }, |
818 | { "Home2","Privat2" }, | 818 | { "Home2","Privat2" }, |
819 | { "Work2","Arbeit2" }, | 819 | { "Work2","Arbeit2" }, |
820 | { "Fax (Work)","Fax (Arbeit)" }, | 820 | { "Fax (Work)","Fax (Arbeit)" }, |
821 | { "Fax (Home)","Fax (Privat)" }, | 821 | { "Fax (Home)","Fax (Privat)" }, |
822 | { "Assistent","Sekretär(in)" }, | 822 | { "Assistent","Sekretär(in)" }, |
823 | { "Company","Firma" }, | 823 | { "Company","Firma" }, |
824 | { "Mobile2 (Work)","Handy2 (Arbeit)" }, | 824 | { "Mobile2","Handy2" }, |
825 | { "Mobile2 (Car)","Handy2 (Auto)" }, | ||
826 | { "Callback","Rückruf" }, | 825 | { "Callback","Rückruf" }, |
827 | { "Fax (Other)","Fax (Sonst.)" }, | 826 | { "Fax (Other)","Fax (Sonst.)" }, |
828 | { "Primary","Bevorzugt" }, | 827 | { "Primary","Bevorzugt" }, |
829 | { "Mobile (Home)","Handy (Privat)" }, | 828 | { "Mobile","Handy" }, |
830 | { "Unfiled","Nicht zugeordnet" }, | 829 | { "Unfiled","Nicht zugeordnet" }, |
831 | { "Format.n.:","Format.N.:" }, | 830 | { "Format.n.:","Format.N.:" }, |
832 | { "Other Phone","Sonst. Telefon" }, | 831 | { "Other Phone","Sonst. Telefon" }, |
833 | { "","" }, | 832 | { "","" }, |
834 | { "","" }, | 833 | { "","" }, |
835 | { "","" }, | 834 | { "","" }, |
836 | { "","" }, | 835 | { "","" }, |
837 | { "","" }, \ No newline at end of file | 836 | { "","" }, \ No newline at end of file |
diff --git a/kabc/addressee.cpp b/kabc/addressee.cpp index 0d8e8e8..2f4a9af 100644 --- a/kabc/addressee.cpp +++ b/kabc/addressee.cpp | |||
@@ -1034,78 +1034,68 @@ QString Addressee::businessAddressCountryLabel() | |||
1034 | return i18n("Business Address Country"); | 1034 | return i18n("Business Address Country"); |
1035 | } | 1035 | } |
1036 | 1036 | ||
1037 | 1037 | ||
1038 | QString Addressee::businessAddressLabelLabel() | 1038 | QString Addressee::businessAddressLabelLabel() |
1039 | { | 1039 | { |
1040 | return i18n("Business Address Label"); | 1040 | return i18n("Business Address Label"); |
1041 | } | 1041 | } |
1042 | 1042 | ||
1043 | 1043 | ||
1044 | QString Addressee::homePhoneLabel() | 1044 | QString Addressee::homePhoneLabel() |
1045 | { | 1045 | { |
1046 | return i18n("Home Phone"); | 1046 | return i18n("Home Phone"); |
1047 | } | 1047 | } |
1048 | 1048 | ||
1049 | 1049 | ||
1050 | QString Addressee::businessPhoneLabel() | 1050 | QString Addressee::businessPhoneLabel() |
1051 | { | 1051 | { |
1052 | return i18n("Work Phone"); | 1052 | return i18n("Work Phone"); |
1053 | } | 1053 | } |
1054 | 1054 | ||
1055 | 1055 | ||
1056 | QString Addressee::mobilePhoneLabel() | 1056 | QString Addressee::mobilePhoneLabel() |
1057 | { | 1057 | { |
1058 | return i18n("Mobile Phone"); | 1058 | return i18n("Mobile"); |
1059 | } | 1059 | } |
1060 | QString Addressee::mobileWorkPhoneLabel() | 1060 | QString Addressee::mobileWorkPhoneLabel() |
1061 | { | 1061 | { |
1062 | return i18n("Mobile2 (Work)"); | 1062 | return i18n("Mobile2"); |
1063 | } | ||
1064 | QString Addressee::mobileHomePhoneLabel() | ||
1065 | { | ||
1066 | return i18n("Mobile (Home)"); | ||
1067 | } | 1063 | } |
1068 | 1064 | ||
1069 | 1065 | ||
1070 | QString Addressee::homeFaxLabel() | 1066 | QString Addressee::homeFaxLabel() |
1071 | { | 1067 | { |
1072 | return i18n("Fax (Home)"); | 1068 | return i18n("Fax (Home)"); |
1073 | } | 1069 | } |
1074 | 1070 | ||
1075 | 1071 | ||
1076 | QString Addressee::businessFaxLabel() | 1072 | QString Addressee::businessFaxLabel() |
1077 | { | 1073 | { |
1078 | return i18n("Fax (Work)"); | 1074 | return i18n("Fax (Work)"); |
1079 | } | 1075 | } |
1080 | 1076 | ||
1081 | 1077 | ||
1082 | QString Addressee::carPhoneLabel() | ||
1083 | { | ||
1084 | return i18n("Mobile2 (Car)"); | ||
1085 | } | ||
1086 | |||
1087 | |||
1088 | QString Addressee::isdnLabel() | 1078 | QString Addressee::isdnLabel() |
1089 | { | 1079 | { |
1090 | return i18n("ISDN"); | 1080 | return i18n("ISDN"); |
1091 | } | 1081 | } |
1092 | 1082 | ||
1093 | 1083 | ||
1094 | QString Addressee::pagerLabel() | 1084 | QString Addressee::pagerLabel() |
1095 | { | 1085 | { |
1096 | return i18n("Pager"); | 1086 | return i18n("Pager"); |
1097 | } | 1087 | } |
1098 | QString Addressee::otherPhoneLabel() | 1088 | QString Addressee::otherPhoneLabel() |
1099 | { | 1089 | { |
1100 | return i18n("Other Phone"); | 1090 | return i18n("Other Phone"); |
1101 | } | 1091 | } |
1102 | 1092 | ||
1103 | QString Addressee::sipLabel() | 1093 | QString Addressee::sipLabel() |
1104 | { | 1094 | { |
1105 | return i18n("SIP"); | 1095 | return i18n("SIP"); |
1106 | } | 1096 | } |
1107 | 1097 | ||
1108 | QString Addressee::emailLabel() | 1098 | QString Addressee::emailLabel() |
1109 | { | 1099 | { |
1110 | return i18n("Email Address"); | 1100 | return i18n("Email Address"); |
1111 | } | 1101 | } |
diff --git a/kabc/addressee.h b/kabc/addressee.h index fcadda6..aac78dc 100644 --- a/kabc/addressee.h +++ b/kabc/addressee.h | |||
@@ -311,65 +311,60 @@ class Addressee | |||
311 | Return translated label for businessAddressCountry field. | 311 | Return translated label for businessAddressCountry field. |
312 | */ | 312 | */ |
313 | static QString businessAddressCountryLabel(); | 313 | static QString businessAddressCountryLabel(); |
314 | 314 | ||
315 | /** | 315 | /** |
316 | Return translated label for businessAddressLabel field. | 316 | Return translated label for businessAddressLabel field. |
317 | */ | 317 | */ |
318 | static QString businessAddressLabelLabel(); | 318 | static QString businessAddressLabelLabel(); |
319 | 319 | ||
320 | /** | 320 | /** |
321 | Return translated label for homePhone field. | 321 | Return translated label for homePhone field. |
322 | */ | 322 | */ |
323 | static QString homePhoneLabel(); | 323 | static QString homePhoneLabel(); |
324 | 324 | ||
325 | /** | 325 | /** |
326 | Return translated label for businessPhone field. | 326 | Return translated label for businessPhone field. |
327 | */ | 327 | */ |
328 | static QString businessPhoneLabel(); | 328 | static QString businessPhoneLabel(); |
329 | 329 | ||
330 | /** | 330 | /** |
331 | Return translated label for mobilePhone field. | 331 | Return translated label for mobilePhone field. |
332 | */ | 332 | */ |
333 | static QString mobilePhoneLabel(); | 333 | static QString mobilePhoneLabel(); |
334 | static QString mobileWorkPhoneLabel(); | 334 | static QString mobileWorkPhoneLabel(); |
335 | static QString mobileHomePhoneLabel(); | ||
336 | 335 | ||
337 | /** | 336 | /** |
338 | Return translated label for homeFax field. | 337 | Return translated label for homeFax field. |
339 | */ | 338 | */ |
340 | static QString homeFaxLabel(); | 339 | static QString homeFaxLabel(); |
341 | 340 | ||
342 | /** | 341 | /** |
343 | Return translated label for businessFax field. | 342 | Return translated label for businessFax field. |
344 | */ | 343 | */ |
345 | static QString businessFaxLabel(); | 344 | static QString businessFaxLabel(); |
346 | 345 | ||
347 | /** | 346 | |
348 | Return translated label for carPhone field. | ||
349 | */ | ||
350 | static QString carPhoneLabel(); | ||
351 | |||
352 | /** | 347 | /** |
353 | Return translated label for isdn field. | 348 | Return translated label for isdn field. |
354 | */ | 349 | */ |
355 | static QString isdnLabel(); | 350 | static QString isdnLabel(); |
356 | 351 | ||
357 | /** | 352 | /** |
358 | Return translated label for pager field. | 353 | Return translated label for pager field. |
359 | */ | 354 | */ |
360 | static QString pagerLabel(); | 355 | static QString pagerLabel(); |
361 | static QString otherPhoneLabel(); | 356 | static QString otherPhoneLabel(); |
362 | /** | 357 | /** |
363 | Return translated label for sip field. | 358 | Return translated label for sip field. |
364 | */ | 359 | */ |
365 | static QString sipLabel(); | 360 | static QString sipLabel(); |
366 | 361 | ||
367 | /** | 362 | /** |
368 | Return translated label for email field. | 363 | Return translated label for email field. |
369 | */ | 364 | */ |
370 | static QString emailLabel(); | 365 | static QString emailLabel(); |
371 | 366 | ||
372 | /** | 367 | /** |
373 | Set mail client. | 368 | Set mail client. |
374 | */ | 369 | */ |
375 | void setMailer( const QString &mailer ); | 370 | void setMailer( const QString &mailer ); |
diff --git a/kabc/field.cpp b/kabc/field.cpp index 6f2b307..7c6d7a9 100644 --- a/kabc/field.cpp +++ b/kabc/field.cpp | |||
@@ -54,62 +54,60 @@ class Field::FieldImpl | |||
54 | GivenName, | 54 | GivenName, |
55 | AdditionalName, | 55 | AdditionalName, |
56 | Prefix, | 56 | Prefix, |
57 | Suffix, | 57 | Suffix, |
58 | NickName, | 58 | NickName, |
59 | Birthday, | 59 | Birthday, |
60 | Category, | 60 | Category, |
61 | HomeAddressStreet, | 61 | HomeAddressStreet, |
62 | HomeAddressLocality, | 62 | HomeAddressLocality, |
63 | HomeAddressRegion, | 63 | HomeAddressRegion, |
64 | HomeAddressPostalCode, | 64 | HomeAddressPostalCode, |
65 | HomeAddressCountry, | 65 | HomeAddressCountry, |
66 | HomeAddressLabel, | 66 | HomeAddressLabel, |
67 | BusinessAddressStreet, | 67 | BusinessAddressStreet, |
68 | BusinessAddressLocality, | 68 | BusinessAddressLocality, |
69 | BusinessAddressRegion, | 69 | BusinessAddressRegion, |
70 | BusinessAddressPostalCode, | 70 | BusinessAddressPostalCode, |
71 | BusinessAddressCountry, | 71 | BusinessAddressCountry, |
72 | BusinessAddressLabel, | 72 | BusinessAddressLabel, |
73 | HomePhone, | 73 | HomePhone, |
74 | BusinessPhone, | 74 | BusinessPhone, |
75 | MobilePhone, | 75 | MobilePhone, |
76 | HomeFax, | 76 | HomeFax, |
77 | BusinessFax, | 77 | BusinessFax, |
78 | CarPhone, | ||
79 | Isdn, | 78 | Isdn, |
80 | Pager, | 79 | Pager, |
81 | Email, | 80 | Email, |
82 | Mailer, | 81 | Mailer, |
83 | Title, | 82 | Title, |
84 | Role, | 83 | Role, |
85 | Organization, | 84 | Organization, |
86 | Note, | 85 | Note, |
87 | Url, | 86 | Url, |
88 | Resource, | 87 | Resource, |
89 | Sip, | 88 | Sip, |
90 | MobileWorkPhone, | 89 | MobileWorkPhone, |
91 | MobileHomePhone, | ||
92 | OtherPhone | 90 | OtherPhone |
93 | }; | 91 | }; |
94 | 92 | ||
95 | int fieldId() { return mFieldId; } | 93 | int fieldId() { return mFieldId; } |
96 | int category() { return mCategory; } | 94 | int category() { return mCategory; } |
97 | 95 | ||
98 | QString label() { return mLabel; } | 96 | QString label() { return mLabel; } |
99 | QString key() { return mKey; } | 97 | QString key() { return mKey; } |
100 | QString app() { return mApp; } | 98 | QString app() { return mApp; } |
101 | 99 | ||
102 | private: | 100 | private: |
103 | int mFieldId; | 101 | int mFieldId; |
104 | int mCategory; | 102 | int mCategory; |
105 | 103 | ||
106 | QString mLabel; | 104 | QString mLabel; |
107 | QString mKey; | 105 | QString mKey; |
108 | QString mApp; | 106 | QString mApp; |
109 | }; | 107 | }; |
110 | 108 | ||
111 | 109 | ||
112 | Field::List Field::mAllFields; | 110 | Field::List Field::mAllFields; |
113 | Field::List Field::mDefaultFields; | 111 | Field::List Field::mDefaultFields; |
114 | Field::List Field::mCustomFields; | 112 | Field::List Field::mCustomFields; |
115 | 113 | ||
@@ -152,58 +150,54 @@ QString Field::label() | |||
152 | case FieldImpl::HomeAddressPostalCode: | 150 | case FieldImpl::HomeAddressPostalCode: |
153 | return Addressee::homeAddressPostalCodeLabel(); | 151 | return Addressee::homeAddressPostalCodeLabel(); |
154 | case FieldImpl::HomeAddressCountry: | 152 | case FieldImpl::HomeAddressCountry: |
155 | return Addressee::homeAddressCountryLabel(); | 153 | return Addressee::homeAddressCountryLabel(); |
156 | case FieldImpl::HomeAddressLabel: | 154 | case FieldImpl::HomeAddressLabel: |
157 | return Addressee::homeAddressLabelLabel(); | 155 | return Addressee::homeAddressLabelLabel(); |
158 | case FieldImpl::BusinessAddressStreet: | 156 | case FieldImpl::BusinessAddressStreet: |
159 | return Addressee::businessAddressStreetLabel(); | 157 | return Addressee::businessAddressStreetLabel(); |
160 | case FieldImpl::BusinessAddressLocality: | 158 | case FieldImpl::BusinessAddressLocality: |
161 | return Addressee::businessAddressLocalityLabel(); | 159 | return Addressee::businessAddressLocalityLabel(); |
162 | case FieldImpl::BusinessAddressRegion: | 160 | case FieldImpl::BusinessAddressRegion: |
163 | return Addressee::businessAddressRegionLabel(); | 161 | return Addressee::businessAddressRegionLabel(); |
164 | case FieldImpl::BusinessAddressPostalCode: | 162 | case FieldImpl::BusinessAddressPostalCode: |
165 | return Addressee::businessAddressPostalCodeLabel(); | 163 | return Addressee::businessAddressPostalCodeLabel(); |
166 | case FieldImpl::BusinessAddressCountry: | 164 | case FieldImpl::BusinessAddressCountry: |
167 | return Addressee::businessAddressCountryLabel(); | 165 | return Addressee::businessAddressCountryLabel(); |
168 | case FieldImpl::BusinessAddressLabel: | 166 | case FieldImpl::BusinessAddressLabel: |
169 | return Addressee::businessAddressLabelLabel(); | 167 | return Addressee::businessAddressLabelLabel(); |
170 | case FieldImpl::HomePhone: | 168 | case FieldImpl::HomePhone: |
171 | return Addressee::homePhoneLabel(); | 169 | return Addressee::homePhoneLabel(); |
172 | case FieldImpl::BusinessPhone: | 170 | case FieldImpl::BusinessPhone: |
173 | return Addressee::businessPhoneLabel(); | 171 | return Addressee::businessPhoneLabel(); |
174 | case FieldImpl::MobilePhone: | 172 | case FieldImpl::MobilePhone: |
175 | return Addressee::mobilePhoneLabel(); | 173 | return Addressee::mobilePhoneLabel(); |
176 | case FieldImpl::MobileHomePhone: | ||
177 | return Addressee::mobileHomePhoneLabel(); | ||
178 | case FieldImpl::MobileWorkPhone: | 174 | case FieldImpl::MobileWorkPhone: |
179 | return Addressee::mobileWorkPhoneLabel(); | 175 | return Addressee::mobileWorkPhoneLabel(); |
180 | case FieldImpl::HomeFax: | 176 | case FieldImpl::HomeFax: |
181 | return Addressee::homeFaxLabel(); | 177 | return Addressee::homeFaxLabel(); |
182 | case FieldImpl::BusinessFax: | 178 | case FieldImpl::BusinessFax: |
183 | return Addressee::businessFaxLabel(); | 179 | return Addressee::businessFaxLabel(); |
184 | case FieldImpl::CarPhone: | ||
185 | return Addressee::carPhoneLabel(); | ||
186 | case FieldImpl::Isdn: | 180 | case FieldImpl::Isdn: |
187 | return Addressee::isdnLabel(); | 181 | return Addressee::isdnLabel(); |
188 | case FieldImpl::Pager: | 182 | case FieldImpl::Pager: |
189 | return Addressee::pagerLabel(); | 183 | return Addressee::pagerLabel(); |
190 | case FieldImpl::Email: | 184 | case FieldImpl::Email: |
191 | return Addressee::emailLabel(); | 185 | return Addressee::emailLabel(); |
192 | case FieldImpl::Mailer: | 186 | case FieldImpl::Mailer: |
193 | return Addressee::mailerLabel(); | 187 | return Addressee::mailerLabel(); |
194 | case FieldImpl::Title: | 188 | case FieldImpl::Title: |
195 | return Addressee::titleLabel(); | 189 | return Addressee::titleLabel(); |
196 | case FieldImpl::Role: | 190 | case FieldImpl::Role: |
197 | return Addressee::roleLabel(); | 191 | return Addressee::roleLabel(); |
198 | case FieldImpl::Organization: | 192 | case FieldImpl::Organization: |
199 | return Addressee::organizationLabel(); | 193 | return Addressee::organizationLabel(); |
200 | case FieldImpl::Note: | 194 | case FieldImpl::Note: |
201 | return Addressee::noteLabel(); | 195 | return Addressee::noteLabel(); |
202 | case FieldImpl::Url: | 196 | case FieldImpl::Url: |
203 | return Addressee::urlLabel(); | 197 | return Addressee::urlLabel(); |
204 | case FieldImpl::Resource: | 198 | case FieldImpl::Resource: |
205 | return Addressee::resourceLabel(); | 199 | return Addressee::resourceLabel(); |
206 | case FieldImpl::Category: | 200 | case FieldImpl::Category: |
207 | return Addressee::categoryLabel(); | 201 | return Addressee::categoryLabel(); |
208 | case FieldImpl::Sip: | 202 | case FieldImpl::Sip: |
209 | return Addressee::sipLabel(); | 203 | return Addressee::sipLabel(); |
@@ -278,56 +272,52 @@ QString Field::value( const KABC::Addressee &a ) | |||
278 | // But Qt::IsoDate was not specified. | 272 | // But Qt::IsoDate was not specified. |
279 | // QString _oldFormat = KGlobal::locale()->dateFormat(); | 273 | // QString _oldFormat = KGlobal::locale()->dateFormat(); |
280 | // KGlobal::locale()->setDateFormat("%Y-%m-%d"); // = Qt::ISODate | 274 | // KGlobal::locale()->setDateFormat("%Y-%m-%d"); // = Qt::ISODate |
281 | QString dt = KGlobal::locale()->formatDate(a.birthday().date(), false, KLocale::ISODate); | 275 | QString dt = KGlobal::locale()->formatDate(a.birthday().date(), false, KLocale::ISODate); |
282 | // KGlobal::locale()->setDateFormat(_oldFormat); | 276 | // KGlobal::locale()->setDateFormat(_oldFormat); |
283 | return dt; | 277 | return dt; |
284 | } | 278 | } |
285 | else | 279 | else |
286 | return QString::null; | 280 | return QString::null; |
287 | case FieldImpl::Url: | 281 | case FieldImpl::Url: |
288 | return a.url().prettyURL(); | 282 | return a.url().prettyURL(); |
289 | //US | 283 | //US |
290 | case FieldImpl::Resource: | 284 | case FieldImpl::Resource: |
291 | return a.resource()->resourceName(); | 285 | return a.resource()->resourceName(); |
292 | case FieldImpl::Category: | 286 | case FieldImpl::Category: |
293 | return a.categories().join(","); | 287 | return a.categories().join(","); |
294 | case FieldImpl::HomePhone: | 288 | case FieldImpl::HomePhone: |
295 | return a.phoneNumber( PhoneNumber::Home| PhoneNumber::Pref ).number(); | 289 | return a.phoneNumber( PhoneNumber::Home| PhoneNumber::Pref ).number(); |
296 | case FieldImpl::BusinessPhone: | 290 | case FieldImpl::BusinessPhone: |
297 | return a.phoneNumber( PhoneNumber::Work| PhoneNumber::Pref ).number(); | 291 | return a.phoneNumber( PhoneNumber::Work| PhoneNumber::Pref ).number(); |
298 | case FieldImpl::MobilePhone: | 292 | case FieldImpl::MobilePhone: |
299 | return a.phoneNumber( PhoneNumber::Cell ).number(); | 293 | return a.phoneNumber( PhoneNumber::Cell ).number(); |
300 | case FieldImpl::MobileWorkPhone: | 294 | case FieldImpl::MobileWorkPhone: |
301 | return a.phoneNumber( PhoneNumber::Car ).number(); | 295 | return a.phoneNumber( PhoneNumber::Car ).number(); |
302 | case FieldImpl::MobileHomePhone: | ||
303 | return a.phoneNumber( PhoneNumber::Cell ).number(); | ||
304 | case FieldImpl::HomeFax: | 296 | case FieldImpl::HomeFax: |
305 | return a.phoneNumber( PhoneNumber::Home | PhoneNumber::Fax ).number(); | 297 | return a.phoneNumber( PhoneNumber::Home | PhoneNumber::Fax ).number(); |
306 | case FieldImpl::BusinessFax: | 298 | case FieldImpl::BusinessFax: |
307 | return a.phoneNumber( PhoneNumber::Work | PhoneNumber::Fax ).number(); | 299 | return a.phoneNumber( PhoneNumber::Work | PhoneNumber::Fax ).number(); |
308 | case FieldImpl::CarPhone: | ||
309 | return a.phoneNumber( PhoneNumber::Car ).number(); | ||
310 | case FieldImpl::Isdn: | 300 | case FieldImpl::Isdn: |
311 | return a.phoneNumber( PhoneNumber::Isdn ).number(); | 301 | return a.phoneNumber( PhoneNumber::Isdn ).number(); |
312 | case FieldImpl::Pager: | 302 | case FieldImpl::Pager: |
313 | return a.phoneNumber( PhoneNumber::Pager ).number(); | 303 | return a.phoneNumber( PhoneNumber::Pager ).number(); |
314 | case FieldImpl::Sip: | 304 | case FieldImpl::Sip: |
315 | return a.phoneNumber( PhoneNumber::Pcs | PhoneNumber::Pref ).number(); | 305 | return a.phoneNumber( PhoneNumber::Pcs | PhoneNumber::Pref ).number(); |
316 | case FieldImpl::OtherPhone: | 306 | case FieldImpl::OtherPhone: |
317 | return a.phoneNumber( PhoneNumber::Voice ).number(); | 307 | return a.phoneNumber( PhoneNumber::Voice ).number(); |
318 | case FieldImpl::HomeAddressStreet: | 308 | case FieldImpl::HomeAddressStreet: |
319 | return a.address( Address::Home ).street(); | 309 | return a.address( Address::Home ).street(); |
320 | case FieldImpl::HomeAddressLocality: | 310 | case FieldImpl::HomeAddressLocality: |
321 | return a.address( Address::Home ).locality(); | 311 | return a.address( Address::Home ).locality(); |
322 | case FieldImpl::HomeAddressRegion: | 312 | case FieldImpl::HomeAddressRegion: |
323 | return a.address( Address::Home ).region(); | 313 | return a.address( Address::Home ).region(); |
324 | case FieldImpl::HomeAddressPostalCode: | 314 | case FieldImpl::HomeAddressPostalCode: |
325 | return a.address( Address::Home ).postalCode(); | 315 | return a.address( Address::Home ).postalCode(); |
326 | case FieldImpl::HomeAddressCountry: | 316 | case FieldImpl::HomeAddressCountry: |
327 | return a.address( Address::Home ).country(); | 317 | return a.address( Address::Home ).country(); |
328 | case FieldImpl::BusinessAddressStreet: | 318 | case FieldImpl::BusinessAddressStreet: |
329 | return a.address( Address::Work ).street(); | 319 | return a.address( Address::Work ).street(); |
330 | case FieldImpl::BusinessAddressLocality: | 320 | case FieldImpl::BusinessAddressLocality: |
331 | return a.address( Address::Work ).locality(); | 321 | return a.address( Address::Work ).locality(); |
332 | case FieldImpl::BusinessAddressRegion: | 322 | case FieldImpl::BusinessAddressRegion: |
333 | return a.address( Address::Work ).region(); | 323 | return a.address( Address::Work ).region(); |
@@ -410,53 +400,51 @@ Field::List Field::allFields() | |||
410 | createField( FieldImpl::FormattedName, Frequent ); | 400 | createField( FieldImpl::FormattedName, Frequent ); |
411 | createField( FieldImpl::FamilyName, Frequent ); | 401 | createField( FieldImpl::FamilyName, Frequent ); |
412 | createField( FieldImpl::GivenName, Frequent ); | 402 | createField( FieldImpl::GivenName, Frequent ); |
413 | createField( FieldImpl::AdditionalName ); | 403 | createField( FieldImpl::AdditionalName ); |
414 | createField( FieldImpl::Prefix ); | 404 | createField( FieldImpl::Prefix ); |
415 | createField( FieldImpl::Suffix ); | 405 | createField( FieldImpl::Suffix ); |
416 | createField( FieldImpl::NickName, Personal ); | 406 | createField( FieldImpl::NickName, Personal ); |
417 | createField( FieldImpl::Birthday, Personal ); | 407 | createField( FieldImpl::Birthday, Personal ); |
418 | createField( FieldImpl::Category ); | 408 | createField( FieldImpl::Category ); |
419 | createField( FieldImpl::HomeAddressStreet, Address|Personal ); | 409 | createField( FieldImpl::HomeAddressStreet, Address|Personal ); |
420 | createField( FieldImpl::HomeAddressLocality, Address|Personal ); | 410 | createField( FieldImpl::HomeAddressLocality, Address|Personal ); |
421 | createField( FieldImpl::HomeAddressRegion, Address|Personal ); | 411 | createField( FieldImpl::HomeAddressRegion, Address|Personal ); |
422 | createField( FieldImpl::HomeAddressPostalCode, Address|Personal ); | 412 | createField( FieldImpl::HomeAddressPostalCode, Address|Personal ); |
423 | createField( FieldImpl::HomeAddressCountry, Address|Personal ); | 413 | createField( FieldImpl::HomeAddressCountry, Address|Personal ); |
424 | createField( FieldImpl::HomeAddressLabel, Address|Personal ); | 414 | createField( FieldImpl::HomeAddressLabel, Address|Personal ); |
425 | createField( FieldImpl::BusinessAddressStreet, Address|Organization ); | 415 | createField( FieldImpl::BusinessAddressStreet, Address|Organization ); |
426 | createField( FieldImpl::BusinessAddressLocality, Address|Organization ); | 416 | createField( FieldImpl::BusinessAddressLocality, Address|Organization ); |
427 | createField( FieldImpl::BusinessAddressRegion, Address|Organization ); | 417 | createField( FieldImpl::BusinessAddressRegion, Address|Organization ); |
428 | createField( FieldImpl::BusinessAddressPostalCode, Address|Organization ); | 418 | createField( FieldImpl::BusinessAddressPostalCode, Address|Organization ); |
429 | createField( FieldImpl::BusinessAddressCountry, Address|Organization ); | 419 | createField( FieldImpl::BusinessAddressCountry, Address|Organization ); |
430 | createField( FieldImpl::BusinessAddressLabel, Address|Organization ); | 420 | createField( FieldImpl::BusinessAddressLabel, Address|Organization ); |
431 | createField( FieldImpl::HomePhone, Personal|Frequent ); | 421 | createField( FieldImpl::HomePhone, Personal|Frequent ); |
432 | createField( FieldImpl::BusinessPhone, Organization|Frequent ); | 422 | createField( FieldImpl::BusinessPhone, Organization|Frequent ); |
433 | createField( FieldImpl::MobilePhone, Frequent ); | 423 | createField( FieldImpl::MobilePhone, Frequent ); |
434 | createField( FieldImpl::MobileHomePhone, Frequent ); | ||
435 | createField( FieldImpl::MobileWorkPhone, Frequent ); | 424 | createField( FieldImpl::MobileWorkPhone, Frequent ); |
436 | createField( FieldImpl::HomeFax ); | 425 | createField( FieldImpl::HomeFax ); |
437 | createField( FieldImpl::BusinessFax ); | 426 | createField( FieldImpl::BusinessFax ); |
438 | createField( FieldImpl::CarPhone ); | ||
439 | createField( FieldImpl::Isdn ); | 427 | createField( FieldImpl::Isdn ); |
440 | createField( FieldImpl::Pager ); | 428 | createField( FieldImpl::Pager ); |
441 | createField( FieldImpl::Email, Email|Frequent ); | 429 | createField( FieldImpl::Email, Email|Frequent ); |
442 | createField( FieldImpl::Mailer, Email ); | 430 | createField( FieldImpl::Mailer, Email ); |
443 | createField( FieldImpl::Title, Organization ); | 431 | createField( FieldImpl::Title, Organization ); |
444 | createField( FieldImpl::Role, Organization ); | 432 | createField( FieldImpl::Role, Organization ); |
445 | createField( FieldImpl::Organization, Organization ); | 433 | createField( FieldImpl::Organization, Organization ); |
446 | createField( FieldImpl::Note ); | 434 | createField( FieldImpl::Note ); |
447 | createField( FieldImpl::Url ); | 435 | createField( FieldImpl::Url ); |
448 | createField( FieldImpl::Resource ); | 436 | createField( FieldImpl::Resource ); |
449 | createField( FieldImpl::Sip ); | 437 | createField( FieldImpl::Sip ); |
450 | createField( FieldImpl::OtherPhone ); | 438 | createField( FieldImpl::OtherPhone ); |
451 | } | 439 | } |
452 | 440 | ||
453 | return mAllFields; | 441 | return mAllFields; |
454 | } | 442 | } |
455 | 443 | ||
456 | Field::List Field::defaultFields() | 444 | Field::List Field::defaultFields() |
457 | { | 445 | { |
458 | if ( mDefaultFields.isEmpty() ) { | 446 | if ( mDefaultFields.isEmpty() ) { |
459 | createDefaultField( FieldImpl::GivenName ); | 447 | createDefaultField( FieldImpl::GivenName ); |
460 | createDefaultField( FieldImpl::FamilyName ); | 448 | createDefaultField( FieldImpl::FamilyName ); |
461 | createDefaultField( FieldImpl::Email ); | 449 | createDefaultField( FieldImpl::Email ); |
462 | } | 450 | } |
diff --git a/kabc/phonenumber.cpp b/kabc/phonenumber.cpp index 90cc4cf..6db1bcf 100644 --- a/kabc/phonenumber.cpp +++ b/kabc/phonenumber.cpp | |||
@@ -212,49 +212,49 @@ QString PhoneNumber::label() const | |||
212 | { | 212 | { |
213 | return typeLabel( type() ); | 213 | return typeLabel( type() ); |
214 | } | 214 | } |
215 | 215 | ||
216 | PhoneNumber::TypeList PhoneNumber::typeList() | 216 | PhoneNumber::TypeList PhoneNumber::typeList() |
217 | { | 217 | { |
218 | TypeList list; | 218 | TypeList list; |
219 | 219 | ||
220 | list << Home << Work << Msg << Pref << Voice << Fax << Cell << Video | 220 | list << Home << Work << Msg << Pref << Voice << Fax << Cell << Video |
221 | << Bbs << Modem << Car << Isdn << Pcs << Pager; | 221 | << Bbs << Modem << Car << Isdn << Pcs << Pager; |
222 | 222 | ||
223 | return list; | 223 | return list; |
224 | } | 224 | } |
225 | PhoneNumber::TypeList PhoneNumber::supportedTypeList() | 225 | PhoneNumber::TypeList PhoneNumber::supportedTypeList() |
226 | { | 226 | { |
227 | static TypeList list; | 227 | static TypeList list; |
228 | if ( list.count() == 0 ) | 228 | if ( list.count() == 0 ) |
229 | list << (Home| Pref) << (Work| Pref) << Cell <<(Pcs|Pref)<< Pcs<< Home << Work << Car << (Work| Msg | Voice) << (Work| Msg) << (Home | Fax) << (Work| Fax) << Fax<< Pager << Isdn << Video << Msg << Pref << Voice; | 229 | list << (Home| Pref) << (Work| Pref) << Cell <<(Pcs|Pref)<< Pcs<< Home << Work << Car << (Work| Msg | Voice) << (Work| Msg) << (Home | Fax) << (Work| Fax) << Fax<< Pager << Isdn << Video << Msg << Pref << Voice; |
230 | return list; | 230 | return list; |
231 | } | 231 | } |
232 | QStringList PhoneNumber::supportedTypeListNames() | 232 | QStringList PhoneNumber::supportedTypeListNames() |
233 | { | 233 | { |
234 | static QStringList list; | 234 | static QStringList list; |
235 | if ( list.count() == 0 ) | 235 | if ( list.count() == 0 ) |
236 | list << i18n("Home") << i18n("Work") << i18n("Mobile") << i18n("SIP") << i18n("VoIP") <<i18n("Home2")<< i18n("Work2") << i18n("Mobile2 (Work)") << i18n("Assistent") << i18n("Company") << i18n("Fax (Home)") << i18n("Fax (Work)") << i18n("Fax (Other)") << i18n("Pager") << i18n("ISDN") << i18n("Video") << i18n("Callback") << i18n("Primary")<< i18n("Other"); | 236 | list << i18n("Home") << i18n("Work") << i18n("Mobile") << i18n("SIP") << i18n("VoIP") <<i18n("Home2")<< i18n("Work2") << i18n("Mobile2") << i18n("Assistent") << i18n("Company") << i18n("Fax (Home)") << i18n("Fax (Work)") << i18n("Fax (Other)") << i18n("Pager") << i18n("ISDN") << i18n("Video") << i18n("Callback") << i18n("Primary")<< i18n("Other"); |
237 | return list; | 237 | return list; |
238 | } | 238 | } |
239 | 239 | ||
240 | int PhoneNumber::typeListIndex4Type(int type ) | 240 | int PhoneNumber::typeListIndex4Type(int type ) |
241 | { | 241 | { |
242 | TypeList list = supportedTypeList(); | 242 | TypeList list = supportedTypeList(); |
243 | int i = 0; | 243 | int i = 0; |
244 | while ( i < list.count() ) { | 244 | while ( i < list.count() ) { |
245 | if ( list [i] == type ) | 245 | if ( list [i] == type ) |
246 | return i; | 246 | return i; |
247 | ++i; | 247 | ++i; |
248 | } | 248 | } |
249 | return list.count()-1; | 249 | return list.count()-1; |
250 | } | 250 | } |
251 | 251 | ||
252 | QString PhoneNumber::label( int type ) | 252 | QString PhoneNumber::label( int type ) |
253 | { | 253 | { |
254 | return typeLabel( type ); | 254 | return typeLabel( type ); |
255 | } | 255 | } |
256 | 256 | ||
257 | QString PhoneNumber::typeLabel( int type ) | 257 | QString PhoneNumber::typeLabel( int type ) |
258 | { | 258 | { |
259 | if ((type & Cell) == Cell) | 259 | if ((type & Cell) == Cell) |
260 | return i18n("Mobile"); | 260 | return i18n("Mobile"); |
@@ -263,49 +263,49 @@ QString PhoneNumber::typeLabel( int type ) | |||
263 | return i18n("Home"); | 263 | return i18n("Home"); |
264 | if ((type & Fax) == Fax) | 264 | if ((type & Fax) == Fax) |
265 | return i18n("Fax (Home)"); | 265 | return i18n("Fax (Home)"); |
266 | return i18n("Home2"); | 266 | return i18n("Home2"); |
267 | } | 267 | } |
268 | 268 | ||
269 | if ((type & Work) == Work) { | 269 | if ((type & Work) == Work) { |
270 | if ((type & Pref) == Pref) | 270 | if ((type & Pref) == Pref) |
271 | return i18n("Work"); | 271 | return i18n("Work"); |
272 | if ((type & Fax) == Fax) | 272 | if ((type & Fax) == Fax) |
273 | return i18n("Fax (Work)"); | 273 | return i18n("Fax (Work)"); |
274 | if ((type & Msg) == Msg) { | 274 | if ((type & Msg) == Msg) { |
275 | if ((type & Voice) == Voice) | 275 | if ((type & Voice) == Voice) |
276 | return i18n("Assistent"); | 276 | return i18n("Assistent"); |
277 | return i18n("Company"); | 277 | return i18n("Company"); |
278 | } | 278 | } |
279 | return i18n("Work2"); | 279 | return i18n("Work2"); |
280 | } | 280 | } |
281 | if ((type & Pcs) == Pcs) { | 281 | if ((type & Pcs) == Pcs) { |
282 | if ((type & Pref) == Pref) | 282 | if ((type & Pref) == Pref) |
283 | return i18n("SIP"); | 283 | return i18n("SIP"); |
284 | return i18n("VoIP"); | 284 | return i18n("VoIP"); |
285 | } | 285 | } |
286 | if ((type & Car) == Car) | 286 | if ((type & Car) == Car) |
287 | return i18n("Mobile2 (Work)"); | 287 | return i18n("Mobile2"); |
288 | if ((type & Pager) == Pager) | 288 | if ((type & Pager) == Pager) |
289 | return i18n("Pager"); | 289 | return i18n("Pager"); |
290 | if ((type & Isdn) == Isdn) | 290 | if ((type & Isdn) == Isdn) |
291 | return i18n("ISDN"); | 291 | return i18n("ISDN"); |
292 | if ((type & Video) == Video) | 292 | if ((type & Video) == Video) |
293 | return i18n("Video"); | 293 | return i18n("Video"); |
294 | 294 | ||
295 | if ((type & Msg) == Msg) | 295 | if ((type & Msg) == Msg) |
296 | return i18n("Callback"); | 296 | return i18n("Callback"); |
297 | if ((type & Fax) == Fax) | 297 | if ((type & Fax) == Fax) |
298 | return i18n("Fax (Other)"); | 298 | return i18n("Fax (Other)"); |
299 | 299 | ||
300 | if ((type & Pref) == Pref) | 300 | if ((type & Pref) == Pref) |
301 | return i18n("Primary"); | 301 | return i18n("Primary"); |
302 | 302 | ||
303 | 303 | ||
304 | return i18n("Other"); | 304 | return i18n("Other"); |
305 | 305 | ||
306 | 306 | ||
307 | #if 0 | 307 | #if 0 |
308 | 308 | ||
309 | 309 | ||
310 | 310 | ||
311 | QString typeString; | 311 | QString typeString; |
diff --git a/kaddressbook/xxport/csvimportdialog.cpp b/kaddressbook/xxport/csvimportdialog.cpp index 4044fa8..862241e 100644 --- a/kaddressbook/xxport/csvimportdialog.cpp +++ b/kaddressbook/xxport/csvimportdialog.cpp | |||
@@ -91,49 +91,49 @@ CSVImportDialog::CSVImportDialog( KABC::AddressBook *ab, QWidget *parent, | |||
91 | mTypeMap.insert( KABC::Addressee::homeAddressPostalCodeLabel(), | 91 | mTypeMap.insert( KABC::Addressee::homeAddressPostalCodeLabel(), |
92 | HomeAddressPostalCode ); | 92 | HomeAddressPostalCode ); |
93 | mTypeMap.insert( KABC::Addressee::homeAddressCountryLabel(), | 93 | mTypeMap.insert( KABC::Addressee::homeAddressCountryLabel(), |
94 | HomeAddressCountry ); | 94 | HomeAddressCountry ); |
95 | mTypeMap.insert( KABC::Addressee::homeAddressLabelLabel(), HomeAddressLabel ); | 95 | mTypeMap.insert( KABC::Addressee::homeAddressLabelLabel(), HomeAddressLabel ); |
96 | 96 | ||
97 | mTypeMap.insert( KABC::Addressee::businessAddressStreetLabel(), | 97 | mTypeMap.insert( KABC::Addressee::businessAddressStreetLabel(), |
98 | BusinessAddressStreet ); | 98 | BusinessAddressStreet ); |
99 | mTypeMap.insert( KABC::Addressee::businessAddressLocalityLabel(), | 99 | mTypeMap.insert( KABC::Addressee::businessAddressLocalityLabel(), |
100 | BusinessAddressLocality ); | 100 | BusinessAddressLocality ); |
101 | mTypeMap.insert( KABC::Addressee::businessAddressRegionLabel(), | 101 | mTypeMap.insert( KABC::Addressee::businessAddressRegionLabel(), |
102 | BusinessAddressRegion ); | 102 | BusinessAddressRegion ); |
103 | mTypeMap.insert( KABC::Addressee::businessAddressPostalCodeLabel(), | 103 | mTypeMap.insert( KABC::Addressee::businessAddressPostalCodeLabel(), |
104 | BusinessAddressPostalCode ); | 104 | BusinessAddressPostalCode ); |
105 | mTypeMap.insert( KABC::Addressee::businessAddressCountryLabel(), | 105 | mTypeMap.insert( KABC::Addressee::businessAddressCountryLabel(), |
106 | BusinessAddressCountry ); | 106 | BusinessAddressCountry ); |
107 | mTypeMap.insert( KABC::Addressee::businessAddressLabelLabel(), | 107 | mTypeMap.insert( KABC::Addressee::businessAddressLabelLabel(), |
108 | BusinessAddressLabel ); | 108 | BusinessAddressLabel ); |
109 | 109 | ||
110 | mTypeMap.insert( KABC::Addressee::homePhoneLabel(), HomePhone ); | 110 | mTypeMap.insert( KABC::Addressee::homePhoneLabel(), HomePhone ); |
111 | mTypeMap.insert( KABC::Addressee::businessPhoneLabel(), BusinessPhone ); | 111 | mTypeMap.insert( KABC::Addressee::businessPhoneLabel(), BusinessPhone ); |
112 | mTypeMap.insert( KABC::Addressee::mobilePhoneLabel(), MobilePhone ); | 112 | mTypeMap.insert( KABC::Addressee::mobilePhoneLabel(), MobilePhone ); |
113 | mTypeMap.insert( KABC::Addressee::homeFaxLabel(), HomeFax ); | 113 | mTypeMap.insert( KABC::Addressee::homeFaxLabel(), HomeFax ); |
114 | mTypeMap.insert( KABC::Addressee::businessFaxLabel(), BusinessFax ); | 114 | mTypeMap.insert( KABC::Addressee::businessFaxLabel(), BusinessFax ); |
115 | mTypeMap.insert( KABC::Addressee::carPhoneLabel(), CarPhone ); | 115 | mTypeMap.insert( KABC::Addressee::mobileWorkPhoneLabel(), MobileWorkPhone ); |
116 | mTypeMap.insert( KABC::Addressee::isdnLabel(), Isdn ); | 116 | mTypeMap.insert( KABC::Addressee::isdnLabel(), Isdn ); |
117 | mTypeMap.insert( KABC::Addressee::pagerLabel(), Pager ); | 117 | mTypeMap.insert( KABC::Addressee::pagerLabel(), Pager ); |
118 | mTypeMap.insert( KABC::Addressee::emailLabel(), Email ); | 118 | mTypeMap.insert( KABC::Addressee::emailLabel(), Email ); |
119 | mTypeMap.insert( KABC::Addressee::mailerLabel(), Mailer ); | 119 | mTypeMap.insert( KABC::Addressee::mailerLabel(), Mailer ); |
120 | mTypeMap.insert( KABC::Addressee::titleLabel(), Title ); | 120 | mTypeMap.insert( KABC::Addressee::titleLabel(), Title ); |
121 | mTypeMap.insert( KABC::Addressee::roleLabel(), Role ); | 121 | mTypeMap.insert( KABC::Addressee::roleLabel(), Role ); |
122 | mTypeMap.insert( KABC::Addressee::organizationLabel(), Organization ); | 122 | mTypeMap.insert( KABC::Addressee::organizationLabel(), Organization ); |
123 | mTypeMap.insert( KABC::Addressee::noteLabel(), Note ); | 123 | mTypeMap.insert( KABC::Addressee::noteLabel(), Note ); |
124 | mTypeMap.insert( KABC::Addressee::urlLabel(), URL ); | 124 | mTypeMap.insert( KABC::Addressee::urlLabel(), URL ); |
125 | mTypeMap.insert( KABC::Addressee::categoryLabel(), Categories ); | 125 | mTypeMap.insert( KABC::Addressee::categoryLabel(), Categories ); |
126 | 126 | ||
127 | mCustomCounter = mTypeMap.count(); | 127 | mCustomCounter = mTypeMap.count(); |
128 | int count = mCustomCounter; | 128 | int count = mCustomCounter; |
129 | 129 | ||
130 | KABC::Field::List fields = mAddressBook->fields( KABC::Field::CustomCategory ); | 130 | KABC::Field::List fields = mAddressBook->fields( KABC::Field::CustomCategory ); |
131 | KABC::Field::List::Iterator it; | 131 | KABC::Field::List::Iterator it; |
132 | for ( it = fields.begin(); it != fields.end(); ++it, ++count ) | 132 | for ( it = fields.begin(); it != fields.end(); ++it, ++count ) |
133 | mTypeMap.insert( (*it)->label(), count ); | 133 | mTypeMap.insert( (*it)->label(), count ); |
134 | 134 | ||
135 | connect( mDelimiterBox, SIGNAL( clicked( int ) ), | 135 | connect( mDelimiterBox, SIGNAL( clicked( int ) ), |
136 | this, SLOT( delimiterClicked( int ) ) ); | 136 | this, SLOT( delimiterClicked( int ) ) ); |
137 | connect( mDelimiterEdit, SIGNAL( returnPressed() ), | 137 | connect( mDelimiterEdit, SIGNAL( returnPressed() ), |
138 | this, SLOT( returnPressed() ) ); | 138 | this, SLOT( returnPressed() ) ); |
139 | connect( mDelimiterEdit, SIGNAL( textChanged ( const QString& ) ), | 139 | connect( mDelimiterEdit, SIGNAL( textChanged ( const QString& ) ), |
@@ -272,49 +272,49 @@ KABC::AddresseeList CSVImportDialog::contacts() const | |||
272 | KABC::PhoneNumber number( value, KABC::PhoneNumber::Work ); | 272 | KABC::PhoneNumber number( value, KABC::PhoneNumber::Work ); |
273 | a.insertPhoneNumber( number ); | 273 | a.insertPhoneNumber( number ); |
274 | } | 274 | } |
275 | break; | 275 | break; |
276 | case MobilePhone: | 276 | case MobilePhone: |
277 | if ( !value.isEmpty() ) { | 277 | if ( !value.isEmpty() ) { |
278 | KABC::PhoneNumber number( value, KABC::PhoneNumber::Cell ); | 278 | KABC::PhoneNumber number( value, KABC::PhoneNumber::Cell ); |
279 | a.insertPhoneNumber( number ); | 279 | a.insertPhoneNumber( number ); |
280 | } | 280 | } |
281 | break; | 281 | break; |
282 | case HomeFax: | 282 | case HomeFax: |
283 | if ( !value.isEmpty() ) { | 283 | if ( !value.isEmpty() ) { |
284 | KABC::PhoneNumber number( value, KABC::PhoneNumber::Home | | 284 | KABC::PhoneNumber number( value, KABC::PhoneNumber::Home | |
285 | KABC::PhoneNumber::Fax ); | 285 | KABC::PhoneNumber::Fax ); |
286 | a.insertPhoneNumber( number ); | 286 | a.insertPhoneNumber( number ); |
287 | } | 287 | } |
288 | break; | 288 | break; |
289 | case BusinessFax: | 289 | case BusinessFax: |
290 | if ( !value.isEmpty() ) { | 290 | if ( !value.isEmpty() ) { |
291 | KABC::PhoneNumber number( value, KABC::PhoneNumber::Work | | 291 | KABC::PhoneNumber number( value, KABC::PhoneNumber::Work | |
292 | KABC::PhoneNumber::Fax ); | 292 | KABC::PhoneNumber::Fax ); |
293 | a.insertPhoneNumber( number ); | 293 | a.insertPhoneNumber( number ); |
294 | } | 294 | } |
295 | break; | 295 | break; |
296 | case CarPhone: | 296 | case MobileWorkPhone: |
297 | if ( !value.isEmpty() ) { | 297 | if ( !value.isEmpty() ) { |
298 | KABC::PhoneNumber number( value, KABC::PhoneNumber::Car ); | 298 | KABC::PhoneNumber number( value, KABC::PhoneNumber::Car ); |
299 | a.insertPhoneNumber( number ); | 299 | a.insertPhoneNumber( number ); |
300 | } | 300 | } |
301 | break; | 301 | break; |
302 | case Isdn: | 302 | case Isdn: |
303 | if ( !value.isEmpty() ) { | 303 | if ( !value.isEmpty() ) { |
304 | KABC::PhoneNumber number( value, KABC::PhoneNumber::Isdn ); | 304 | KABC::PhoneNumber number( value, KABC::PhoneNumber::Isdn ); |
305 | a.insertPhoneNumber( number ); | 305 | a.insertPhoneNumber( number ); |
306 | } | 306 | } |
307 | break; | 307 | break; |
308 | case Pager: | 308 | case Pager: |
309 | if ( !value.isEmpty() ) { | 309 | if ( !value.isEmpty() ) { |
310 | KABC::PhoneNumber number( value, KABC::PhoneNumber::Pager ); | 310 | KABC::PhoneNumber number( value, KABC::PhoneNumber::Pager ); |
311 | a.insertPhoneNumber( number ); | 311 | a.insertPhoneNumber( number ); |
312 | } | 312 | } |
313 | break; | 313 | break; |
314 | 314 | ||
315 | case HomeAddressStreet: | 315 | case HomeAddressStreet: |
316 | addrHome.setStreet( value ); | 316 | addrHome.setStreet( value ); |
317 | break; | 317 | break; |
318 | case HomeAddressLocality: | 318 | case HomeAddressLocality: |
319 | addrHome.setLocality( value ); | 319 | addrHome.setLocality( value ); |
320 | break; | 320 | break; |
diff --git a/kaddressbook/xxport/csvimportdialog.h b/kaddressbook/xxport/csvimportdialog.h index 5f55ab2..2661420 100644 --- a/kaddressbook/xxport/csvimportdialog.h +++ b/kaddressbook/xxport/csvimportdialog.h | |||
@@ -60,49 +60,49 @@ class CSVImportDialog : public KDialogBase | |||
60 | virtual void slotOk(); | 60 | virtual void slotOk(); |
61 | 61 | ||
62 | private slots: | 62 | private slots: |
63 | void returnPressed(); | 63 | void returnPressed(); |
64 | void delimiterClicked( int id ); | 64 | void delimiterClicked( int id ); |
65 | void lineSelected( const QString& line ); | 65 | void lineSelected( const QString& line ); |
66 | void textquoteSelected( const QString& mark ); | 66 | void textquoteSelected( const QString& mark ); |
67 | void textChanged ( const QString & ); | 67 | void textChanged ( const QString & ); |
68 | void ignoreDuplicatesChanged( int ); | 68 | void ignoreDuplicatesChanged( int ); |
69 | void setFile( const QString& ); | 69 | void setFile( const QString& ); |
70 | void urlChanged( const QString& ); | 70 | void urlChanged( const QString& ); |
71 | void codecChanged ( const QString& ); | 71 | void codecChanged ( const QString& ); |
72 | 72 | ||
73 | void applyTemplate(); | 73 | void applyTemplate(); |
74 | void saveTemplate(); | 74 | void saveTemplate(); |
75 | 75 | ||
76 | private: | 76 | private: |
77 | enum { Undefined, FormattedName, FamilyName, GivenName, AdditionalName, | 77 | enum { Undefined, FormattedName, FamilyName, GivenName, AdditionalName, |
78 | Prefix, Suffix, NickName, Birthday, | 78 | Prefix, Suffix, NickName, Birthday, |
79 | HomeAddressStreet, HomeAddressLocality, HomeAddressRegion, | 79 | HomeAddressStreet, HomeAddressLocality, HomeAddressRegion, |
80 | HomeAddressPostalCode, HomeAddressCountry, HomeAddressLabel, | 80 | HomeAddressPostalCode, HomeAddressCountry, HomeAddressLabel, |
81 | BusinessAddressStreet, BusinessAddressLocality, BusinessAddressRegion, | 81 | BusinessAddressStreet, BusinessAddressLocality, BusinessAddressRegion, |
82 | BusinessAddressPostalCode, BusinessAddressCountry, | 82 | BusinessAddressPostalCode, BusinessAddressCountry, |
83 | BusinessAddressLabel, | 83 | BusinessAddressLabel, |
84 | HomePhone, BusinessPhone, MobilePhone, HomeFax, BusinessFax, CarPhone, | 84 | HomePhone, BusinessPhone, MobilePhone, HomeFax, BusinessFax, MobileWorkPhone, |
85 | Isdn, Pager, Email, Mailer, Title, Role, Organization, Note, URL, Categories | 85 | Isdn, Pager, Email, Mailer, Title, Role, Organization, Note, URL, Categories |
86 | }; | 86 | }; |
87 | 87 | ||
88 | QTable* mTable; | 88 | QTable* mTable; |
89 | QButtonGroup* mDelimiterBox; | 89 | QButtonGroup* mDelimiterBox; |
90 | QRadioButton* mRadioComma; | 90 | QRadioButton* mRadioComma; |
91 | QRadioButton* mRadioSemicolon; | 91 | QRadioButton* mRadioSemicolon; |
92 | QRadioButton* mRadioTab; | 92 | QRadioButton* mRadioTab; |
93 | QRadioButton* mRadioSpace; | 93 | QRadioButton* mRadioSpace; |
94 | QRadioButton* mRadioOther; | 94 | QRadioButton* mRadioOther; |
95 | QLineEdit* mDelimiterEdit; | 95 | QLineEdit* mDelimiterEdit; |
96 | QComboBox* mComboLine; | 96 | QComboBox* mComboLine; |
97 | QComboBox* mComboQuote; | 97 | QComboBox* mComboQuote; |
98 | QComboBox* mComboCodec; | 98 | QComboBox* mComboCodec; |
99 | QCheckBox* mIgnoreDuplicates; | 99 | QCheckBox* mIgnoreDuplicates; |
100 | KURLRequester* mUrlRequester; | 100 | KURLRequester* mUrlRequester; |
101 | 101 | ||
102 | void initGUI(); | 102 | void initGUI(); |
103 | void fillTable(); | 103 | void fillTable(); |
104 | void clearTable(); | 104 | void clearTable(); |
105 | void fillComboBox(); | 105 | void fillComboBox(); |
106 | void setText( int row, int col, const QString& text ); | 106 | void setText( int row, int col, const QString& text ); |
107 | void adjustRows( int rows ); | 107 | void adjustRows( int rows ); |
108 | QString getText( int row, int col ); | 108 | QString getText( int row, int col ); |