21#ifndef KABC_ADDRESSEE_H
22#define KABC_ADDRESSEE_H
24#include <tqdatetime.h>
26#include <tqstringlist.h>
27#include <tqvaluelist.h>
29#include <ksharedptr.h>
36#include "phonenumber.h"
77 friend KABC_EXPORT TQDataStream &operator>>( TQDataStream &,
Addressee & );
80 typedef TQValueList<Addressee> List;
81 typedef TQMap<TQString, Addressee> Map;
92 bool operator==(
const Addressee & )
const;
93 bool operator!=(
const Addressee & )
const;
103 void setUid(
const TQString &uid );
107 TQString uid()
const;
111 static TQString uidLabel();
116 void setUri(
const TQString &uid );
120 TQString uri()
const;
124 static TQString uriLabel();
132 void setNameFromString(
const TQString & );
138 TQString realName()
const;
143 TQString assembledName()
const;
151 TQString fullEmail(
const TQString &email=TQString::null )
const;
161 void insertEmail(
const TQString &email,
bool preferred=
false );
166 void removeEmail(
const TQString &email );
172 TQString preferredEmail()
const;
177 TQStringList emails()
const;
184 void setEmails(
const TQStringList& list);
190 void insertPhoneNumber(
const PhoneNumber &phoneNumber );
196 void removePhoneNumber(
const PhoneNumber &phoneNumber );
206 PhoneNumber::List phoneNumbers()
const;
211 PhoneNumber::List phoneNumbers(
int type )
const;
216 PhoneNumber findPhoneNumber(
const TQString &
id )
const;
222 void insertKey(
const Key &key );
228 void removeKey(
const Key &key );
236 Key key(
int type, TQString customTypeString = TQString::null )
const;
241 Key::List keys()
const;
247 void setKeys(
const Key::List& keys);
255 Key::List keys(
int type, TQString customTypeString = TQString::null )
const;
260 Key findKey(
const TQString &
id )
const;
266 void insertAddress(
const Address &address );
272 void removeAddress(
const Address &address );
277 Address address(
int type )
const;
292 Address findAddress(
const TQString &
id )
const;
297 void insertCategory(
const TQString & );
302 void removeCategory(
const TQString & );
307 bool hasCategory(
const TQString & )
const;
312 void setCategories(
const TQStringList & );
317 TQStringList categories()
const;
327 void insertCustom(
const TQString &app,
const TQString &name,
328 const TQString &value );
333 void removeCustom(
const TQString &app,
const TQString &name );
338 TQString custom(
const TQString &app,
const TQString &name )
const;
343 void setCustoms(
const TQStringList & );
348 TQStringList customs()
const;
353 static void parseEmailAddress(
const TQString &rawEmail, TQString &fullName,
364 TQString asString()
const;
369 void setResource( Resource *resource );
374 Resource *resource()
const;
379 void setChanged(
bool value );
384 bool changed()
const;
388 bool operator< (
const Addressee &addr );
393 struct AddresseeData;
397 static AddresseeData* shared_null;
398 static AddresseeData* makeSharedNull();
403KABC_EXPORT TQDataStream &operator>>( TQDataStream &,
Addressee & );
Postal address information.
TQValueList< Address > List
List of addresses.
A class to store an encryption key.
Sort method for sorting an addressee list.
kdbgstream & operator<<(const TQValueList< T > &list)
static data, shared by ALL addressee objects