maillistdrag.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef maillistdrag_h
00022 #define maillistdrag_h
00023
00024 #include "qdragobject.h"
00025 #include "qvaluelist.h"
00026 #include "qglobal.h"
00027 #include "time.h"
00028
00042 namespace KPIM {
00043
00044 class MailSummary
00045 {
00046 public:
00047 MailSummary( Q_UINT32 serialNumber, QString messageId, QString subject,
00048 QString from, QString to, time_t date );
00049 MailSummary() {};
00050 ~MailSummary() {};
00051
00052
00053 void set( Q_UINT32, QString, QString, QString, QString, time_t );
00054
00055
00056 Q_UINT32 serialNumber();
00057
00058
00059 QString messageId();
00060
00061
00062 QString subject();
00063
00064
00065 QString from();
00066
00068 QString to();
00069
00070
00071 time_t date();
00072
00073 private:
00074 Q_UINT32 mSerialNumber;
00075 QString mMessageId, mSubject, mFrom, mTo;
00076 time_t mDate;
00077 };
00078
00079
00080 typedef QValueList<MailSummary> MailList;
00081
00082
00083 class MailListDrag : public QStoredDrag
00084 {
00085 public:
00086 MailListDrag( MailList, QWidget * parent = 0 );
00087 ~MailListDrag() {};
00088
00089
00090 void setMailList( MailList );
00091
00092
00093 static const char* format();
00094
00095
00096
00097 static bool canDecode( QMimeSource* e );
00098
00099
00100
00101 static bool decode( QDropEvent* e, MailList& s );
00102
00103
00104
00105 static bool decode( QDropEvent* e, QByteArray& a );
00106
00107
00108
00109 static bool decode( QByteArray& a, MailList& s );
00110 };
00111
00112 }
00113 #endif
This file is part of the documentation for libkdepim Library Version 3.2.2.