KABC::PhoneNumber Class Reference
#include <phonenumber.h>
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 38 of file phonenumber.h.
Public Types | |
| enum | Types { Home = 1, Work = 2, Msg = 4, Pref = 8, Voice = 16, Fax = 32, Cell = 64, Video = 128, Bbs = 256, Modem = 512, Car = 1024, Isdn = 2048, Pcs = 4096, Pager = 8192 } |
| typedef QValueList< PhoneNumber > | List |
| typedef QValueList< int > | TypeList |
Public Member Functions | |
| PhoneNumber () | |
| PhoneNumber (const QString &number, int type=Home) | |
| ~PhoneNumber () | |
| bool | operator== (const PhoneNumber &) const |
| bool | operator!= (const PhoneNumber &) const |
| void | setId (const QString &id) |
| QString | id () const |
| void | setNumber (const QString &) |
| QString | number () const |
| void | setType (int) |
| int | type () const |
| QString | typeLabel () const |
| QString | label () const |
Static Public Member Functions | |
| static TypeList | typeList () |
| static QString | typeLabel (int type) |
| static QString | label (int type) |
Friends | |
| KABC_EXPORT QDataStream & | operator<< (QDataStream &, const PhoneNumber &) |
| KABC_EXPORT QDataStream & | operator>> (QDataStream &, PhoneNumber &) |
Member Enumeration Documentation
Home- Home number
Work- Office numberMsg- MessagingPref- Preferred numberVoice- VoiceFax- Fax machineCell- Cell phoneVideo- Video phoneBbs- MailboxModem- ModemCar- Car phoneIsdn- ISDN connectionPcs- Personal Communication ServicePager- Pager
Definition at line 63 of file phonenumber.h.
Constructor & Destructor Documentation
| PhoneNumber::PhoneNumber | ( | ) |
| PhoneNumber::PhoneNumber | ( | const QString & | number, | |
| int | type = Home | |||
| ) |
Create a phonenumber object.
- Parameters:
-
number Number type Type as defined in enum. Multiple types can be specified by combining them by a logical or.
Definition at line 34 of file phonenumber.cpp.
| PhoneNumber::~PhoneNumber | ( | ) |
Member Function Documentation
| void PhoneNumber::setId | ( | const QString & | id | ) |
| QString PhoneNumber::id | ( | ) | const |
| void PhoneNumber::setNumber | ( | const QString & | ) |
| QString PhoneNumber::number | ( | ) | const |
| void PhoneNumber::setType | ( | int | ) |
Sets the type.
Multiple types can be specified by combining them by a logical or.
Definition at line 93 of file phonenumber.cpp.
| int PhoneNumber::type | ( | ) | const |
Returns the type.
Can be a multiple types combined by a logical or.
Definition at line 98 of file phonenumber.cpp.
| QString PhoneNumber::typeLabel | ( | ) | const |
Returns a translated string of all types the address has.
Definition at line 103 of file phonenumber.cpp.
| QString PhoneNumber::label | ( | ) | const |
Returns the translated label for phone number depending on its type.
Definition at line 122 of file phonenumber.cpp.
| PhoneNumber::TypeList PhoneNumber::typeList | ( | ) | [static] |
| QString PhoneNumber::typeLabel | ( | int | type | ) | [static] |
| QString PhoneNumber::label | ( | int | type | ) | [static] |
The documentation for this class was generated from the following files:

