-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 | |||
@@ -103,68 +103,71 @@ class PhoneNumber | |||
103 | QString id() const; | 103 | QString id() const; |
104 | 104 | ||
105 | /** | 105 | /** |
106 | Sets the number. | 106 | Sets the number. |
107 | */ | 107 | */ |
108 | void setNumber( const QString & ); | 108 | void setNumber( const QString & ); |
109 | 109 | ||
110 | /** | 110 | /** |
111 | Returns the number. | 111 | Returns the number. |
112 | */ | 112 | */ |
113 | QString number() const; | 113 | QString number() const; |
114 | 114 | ||
115 | /** | 115 | /** |
116 | Sets the type. Multiple types can be specified by combining them by | 116 | Sets the type. Multiple types can be specified by combining them by |
117 | a logical or. | 117 | a logical or. |
118 | */ | 118 | */ |
119 | void setType( int ); | 119 | void setType( int ); |
120 | 120 | ||
121 | /** | 121 | /** |
122 | Returns the type. Can be a multiple types combined by a logical or. | 122 | Returns the type. Can be a multiple types combined by a logical or. |
123 | */ | 123 | */ |
124 | int type() const; | 124 | int type() const; |
125 | 125 | ||
126 | /** | 126 | /** |
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 |