22 #ifndef maillistdrag_h
23 #define maillistdrag_h
25 #include "tqdragobject.h"
26 #include "tqvaluelist.h"
30 #include <tdemacros.h>
47 class TDE_EXPORT MailSummary
50 MailSummary( TQ_UINT32 serialNumber, TQString messageId, TQString subject,
51 TQString from, TQString to, time_t date );
56 void set( TQ_UINT32, TQString, TQString, TQString, TQString, time_t );
59 TQ_UINT32 serialNumber() const;
77 TQ_UINT32 mSerialNumber;
78 TQString mMessageId, mSubject, mFrom, mTo;
83 typedef TQValueList<MailSummary> MailList;
86 class TDE_EXPORT MailTextSource {
89 virtual ~MailTextSource() {}
91 virtual TQCString text(TQ_UINT32 serialNumber) const = 0;
95 class TDE_EXPORT MailListDrag : public TQStoredDrag
99 MailListDrag( MailList, TQWidget * parent = 0, MailTextSource *src = 0 );
102 const char *format( int i) const;
104 bool provides( const char *mimeType) const;
106 TQByteArray encodedData( const char *) const;
109 void setMailList( MailList );
112 static const char* format();
116 static bool canDecode( TQMimeSource* e );
120 static bool decode( TQDropEvent* e, MailList& s );
124 static bool decode( TQDropEvent* e, TQByteArray& a );
128 static bool decode( TQByteArray& a, MailList& s );
131 MailTextSource *_src;
TDEPIM classes for drag and drop of mails.
|