* maximal -> maximum
[kdenetwork.git] / kget / ui / transfersview.h
blob2e3a3fa8b51d8f869c721f4cc5880de76822ab8d
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);
33 protected:
34 void dragMoveEvent ( QDragMoveEvent * event );
35 void rowsAboutToBeRemoved(const QModelIndex & parent, int start, int end);
37 private slots:
38 void toggleMainGroup();// show or hide the first group header if there's only one download group
41 #endif