• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kget

chunkdownloadview.h

Go to the documentation of this file.
00001 
00003 /***************************************************************************
00004  *   Copyright (C) 2007 by Joris Guisson                                   *
00005  *   joris.guisson@gmail.com                                               *
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (at your option) any later version.                                   *
00011  *                                                                         *
00012  *   This program is distributed in the hope that it will be useful,       *
00013  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00015  *   GNU General Public License for more details.                          *
00016  *                                                                         *
00017  *   You should have received a copy of the GNU General Public License     *
00018  *   along with this program; if not, write to the                         *
00019  *   Free Software Foundation, Inc.,                                       *
00020  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
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

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal