Relicense all GPLv2 only code to GPLv2+.
[kdenetwork.git] / kget / ui / transfersview.h
bloba116dad50beef53e07225d686dbc87f11376306c
1 /* This file is part of the KDE project
3 Copyright (C) 2006 Dario Massarin <nekkar@libero.it>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9 */
11 #ifndef _TRANSFERSVIEW_H
12 #define _TRANSFERSVIEW_H
14 #include <QTreeView>
16 class TransferHandler;
18 class TransfersView : public QTreeView
20 Q_OBJECT
22 public:
23 TransfersView(QWidget * parent = 0);
24 ~TransfersView();
26 void setModel(QAbstractItemModel * model);
27 QModelIndex indexFromTransferHandler(TransferHandler *handler);
29 private:
30 void dropEvent(QDropEvent * event);
31 void rowsInserted(const QModelIndex &, int, int);
34 #endif