22 #ifndef KPIM_ADDRESSEE_EMAILSELECTION_H
23 #define KPIM_ADDRESSEE_EMAILSELECTION_H
25 #include <addresseeselector.h>
29 class TDE_EXPORT AddresseeEmailSelection :
public Selection
32 AddresseeEmailSelection();
37 virtual uint fieldCount()
const;
42 virtual TQString fieldTitle( uint index )
const;
47 virtual uint itemCount(
const TDEABC::Addressee &addresse )
const;
52 virtual TQString itemText(
const TDEABC::Addressee &addresse, uint index )
const;
57 virtual TQPixmap itemIcon(
const TDEABC::Addressee &addresse, uint index )
const;
62 virtual bool itemEnabled(
const TDEABC::Addressee &addresse, uint index )
const;
67 virtual bool itemMatches(
const TDEABC::Addressee &addresse, uint index,
const TQString &pattern )
const;
72 virtual bool itemEquals(
const TDEABC::Addressee &addresse, uint index,
const TQString &pattern )
const;
77 virtual TQString distributionListText(
const TDEABC::DistributionList *distributionList )
const;
82 virtual TQPixmap distributionListIcon(
const TDEABC::DistributionList *distributionList )
const;
87 virtual bool distributionListEnabled(
const TDEABC::DistributionList *distributionList )
const;
92 virtual bool distributionListMatches(
const TDEABC::DistributionList *distributionList,
93 const TQString &pattern )
const;
98 virtual uint addressBookCount()
const;
103 virtual TQString addressBookTitle( uint index )
const;
108 virtual TDEABC::Addressee::List addressBookContent( uint index )
const;
110 TQStringList to()
const;
111 TQStringList cc()
const;
112 TQStringList bcc()
const;
114 TDEABC::Addressee::List toAddresses()
const;
115 TDEABC::Addressee::List ccAddresses()
const;
116 TDEABC::Addressee::List bccAddresses()
const;
118 TQStringList toDistributionLists()
const;
119 TQStringList ccDistributionLists()
const;
120 TQStringList bccDistributionLists()
const;
122 void setSelectedTo(
const TQStringList &emails );
123 void setSelectedCC(
const TQStringList &emails );
124 void setSelectedBCC(
const TQStringList &emails );
127 virtual void addSelectedAddressees( uint fieldIndex,
const TDEABC::Addressee&, uint itemIndex );
128 virtual void addSelectedDistributionList( uint fieldIndex,
const TDEABC::DistributionList* );
130 TQString email(
const TDEABC::Addressee&, uint )
const;
131 void setSelectedItem( uint fieldIndex,
const TQStringList& );
133 TDEABC::Addressee::List mToAddresseeList;
134 TDEABC::Addressee::List mCcAddresseeList;
135 TDEABC::Addressee::List mBccAddresseeList;
137 TQStringList mToEmailList;
138 TQStringList mCcEmailList;
139 TQStringList mBccEmailList;
141 TQStringList mToDistributionList;
142 TQStringList mCcDistributionList;
143 TQStringList mBccDistributionList;
TDEPIM classes for drag and drop of mails.