KABC::PhoneNumber Class Reference
Phonenumber information. More...
#include <phonenumber.h>
Public Types | |
enum | Types |
| |
Public Methods | |
PhoneNumber () | |
Create an empty phone number object. | |
PhoneNumber (const QString &number, int type=Home) | |
Create a phonenumber object. | |
~PhoneNumber () | |
Destructor. | |
void | setId (const QString &id) |
Sets the unique identifier. | |
QString | id () const |
Returns the unique identifier. | |
void | setNumber (const QString &) |
Sets the number. | |
QString | number () const |
Returns the number. | |
void | setType (int) |
Sets the type. | |
int | type () const |
Returns the type. | |
QString | typeLabel () const |
Returns a translated string of all types the address has. | |
QString | label () const |
Returns the translated label for phone number depending on its type. | |
Static Public Methods | |
TypeList | typeList () |
Returns a list of all available types. | |
QString | typeLabel (int type) |
Returns the translated label for phone number type. | |
QString | label (int type) |
Returns the translated label for phone number type. |
Detailed Description
Phonenumber information.This class provides phone number information. A phone number is classified by a type. The following types are available, it's possible to use multiple types Types for a number by combining them through a logical or.
Definition at line 36 of file phonenumber.h.
Member Enumeration Documentation
|
Definition at line 61 of file phonenumber.h. |
Constructor & Destructor Documentation
|
Create an empty phone number object.
Definition at line 28 of file phonenumber.cpp. |
|
Create a phonenumber object.
Definition at line 34 of file phonenumber.cpp. |
|
Destructor.
Definition at line 40 of file phonenumber.cpp. |
Member Function Documentation
|
Sets the unique identifier.
Definition at line 62 of file phonenumber.cpp. |
|
Returns the unique identifier.
Definition at line 67 of file phonenumber.cpp. Referenced by KABC::Addressee::insertPhoneNumber(), and KABC::Addressee::removePhoneNumber(). |
|
Sets the number.
Definition at line 72 of file phonenumber.cpp. |
|
Returns the number.
Definition at line 77 of file phonenumber.cpp. Referenced by KABC::Addressee::phoneNumber(). |
|
Sets the type. Multiple types can be specified by combining them by a logical or. Definition at line 82 of file phonenumber.cpp. References type(). |
|
Returns the type. Can be a multiple types combined by a logical or. Definition at line 87 of file phonenumber.cpp. Referenced by label(), setType(), and typeLabel(). |
|
Returns a translated string of all types the address has.
Definition at line 92 of file phonenumber.cpp. References QString::append(), QValueList::begin(), QValueList::end(), label(), type(), and typeList(). Referenced by label(). |
|
Returns the translated label for phone number depending on its type.
Definition at line 111 of file phonenumber.cpp. References type(), and typeLabel(). Referenced by typeLabel(). |
|
Returns a list of all available types.
Definition at line 116 of file phonenumber.cpp. Referenced by typeLabel(). |
|
Returns the translated label for phone number type.
Definition at line 131 of file phonenumber.cpp. |
|
Returns the translated label for phone number type.
Definition at line 126 of file phonenumber.cpp. References type(), and typeLabel(). |
The documentation for this class was generated from the following files: