increase version
[kdepim.git] / ktnef / ktnefview.h
blob6caa90e5f1560d559422986e0d8c4b25793b0fe9
1 /*
2 This file is part of KTnef.
4 Copyright (C) 2002 Michael Goffioul <kdeprint@swing.be>
5 Copyright (c) 2012 Allen Winter <winter@kde.org>
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 You should have received a copy of the GNU General Public License
13 along with this program; if not, write to the Free Software Foundation,
14 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
17 #ifndef KTNEFVIEW_H
18 #define KTNEFVIEW_H
20 #include <QTreeWidget>
22 namespace KTnef
24 class KTNEFAttach;
26 using namespace KTnef;
28 class KTNEFView : public QTreeWidget
30 Q_OBJECT
32 public:
33 explicit KTNEFView(QWidget *parent = Q_NULLPTR);
34 ~KTNEFView();
36 void setAttachments(const QList<KTNEFAttach *> &list);
37 QList<KTNEFAttach *> getSelection();
39 Q_SIGNALS:
40 void dragRequested(const QList<KTNEFAttach *> &list);
42 protected:
43 void resizeEvent(QResizeEvent *e) Q_DECL_OVERRIDE;
44 void startDrag(Qt::DropActions dropAction) Q_DECL_OVERRIDE;
46 private Q_SLOTS:
47 void adjustColumnWidth();
49 private:
50 QList<KTNEFAttach *> mAttachments;
53 #endif