• 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
monitor.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005-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 KTMONITOR_H
21 #define KTMONITOR_H
22 
23 #include <interfaces/monitorinterface.h>
24 
25 namespace bt
26 {
27  class TorrentInterface;
28 }
29 
30 namespace kt
31 {
32  class PeerView;
33  class ChunkDownloadView;
34  class FileView;
35 
39  class Monitor : public bt::MonitorInterface
40  {
41  bt::TorrentInterface* tc;
42  PeerView* pv;
43  ChunkDownloadView* cdv;
44  FileView* fv;
45  public:
46  Monitor(bt::TorrentInterface* tc,PeerView* pv ,ChunkDownloadView* cdv,FileView* fv);
47  virtual ~Monitor();
48 
49  virtual void downloadRemoved(bt::ChunkDownloadInterface* cd);
50  virtual void downloadStarted(bt::ChunkDownloadInterface* cd);
51  virtual void peerAdded(bt::PeerInterface* peer);
52  virtual void peerRemoved(bt::PeerInterface* peer);
53  virtual void stopped();
54  virtual void destroyed();
55  virtual void filePercentageChanged(bt::TorrentFileInterface* file,float percentage);
56  virtual void filePreviewChanged(bt::TorrentFileInterface* file,bool preview);
57  };
58 }
59 
60 #endif
kt::PeerView
View which shows a list of peers, of a torrent.
Definition: peerview.h:38
kt::Monitor::~Monitor
virtual ~Monitor()
Definition: monitor.cpp:43
kt::Monitor::destroyed
virtual void destroyed()
Definition: monitor.cpp:82
kt::FileView
Definition: fileview.h:43
kt::Monitor::Monitor
Monitor(bt::TorrentInterface *tc, PeerView *pv, ChunkDownloadView *cdv, FileView *fv)
Definition: monitor.cpp:35
kt::Monitor::filePercentageChanged
virtual void filePercentageChanged(bt::TorrentFileInterface *file, float percentage)
Definition: monitor.cpp:91
kt::Monitor::stopped
virtual void stopped()
Definition: monitor.cpp:74
kt::Monitor::peerAdded
virtual void peerAdded(bt::PeerInterface *peer)
Definition: monitor.cpp:62
kt::ChunkDownloadView
View which shows a list of downloading chunks, of a torrent.
Definition: chunkdownloadview.h:43
kt::Monitor::downloadStarted
virtual void downloadStarted(bt::ChunkDownloadInterface *cd)
Definition: monitor.cpp:56
kt::Monitor::peerRemoved
virtual void peerRemoved(bt::PeerInterface *peer)
Definition: monitor.cpp:68
kt::Monitor::filePreviewChanged
virtual void filePreviewChanged(bt::TorrentFileInterface *file, bool preview)
Definition: monitor.cpp:97
kt::Monitor
Definition: monitor.h:39
kt::Monitor::downloadRemoved
virtual void downloadRemoved(bt::ChunkDownloadInterface *cd)
Definition: monitor.cpp:50
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