21 #ifndef KABC_PHONENUMBER_H
22 #define KABC_PHONENUMBER_H
24 #include <tqvaluelist.h>
27 #include <tdelibs_export.h>
41 friend KABC_EXPORT TQDataStream &operator>>( TQDataStream &,
PhoneNumber & );
44 typedef TQValueList<PhoneNumber> List;
45 typedef TQValueList<int> TypeList;
63 enum Types { Home = 1, Work = 2, Msg = 4, Pref = 8, Voice = 16, Fax = 32,
64 Cell = 64, Video = 128, Bbs = 256, Modem = 512, Car = 1024,
65 Isdn = 2048, Pcs = 4096, Pager = 8192 };
79 PhoneNumber(
const TQString &number,
int type = Home );
92 void setId(
const TQString &
id );
102 void setNumber(
const TQString & );
107 TQString number()
const;
123 TQString typeLabel()
const;
128 TQString label()
const;
133 static TypeList typeList();
138 static TQString typeLabel(
int type );
144 static TQString label(
int type );
148 void validateNumber(
const TQString& );
156 KABC_EXPORT TQDataStream &
operator<<( TQDataStream &,
const PhoneNumber & );
157 KABC_EXPORT TQDataStream &operator>>( TQDataStream &, PhoneNumber & );
kdbgstream & operator<<(const TQValueList< T > &list)
static data, shared by ALL addressee objects