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.
11 #ifndef TRANSFERSVIEW_H
12 #define TRANSFERSVIEW_H
17 class TransferHandler
;
19 class TransfersView
: public QTreeView
24 TransfersView(QWidget
* parent
= 0);
27 void setModel(QAbstractItemModel
* model
);
28 QModelIndex
indexFromTransferHandler(TransferHandler
*handler
);
31 void dropEvent(QDropEvent
* event
);
32 void rowsInserted(const QModelIndex
&, int, int);
33 void populateHeaderActions();
36 void dragMoveEvent ( QDragMoveEvent
* event
);
37 void rowsAboutToBeRemoved(const QModelIndex
& parent
, int start
, int end
);
40 void toggleMainGroup();// show or hide the first group header if there's only one download group
41 void slotSetColumnVisible(int column
);
42 void slotShowHeaderMenu(const QPoint
&point
);