Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
tdeabc
tdeabc
tdeabc
phonenumber.h
1
/*
2
This file is part of libtdeabc.
3
Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
4
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
7
License as published by the Free Software Foundation; either
8
version 2 of the License, or (at your option) any later version.
9
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.
14
15
You should have received a copy of the GNU Library General Public License
16
along with this library; see the file COPYING.LIB. If not, write to
17
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
Boston, MA 02110-1301, USA.
19
*/
20
21
#ifndef KABC_PHONENUMBER_H
22
#define KABC_PHONENUMBER_H
23
24
#include <tqvaluelist.h>
25
#include <tqstring.h>
26
27
#include <tdelibs_export.h>
28
29
namespace
TDEABC
{
30
38
class
KABC_EXPORT
PhoneNumber
39
{
40
friend
KABC_EXPORT TQDataStream &
operator<<
( TQDataStream &,
const
PhoneNumber
& );
41
friend
KABC_EXPORT TQDataStream &operator>>( TQDataStream &,
PhoneNumber
& );
42
43
public
:
44
typedef
TQValueList<PhoneNumber> List;
45
typedef
TQValueList<int> TypeList;
46
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 };
66
70
PhoneNumber
();
71
79
PhoneNumber
(
const
TQString &number,
int
type = Home );
80
84
~PhoneNumber
();
85
86
bool
operator==(
const
PhoneNumber
& )
const
;
87
bool
operator!=(
const
PhoneNumber
& )
const
;
88
92
void
setId(
const
TQString &
id
);
93
97
TQString id()
const
;
98
102
void
setNumber(
const
TQString & );
103
107
TQString number()
const
;
108
113
void
setType(
int
);
114
118
int
type()
const
;
119
123
TQString typeLabel()
const
;
124
128
TQString label()
const
;
129
133
static
TypeList typeList();
134
138
static
TQString typeLabel(
int
type );
139
144
static
TQString label(
int
type );
145
146
private
:
147
void
init();
148
void
validateNumber(
const
TQString& );
149
150
TQString mId;
151
152
int
mType;
153
TQString mNumber;
154
};
155
156
KABC_EXPORT TQDataStream &
operator<<
( TQDataStream &,
const
PhoneNumber & );
157
KABC_EXPORT TQDataStream &operator>>( TQDataStream &, PhoneNumber & );
158
159
}
160
161
#endif
TDEABC::PhoneNumber
Phonenumber information.
Definition
phonenumber.h:39
TDEABC::PhoneNumber::Types
Types
Definition
phonenumber.h:63
operator<<
kdbgstream & operator<<(const TQValueList< T > &list)
TDEABC
static data, shared by ALL addressee objects
Definition
address.h:48
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