kget
chunkdownloadview.h
Go to the documentation of this file.00001
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef KT_CHUNKDOWNLOADVIEW_HH
00023 #define KT_CHUNKDOWNLOADVIEW_HH
00024
00025
00026 #include <QTreeWidget>
00027 #include <ksharedconfig.h>
00028 #include <interfaces/chunkdownloadinterface.h>
00029 #include "ui_chunkdownloadview.h"
00030
00031 namespace bt
00032 {
00033 class TorrentInterface;
00034 }
00035
00036 namespace kt
00037 {
00038 class ChunkDownloadModel;
00039
00040
00044 class ChunkDownloadView : public QWidget,public Ui_ChunkDownloadView
00045 {
00046 Q_OBJECT
00047 public:
00048 ChunkDownloadView(QWidget* parent);
00049 virtual ~ChunkDownloadView();
00050
00052 void downloadAdded(bt::ChunkDownloadInterface* cd);
00053
00055 void downloadRemoved(bt::ChunkDownloadInterface* cd);
00056
00058 void update();
00059
00061 void changeTC(bt::TorrentInterface* tc);
00062
00064 void removeAll();
00065
00066 void saveState(KSharedConfigPtr cfg);
00067 void loadState(KSharedConfigPtr cfg);
00068 private:
00069 bt::TorrentInterface* curr_tc;
00070 ChunkDownloadModel* model;
00071 };
00072 }
00073
00074 #endif