-rw-r--r-- | kabc/phonenumber.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kabc/phonenumber.h b/kabc/phonenumber.h index b9d6a17..feeba6c 100644 --- a/kabc/phonenumber.h +++ b/kabc/phonenumber.h | |||
@@ -127,44 +127,47 @@ class PhoneNumber | |||
127 | Returns a translated string of all types the address has. | 127 | Returns a translated string of all types the address has. |
128 | */ | 128 | */ |
129 | QString typeLabel() const; | 129 | QString typeLabel() const; |
130 | 130 | ||
131 | /** | 131 | /** |
132 | Returns the translated label for phone number depending on its type. | 132 | Returns the translated label for phone number depending on its type. |
133 | */ | 133 | */ |
134 | QString label() const; | 134 | QString label() const; |
135 | 135 | ||
136 | /** | 136 | /** |
137 | Returns a list of all available types | 137 | Returns a list of all available types |
138 | */ | 138 | */ |
139 | static TypeList typeList(); | 139 | static TypeList typeList(); |
140 | 140 | ||
141 | /** | 141 | /** |
142 | Returns the translated label for phone number type. | 142 | Returns the translated label for phone number type. |
143 | */ | 143 | */ |
144 | static QString typeLabel( int type ); | 144 | static QString typeLabel( int type ); |
145 | 145 | ||
146 | /** | 146 | /** |
147 | Returns the translated label for phone number type. | 147 | Returns the translated label for phone number type. |
148 | @obsolete | 148 | @obsolete |
149 | */ | 149 | */ |
150 | static QString label( int type ); | 150 | static QString label( int type ); |
151 | static TypeList supportedTypeList(); | ||
152 | static QStringList supportedTypeListNames(); | ||
153 | static int typeListIndex4Type(int type ); | ||
151 | bool simplifyNumber(); | 154 | bool simplifyNumber(); |
152 | void simplifyType(); | 155 | void simplifyType(); |
153 | void makeCompat(); | 156 | void makeCompat(); |
154 | int getCompatType( int type ); | 157 | int getCompatType( int type ); |
155 | 158 | ||
156 | private: | 159 | private: |
157 | void init(); | 160 | void init(); |
158 | 161 | ||
159 | QString mId; | 162 | QString mId; |
160 | 163 | ||
161 | int mType; | 164 | int mType; |
162 | QString mNumber; | 165 | QString mNumber; |
163 | }; | 166 | }; |
164 | 167 | ||
165 | QDataStream &operator<<( QDataStream &, const PhoneNumber & ); | 168 | QDataStream &operator<<( QDataStream &, const PhoneNumber & ); |
166 | QDataStream &operator>>( QDataStream &, PhoneNumber & ); | 169 | QDataStream &operator>>( QDataStream &, PhoneNumber & ); |
167 | 170 | ||
168 | } | 171 | } |
169 | 172 | ||
170 | #endif | 173 | #endif |