kmail
identitylistview.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef __KMAIL_IDENTITYLIST_H__
00033 #define __KMAIL_IDENTITYLIST_H__
00034
00035 #include <klistview.h>
00036
00037 namespace KPIM { class Identity; }
00038 class QDropEvent;
00039 class QDragEvent;
00040
00041 namespace KMail {
00042
00043 class IdentityListView;
00044
00048 class IdentityListViewItem : public KListViewItem {
00049 public:
00050 IdentityListViewItem( IdentityListView * parent,
00051 const KPIM::Identity & ident );
00052 IdentityListViewItem( IdentityListView * parent, QListViewItem * after,
00053 const KPIM::Identity & ident );
00054
00055 uint uoid() const { return mUOID; }
00056 KPIM::Identity & identity() const;
00057 virtual void setIdentity( const KPIM::Identity & ident );
00058 void redisplay();
00059 private:
00060 void init( const KPIM::Identity & ident );
00061
00062 protected:
00063 uint mUOID;
00064 };
00065
00069 class IdentityListView : public KListView {
00070 Q_OBJECT
00071 public:
00072 IdentityListView( QWidget * parent=0, const char * name=0 );
00073 virtual ~IdentityListView() {}
00074
00075 public slots:
00076 void rename( QListViewItem *, int );
00077
00078 protected:
00079 bool acceptDrag( QDropEvent * ) const;
00080 QDragObject * dragObject();
00081 };
00082
00083
00084 }
00085
00086 #endif // __KMAIL_IDENTITYLISTVIEW_H__
|