Show invite menu in wlm chat window immediately
[kdenetwork.git] / kget / ui / transfersview.h
blobf490b2f63ecd794a9c8255e500d3d88d49d5afab
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 KMenu;
17 class TransferHandler;
19 class TransfersView : public QTreeView
21 Q_OBJECT
23 public:
24 TransfersView(QWidget * parent = 0);
25 ~TransfersView();
27 void setModel(QAbstractItemModel * model);
28 QModelIndex indexFromTransferHandler(TransferHandler *handler);
30 private:
31 void dropEvent(QDropEvent * event);
32 void rowsInserted(const QModelIndex &, int, int);
33 void populateHeaderActions();
35 protected:
36 void dragMoveEvent ( QDragMoveEvent * event );
37 void rowsAboutToBeRemoved(const QModelIndex & parent, int start, int end);
39 private slots:
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);
44 private:
45 KMenu *m_headerMenu;
48 #endif