-rw-r--r-- | kabc/addressee.cpp | 14 | ||||
-rw-r--r-- | kabc/addressee.h | 5 | ||||
-rw-r--r-- | kabc/field.cpp | 12 | ||||
-rw-r--r-- | kabc/phonenumber.cpp | 4 |
4 files changed, 4 insertions, 31 deletions
diff --git a/kabc/addressee.cpp b/kabc/addressee.cpp index 0d8e8e8..2f4a9af 100644 --- a/kabc/addressee.cpp +++ b/kabc/addressee.cpp | |||
@@ -1055,15 +1055,11 @@ QString Addressee::businessPhoneLabel() | |||
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 | ||
@@ -1079,12 +1075,6 @@ QString Addressee::businessFaxLabel() | |||
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"); |
diff --git a/kabc/addressee.h b/kabc/addressee.h index fcadda6..aac78dc 100644 --- a/kabc/addressee.h +++ b/kabc/addressee.h | |||
@@ -332,7 +332,6 @@ class Addressee | |||
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. |
@@ -344,10 +343,6 @@ class Addressee | |||
344 | */ | 343 | */ |
345 | static QString businessFaxLabel(); | 344 | static QString businessFaxLabel(); |
346 | 345 | ||
347 | /** | ||
348 | Return translated label for carPhone field. | ||
349 | */ | ||
350 | static QString carPhoneLabel(); | ||
351 | 346 | ||
352 | /** | 347 | /** |
353 | Return translated label for isdn field. | 348 | Return translated label for isdn field. |
diff --git a/kabc/field.cpp b/kabc/field.cpp index 6f2b307..7c6d7a9 100644 --- a/kabc/field.cpp +++ b/kabc/field.cpp | |||
@@ -75,7 +75,6 @@ class Field::FieldImpl | |||
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, |
@@ -88,7 +87,6 @@ class Field::FieldImpl | |||
88 | Resource, | 87 | Resource, |
89 | Sip, | 88 | Sip, |
90 | MobileWorkPhone, | 89 | MobileWorkPhone, |
91 | MobileHomePhone, | ||
92 | OtherPhone | 90 | OtherPhone |
93 | }; | 91 | }; |
94 | 92 | ||
@@ -173,16 +171,12 @@ QString Field::label() | |||
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: |
@@ -299,14 +293,10 @@ QString Field::value( const KABC::Addressee &a ) | |||
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: |
@@ -431,11 +421,9 @@ Field::List Field::allFields() | |||
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 ); |
diff --git a/kabc/phonenumber.cpp b/kabc/phonenumber.cpp index 90cc4cf..6db1bcf 100644 --- a/kabc/phonenumber.cpp +++ b/kabc/phonenumber.cpp | |||
@@ -233,7 +233,7 @@ 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 | ||
@@ -284,7 +284,7 @@ QString PhoneNumber::typeLabel( int type ) | |||
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) |