kmail
attachmentlistview.h
Go to the documentation of this file.00001 /* -*- c++ -*- 00002 attachmentlistview.h 00003 00004 KMail, the KDE mail client. 00005 Copyright (c) 2003 Ingo Kloecker <kloecker@kde.org> 00006 00007 This program is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU General Public License, 00009 version 2.0, as published by the Free Software Foundation. 00010 You should have received a copy of the GNU General Public License 00011 along with this program; if not, write to the Free Software Foundation, 00012 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US 00013 */ 00014 00015 00016 #ifndef _KMAIL_ATTACHMENTLISTVIEW_H_ 00017 #define _KMAIL_ATTACHMENTLISTVIEW_H_ 00018 00019 #include <klistview.h> 00020 00021 class QDragEnterEvent; 00022 class QDragMoveEvent; 00023 class QDropEvent; 00024 class KMComposeWin; 00025 00026 namespace KMail { 00027 00028 class Composer; 00029 00030 class AttachmentListView : public KListView 00031 { 00032 Q_OBJECT 00033 public: 00034 AttachmentListView( KMail::Composer * composer = 0, QWidget* parent = 0, 00035 const char* name = 0 ); 00036 virtual ~AttachmentListView(); 00037 00039 void contentsDragEnterEvent( QDragEnterEvent* ); 00040 void contentsDragMoveEvent( QDragMoveEvent* ); 00041 void contentsDropEvent( QDropEvent* ); 00042 00043 protected: 00044 virtual void keyPressEvent( QKeyEvent * e ); 00045 virtual void startDrag(); 00046 00047 private: 00048 KMail::Composer * mComposer; 00049 00050 signals: 00051 void attachmentDeleted(); 00052 void dragStarted(); 00053 00054 }; 00055 00056 } // namespace KMail 00057 00058 #endif // _KMAIL_ATTACHMENTLISTVIEW_H_ 00059