Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KABC::PhoneNumber Class Reference

Phonenumber information. More...

#include <phonenumber.h>

List of all members.

Public Types

enum  Types

Public Methods

 PhoneNumber ()
 PhoneNumber (const QString &number, int type=Home)
 ~PhoneNumber ()
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 Methods

TypeList typeList ()
QString typeLabel (int type)
QString label (int 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

enum KABC::PhoneNumber::Types
 

  • Home - Home number
  • Work - Office number
  • Msg - Messaging
  • Pref - Preferred number
  • Voice - Voice
  • Fax - Fax machine
  • Cell - Cell phone
  • Video - Video phone
  • Bbs - Mailbox
  • Modem - Modem
  • Car - Car phone
  • Isdn - ISDN connection
  • Pcs - Personal Communication Service
  • Pager - Pager

Definition at line 61 of file phonenumber.h.


Constructor & Destructor Documentation

KABC::PhoneNumber::PhoneNumber (    ) 
 

Create an empty phone number object.

KABC::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.

KABC::PhoneNumber::~PhoneNumber (    ) 
 

Destructor.


Member Function Documentation

QString KABC::PhoneNumber::id (    ) 
 

Returns the unique identifier.

QString KABC::PhoneNumber::label (  int    type )  [static]
 

Returns the translated label for phone number type. @obsolete

QString KABC::PhoneNumber::label (    ) 
 

Returns the translated label for phone number depending on its type.

QString KABC::PhoneNumber::number (    ) 
 

Returns the number.

void KABC::PhoneNumber::setId (  const QString &    id ) 
 

Sets the unique identifier.

void KABC::PhoneNumber::setNumber (  const QString &    ) 
 

Sets the number.

void KABC::PhoneNumber::setType (  int    ) 
 

Sets the type. Multiple types can be specified by combining them by a logical or.

int KABC::PhoneNumber::type (    ) 
 

Returns the type. Can be a multiple types combined by a logical or.

QString KABC::PhoneNumber::typeLabel (  int    type )  [static]
 

Returns the translated label for phone number type.

QString KABC::PhoneNumber::typeLabel (    ) 
 

Returns a translated string of all types the address has.

TypeList KABC::PhoneNumber::typeList (    )  [static]
 

Returns a list of all available types


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:31 2003 for kdelibs by doxygen1.2.18