kget
btadvanceddetailswidget.h
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 00003 Copyright (C) 2007 Lukas Appelhans <l.appelhans@gmx.de> 00004 Copyright (C) 2007 Joris Guisson <joris.guisson@gmail.com> 00005 00006 This program is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 */ 00011 00012 #ifndef BTADVANCEDDETAILSWIDGET_H 00013 #define BTADVANCEDDETAILSWIDGET_H 00014 00015 #include <torrent/torrentcontrol.h> 00016 00017 #include <QWidget> 00018 00019 #include "core/observer.h" 00020 00021 class BTTransferHandler; 00022 00023 namespace kt 00024 { 00025 class PeerView; 00026 class ChunkDownloadView; 00027 class FileView; 00028 class Monitor; 00029 class TrackerView; 00030 } 00031 00032 class BTAdvancedDetailsWidget : public QWidget, public TransferObserver 00033 { 00034 Q_OBJECT 00035 public: 00036 BTAdvancedDetailsWidget(BTTransferHandler * transfer); 00037 ~BTAdvancedDetailsWidget(); 00038 00039 void transferChangedEvent(TransferHandler * transfer); 00040 void deleteEvent(TransferHandler * transfer){ Q_UNUSED(transfer); } 00041 void init(); 00042 00043 private: 00044 void hideEvent(QHideEvent * event); 00045 00046 BTTransferHandler * m_transfer; 00047 kt::PeerView* peer_view; 00048 kt::ChunkDownloadView* cd_view; 00049 kt::FileView* file_view; 00050 kt::Monitor* monitor; 00051 kt::TrackerView *tracker_view; 00052 00053 bt::TorrentControl * tc; 00054 }; 00055 00056 #endif 00057
KDE 4.0 API Reference