1 /* This file is part of the KDE project
3 Copyright (C) 2007 by 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 TRANSFERHISTORY_H
12 #define TRANSFERHISTORY_H
16 #include <QDomElement>
18 #include "ui_transferhistory.h"
19 #include "rangetreewidget.h"
21 class QFileSystemWatcher
;
23 class TransferHistory
: public KDialog
, Ui::TransferHistory
28 TransferHistory(QWidget
*parent
= 0);
35 void hideEvent(QHideEvent
*event
);
36 QList
<QDomElement
> defaultItems
;
38 QFileSystemWatcher
*watcher
;
40 RangeTreeWidget
*m_treeWidget
;
41 QVBoxLayout
*m_verticalLayout
;
42 QComboBox
*m_rangeTypeCombobox
;
43 QHBoxLayout
*m_hboxLayout
;
44 KTreeWidgetSearchLine
*m_searchBar
;
45 QAction
*m_actionDelete_Selected
;
46 QAction
*m_actionClear
;
47 QAction
*m_actionDownload
;
49 QPushButton
*m_clearButton
;
52 void slotDeleteTransfer();
53 void slotAddTransfers();
55 void slotWriteDefault();
58 void contextMenuEvent(QContextMenuEvent
*event
);
59 void slotLoadRangeType(int type
= -1);