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

kget

  • sources
  • kde-4.12
  • kdenetwork
  • kget
  • transfer-plugins
  • bittorrent
  • advanceddetails
chunkdownloadview.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2007 by Joris Guisson *
3  * joris.guisson@gmail.com *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19  ***************************************************************************/
20 #ifndef KT_CHUNKDOWNLOADVIEW_HH
21 #define KT_CHUNKDOWNLOADVIEW_HH
22 
23 
24 #include <QTreeWidget>
25 #include <ksharedconfig.h>
26 #include <interfaces/chunkdownloadinterface.h>
27 #include "ui_chunkdownloadview.h"
28 
29 
30 namespace bt
31 {
32  class TorrentInterface;
33 }
34 
35 namespace kt
36 {
37  class ChunkDownloadModel;
38 
39 
43  class ChunkDownloadView : public QWidget,public Ui_ChunkDownloadView
44  {
45  Q_OBJECT
46  public:
47  ChunkDownloadView(QWidget* parent);
48  virtual ~ChunkDownloadView();
49 
51  void downloadAdded(bt::ChunkDownloadInterface* cd);
52 
54  void downloadRemoved(bt::ChunkDownloadInterface* cd);
55 
57  void update();
58 
60  void changeTC(bt::TorrentInterface* tc);
61 
63  void removeAll();
64 
65  void saveState(KSharedConfigPtr cfg);
66  void loadState(KSharedConfigPtr cfg);
67  private:
68  bt::TorrentInterface* curr_tc;
69  ChunkDownloadModel* model;
70  };
71 }
72 
73 #endif
kt::ChunkDownloadView::saveState
void saveState(KSharedConfigPtr cfg)
Definition: chunkdownloadview.cpp:99
kt::ChunkDownloadModel
Definition: chunkdownloadmodel.h:39
kt::ChunkDownloadView::ChunkDownloadView
ChunkDownloadView(QWidget *parent)
Definition: chunkdownloadview.cpp:39
QWidget
kt::ChunkDownloadView::downloadRemoved
void downloadRemoved(bt::ChunkDownloadInterface *cd)
A download has been removed.
Definition: chunkdownloadview.cpp:59
kt::ChunkDownloadView::downloadAdded
void downloadAdded(bt::ChunkDownloadInterface *cd)
A peer has been added.
Definition: chunkdownloadview.cpp:54
Ui_ChunkDownloadView
kt::ChunkDownloadView::changeTC
void changeTC(bt::TorrentInterface *tc)
Change the torrent to display.
Definition: chunkdownloadview.cpp:77
kt::ChunkDownloadView::removeAll
void removeAll()
Remove all items.
Definition: chunkdownloadview.cpp:94
kt::ChunkDownloadView
View which shows a list of downloading chunks, of a torrent.
Definition: chunkdownloadview.h:43
kt::ChunkDownloadView::update
void update()
Check to see if the GUI needs to be updated.
Definition: chunkdownloadview.cpp:64
kt::ChunkDownloadView::~ChunkDownloadView
virtual ~ChunkDownloadView()
Definition: chunkdownloadview.cpp:50
kt::ChunkDownloadView::loadState
void loadState(KSharedConfigPtr cfg)
Definition: chunkdownloadview.cpp:106
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kget

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

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal