21#ifndef DISTRIBUTIONLIST_H
22#define DISTRIBUTIONLIST_H
24#include <tdeabc/addressee.h>
55 typedef TQValueList<Entry> List;
58 Entry( const Addressee &_addressee, const TQString &_email ) :
59 addressee( _addressee ), email( _email ) {}
65 typedef TQValueList<DistributionList> List;
86 TQString name() const { return formattedName(); }
92 void insertEntry( const Addressee &, const TQString &email=TQString() );
98 void removeEntry( const Addressee &, const TQString &email=TQString() );
101 void insertEntry( const TQString& uid, const TQString& email=TQString() );
103 void removeEntry( const TQString& uid, const TQString& email=TQString() );
111 TQStringList emails( TDEABC::AddressBook* book ) const;
118 Entry::List entries( TDEABC::AddressBook* book ) const;
121 static bool isDistributionList( const TDEABC::Addressee& addr );
125 const TQString& name,
126 bool caseSensitive = true );
130 static TQValueList<DistributionList> allDistributionLists( TDEABC::AddressBook* book );
Distribution list of email addresses.
void insertEntry(const Addressee &, const TQString &email=TQString()) Insert an entry into this distribution list.
void setName(const TQString &name) HACK: reimplemented from Addressee, but it's NOT virtual there.
void removeEntry(const Addressee &, const TQString &email=TQString()) Remove an entry from this distribution list.
DistributionList() Create a distribution list.
Entry::List entries(TDEABC::AddressBook *book) const Return list of entries belonging to this distribution list.
~DistributionList() Destructor.
TQString name() const HACK: reimplemented from Addressee, but it's NOT virtual there.
TQStringList emails(TDEABC::AddressBook *book) const Return list of email addresses, which belong to this distributon list.
TDEPIM classes for drag and drop of mails.
|