00001
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 <tdelistview.h>
00036
00037 namespace KPIM { class Identity; }
00038 class TQDropEvent;
00039 class TQDragEvent;
00040
00041 namespace KMail {
00042
00043 class IdentityListView;
00044
00048 class IdentityListViewItem : public TDEListViewItem {
00049 public:
00050 IdentityListViewItem( IdentityListView * parent,
00051 const KPIM::Identity & ident );
00052 IdentityListViewItem( IdentityListView * parent, TQListViewItem * 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 TDEListView {
00070 Q_OBJECT
00071
00072 public:
00073 IdentityListView( TQWidget * parent=0, const char * name=0 );
00074 virtual ~IdentityListView() {}
00075
00076 public slots:
00077 void rename( TQListViewItem *, int );
00078
00079 protected:
00080 bool acceptDrag( TQDropEvent * ) const;
00081 TQDragObject * dragObject();
00082 };
00083
00084
00085 }
00086
00087 #endif // __KMAIL_IDENTITYLISTVIEW_H__