use KDE standard for toolbar icon's text
[kdenetwork.git] / kget / ui / transferhistory.h
blob5c9f6285c9c993e37df9b301fb81679faef3d4f2
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.
9 */
11 #ifndef TRANSFERHISTORY_H
12 #define TRANSFERHISTORY_H
14 #include <KDialog>
15 #include <QList>
16 #include <QDomElement>
18 #include "ui_transferhistory.h"
19 #include "rangetreewidget.h"
21 class QFileSystemWatcher;
23 class TransferHistory : public KDialog, Ui::TransferHistory
25 Q_OBJECT
27 public:
28 TransferHistory(QWidget *parent = 0);
30 private:
31 enum RangeType {
32 Date = 0,
33 Size = 1
35 void hideEvent(QHideEvent *event);
36 QList<QDomElement> defaultItems;
37 bool save;
38 QFileSystemWatcher *watcher;
39 int m_rangeType;
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;
48 QAction *m_openFile;
49 QPushButton *m_clearButton;
51 private slots:
52 void slotDeleteTransfer();
53 void slotAddTransfers();
54 void slotClear();
55 void slotWriteDefault();
56 void slotDownload();
57 void slotOpenFile();
58 void contextMenuEvent(QContextMenuEvent *event);
59 void slotLoadRangeType(int type = -1);
62 #endif