kmail

attachmentlistview.h
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 <tdelistview.h>
00020 
00021 class TQDragEnterEvent;
00022 class TQDragMoveEvent;
00023 class TQDropEvent;
00024 class KMComposeWin;
00025 
00026 namespace KMail {
00027 
00028 class Composer;
00029 
00030 class AttachmentListView : public TDEListView
00031 {
00032   Q_OBJECT
00033   
00034 public:
00035   AttachmentListView( KMail::Composer * composer = 0, TQWidget* parent = 0,
00036                       const char* name = 0 );
00037   virtual ~AttachmentListView();
00038 
00040   void contentsDragEnterEvent( TQDragEnterEvent* );
00041   void contentsDragMoveEvent( TQDragMoveEvent* );
00042   void contentsDropEvent( TQDropEvent* );
00043 
00044 protected:
00045   virtual void keyPressEvent( TQKeyEvent * e );
00046   virtual void startDrag();
00047 
00048 private:
00049   KMail::Composer * mComposer;
00050 
00051 signals:
00052   void attachmentDeleted();
00053   void dragStarted();
00054 
00055 };
00056 
00057 } // namespace KMail
00058 
00059 #endif // _KMAIL_ATTACHMENTLISTVIEW_H_
00060