1 /* This file is part of the KDE project
3 Copyright (C) 2007 Lukas Appelhans <l.appelhans@gmx.de>
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 BTFILETREEVIEW_H
12 #define BTFILETREEVIEW_H
14 #include "iwfiletreemodel.h"
18 #include <util/constants.h>
25 class TorrentInterface
;
29 class BTFileTreeView
: public QTreeView
33 BTFileTreeView(bt::TorrentInterface
*tc
, QWidget
* parent
);
36 void contextMenuEvent(QContextMenuEvent
* e
);
40 void downloadNormal();
45 void changePriority(bt::Priority newpriority
);
47 kt::IWFileTreeModel
*fileTreeModel
;
48 bt::TorrentInterface
*m_tc
;
53 QAction
* download_first_action
;
54 QAction
* download_normal_action
;
55 QAction
* download_last_action
;
57 QAction
* delete_action
;