author | ulf69 <ulf69> | 2004-06-30 22:05:03 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-06-30 22:05:03 (UTC) |
commit | c6f3a3f49498dca52d10418d845f4a84c0c6d941 (patch) (unidiff) | |
tree | e0e821d8bf91b26adb356de1da5b781f0bb64a1e | |
parent | 54e07bc9719de5288a38717cee58773b430fc1be (diff) | |
download | kdepimpi-c6f3a3f49498dca52d10418d845f4a84c0c6d941.zip kdepimpi-c6f3a3f49498dca52d10418d845f4a84c0c6d941.tar.gz kdepimpi-c6f3a3f49498dca52d10418d845f4a84c0c6d941.tar.bz2 |
added more specific labels for phonenumbers (for the opie addressbook)
-rw-r--r-- | kabc/phonenumber.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/kabc/phonenumber.cpp b/kabc/phonenumber.cpp index ad3e65b..04b1168 100644 --- a/kabc/phonenumber.cpp +++ b/kabc/phonenumber.cpp | |||
@@ -136,69 +136,78 @@ QString PhoneNumber::label( int type ) | |||
136 | } | 136 | } |
137 | 137 | ||
138 | QString PhoneNumber::typeLabel( int type ) | 138 | QString PhoneNumber::typeLabel( int type ) |
139 | { | 139 | { |
140 | switch ( type ) { | 140 | switch ( type ) { |
141 | case Home: | 141 | case Home: |
142 | return i18n("Home phone", "Home"); | 142 | return i18n("Home phone", "Home"); |
143 | break; | 143 | break; |
144 | case Work: | 144 | case Work: |
145 | return i18n("Work phone", "Work"); | 145 | return i18n("Work phone", "Work"); |
146 | break; | 146 | break; |
147 | case Msg: | 147 | case Msg: |
148 | return i18n("Messenger"); | 148 | return i18n("Messenger"); |
149 | break; | 149 | break; |
150 | case Pref: | 150 | case Pref: |
151 | return i18n("Preferred Number"); | 151 | return i18n("Preferred Number"); |
152 | break; | 152 | break; |
153 | case Voice: | 153 | case Voice: |
154 | return i18n("Voice"); | 154 | return i18n("Voice"); |
155 | break; | 155 | break; |
156 | case Fax: | 156 | case Fax: |
157 | return i18n("Fax"); | 157 | return i18n("Fax"); |
158 | break; | 158 | break; |
159 | case Cell: | 159 | case Cell: |
160 | return i18n("Mobile Phone", "Mobile" ); | 160 | return i18n("Mobile Phone" ); |
161 | break; | ||
162 | case Cell | Home: | ||
163 | return i18n("Home Mobile" ); | ||
164 | break; | ||
165 | case Cell | Work: | ||
166 | return i18n("Home Mobile" ); | ||
161 | break; | 167 | break; |
162 | case Video: | 168 | case Video: |
163 | return i18n("Video"); | 169 | return i18n("Video"); |
164 | break; | 170 | break; |
165 | case Bbs: | 171 | case Bbs: |
166 | return i18n("Mailbox"); | 172 | return i18n("Mailbox"); |
167 | break; | 173 | break; |
168 | case Modem: | 174 | case Modem: |
169 | return i18n("Modem"); | 175 | return i18n("Modem"); |
170 | break; | 176 | break; |
171 | case Car: | 177 | case Car: |
172 | return i18n("Car Phone", "Car" ); | 178 | return i18n("Car Phone", "Car" ); |
173 | break; | 179 | break; |
174 | case Isdn: | 180 | case Isdn: |
175 | return i18n("ISDN"); | 181 | return i18n("ISDN"); |
176 | break; | 182 | break; |
177 | case Pcs: | 183 | case Pcs: |
178 | return i18n("PCS"); | 184 | return i18n("PCS"); |
179 | break; | 185 | break; |
180 | case Pager: | 186 | case Pager: |
181 | return i18n("Pager"); | 187 | return i18n("Pager"); |
182 | break; | 188 | break; |
189 | case Work | Pager: | ||
190 | return i18n("Work Pager"); | ||
191 | break; | ||
183 | case Home | Fax: | 192 | case Home | Fax: |
184 | return i18n("Home Fax"); | 193 | return i18n("Home Fax"); |
185 | break; | 194 | break; |
186 | case Work | Fax: | 195 | case Work | Fax: |
187 | return i18n("Work Fax"); | 196 | return i18n("Work Fax"); |
188 | break; | 197 | break; |
189 | default: | 198 | default: |
190 | return i18n("Other"); | 199 | return i18n("Other"); |
191 | } | 200 | } |
192 | } | 201 | } |
193 | 202 | ||
194 | QDataStream &KABC::operator<<( QDataStream &s, const PhoneNumber &phone ) | 203 | QDataStream &KABC::operator<<( QDataStream &s, const PhoneNumber &phone ) |
195 | { | 204 | { |
196 | return s << phone.mId << phone.mType << phone.mNumber; | 205 | return s << phone.mId << phone.mType << phone.mNumber; |
197 | } | 206 | } |
198 | 207 | ||
199 | QDataStream &KABC::operator>>( QDataStream &s, PhoneNumber &phone ) | 208 | QDataStream &KABC::operator>>( QDataStream &s, PhoneNumber &phone ) |
200 | { | 209 | { |
201 | s >> phone.mId >> phone.mType >> phone.mNumber; | 210 | s >> phone.mId >> phone.mType >> phone.mNumber; |
202 | 211 | ||
203 | return s; | 212 | return s; |
204 | } | 213 | } |