• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeabc
 

tdeabc

  • TDEABC
  • PhoneNumber
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
TDEABC::PhoneNumber Class Reference

#include <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 TQValueList< PhoneNumber > List
 
typedef TQValueList< int > TypeList
 

Public Member Functions

 PhoneNumber ()
 
 PhoneNumber (const TQString &number, int type=Home)
 
 ~PhoneNumber ()
 
bool operator== (const PhoneNumber &) const
 
bool operator!= (const PhoneNumber &) const
 
void setId (const TQString &id)
 
TQString id () const
 
void setNumber (const TQString &)
 
TQString number () const
 
void setType (int)
 
int type () const
 
TQString typeLabel () const
 
TQString label () const
 

Static Public Member Functions

static TypeList typeList ()
 
static TQString typeLabel (int type)
 
static TQString label (int type)
 

Friends

KABC_EXPORT TQDataStream & operator<< (TQDataStream &, const PhoneNumber &)
 
KABC_EXPORT TQDataStream & operator>> (TQDataStream &, PhoneNumber &)
 

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.

Member Typedef Documentation

◆ List

typedef TQValueList<PhoneNumber> TDEABC::PhoneNumber::List

Definition at line 44 of file phonenumber.h.

◆ TypeList

typedef TQValueList<int> TDEABC::PhoneNumber::TypeList

Definition at line 45 of file phonenumber.h.

Member Enumeration Documentation

◆ Types

enum TDEABC::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 63 of file phonenumber.h.

Constructor & Destructor Documentation

◆ PhoneNumber() [1/2]

PhoneNumber::PhoneNumber ( )

Create an empty phone number object.

Definition at line 28 of file phonenumber.cpp.

◆ PhoneNumber() [2/2]

PhoneNumber::PhoneNumber ( const TQString &  number,
int  type = Home 
)

Create a phonenumber object.

Parameters
numberNumber
typeType 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::~PhoneNumber ( )

Destructor.

Definition at line 42 of file phonenumber.cpp.

Member Function Documentation

◆ id()

TQString PhoneNumber::id ( ) const

Returns the unique identifier.

Definition at line 78 of file phonenumber.cpp.

◆ label() [1/2]

TQString PhoneNumber::label ( ) const

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

Definition at line 122 of file phonenumber.cpp.

◆ label() [2/2]

TQString PhoneNumber::label ( int  type)
static

Returns the translated label for phone number type.

Deprecated:

Definition at line 139 of file phonenumber.cpp.

◆ number()

TQString PhoneNumber::number ( ) const

Returns the number.

Definition at line 88 of file phonenumber.cpp.

◆ operator!=()

bool PhoneNumber::operator!= ( const PhoneNumber &  p) const

Definition at line 68 of file phonenumber.cpp.

◆ operator==()

bool PhoneNumber::operator== ( const PhoneNumber &  p) const

Definition at line 60 of file phonenumber.cpp.

◆ setId()

void PhoneNumber::setId ( const TQString &  id)

Sets the unique identifier.

Definition at line 73 of file phonenumber.cpp.

◆ setNumber()

void PhoneNumber::setNumber ( const TQString &  number)

Sets the number.

Definition at line 83 of file phonenumber.cpp.

◆ setType()

void PhoneNumber::setType ( int  type)

Sets the type.

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

Definition at line 93 of file phonenumber.cpp.

◆ type()

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.

◆ typeLabel() [1/2]

TQString PhoneNumber::typeLabel ( ) const

Returns a translated string of all types the address has.

Definition at line 103 of file phonenumber.cpp.

◆ typeLabel() [2/2]

TQString PhoneNumber::typeLabel ( int  type)
static

Returns the translated label for phone number type.

Definition at line 144 of file phonenumber.cpp.

◆ typeList()

PhoneNumber::TypeList PhoneNumber::typeList ( )
static

Returns a list of all available types.

Definition at line 127 of file phonenumber.cpp.


The documentation for this class was generated from the following files:
  • phonenumber.h
  • phonenumber.cpp

tdeabc

Skip menu "tdeabc"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeabc

Skip menu "tdeabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeabc by doxygen 1.9.4
This website is maintained by Timothy Pearson.