21 #ifndef DISTRIBUTIONLIST_H
22 #define DISTRIBUTIONLIST_H
24 #include <kabc/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( KABC::AddressBook* book ) const;
118 Entry::List entries( KABC::AddressBook* book ) const;
121 static bool isDistributionList( const KABC::Addressee& addr );
125 const TQString& name,
126 bool caseSensitive = true );
130 static TQValueList<DistributionList> allDistributionLists( KABC::AddressBook* book );
|