kcmshell renamed to kcmshell4 to fix co-installability between kdelibs3 and kdebase4...
[kdepim.git] / ktnef / ktnefview.h
blobba8321e26cf05bed0f6be4fb4b3111c811f23138
1 /*
2 ktnefview.h
4 Copyright (C) 2002 Michael Goffioul <kdeprint@swing.be>
6 This file is part of KTNEF, the KDE TNEF support library/program.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 You should have received a copy of the GNU General Public License
14 along with this program; if not, write to the Free Software Foundation,
15 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
18 #ifndef KTNEF_KTNEFVIEW_H
19 #define KTNEF_KTNEFVIEW_H
21 #include <k3listview.h>
22 #include <q3ptrlist.h>
23 #include <QResizeEvent>
25 #include <ktnef/ktnefattach.h>
27 class KTNEFView : public K3ListView
29 Q_OBJECT
31 public:
32 KTNEFView( QWidget *parent = 0 );
33 ~KTNEFView();
35 void setAttachments(const QList<KTnef::KTNEFAttach*> &list);
36 QList<KTnef::KTNEFAttach*>* getSelection();
38 signals:
39 void dragRequested( const QList<KTnef::KTNEFAttach*>& list );
41 protected:
42 void resizeEvent(QResizeEvent *e);
43 void startDrag();
45 private:
46 QList<KTnef::KTNEFAttach*> attachments_;
49 #endif // KTNEF_KTNEFVIEW_H