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

kget

bt::DataCheckerListener

bt::DataCheckerListener Class Reference

#include <datacheckerlistener.h>

Inheritance diagram for bt::DataCheckerListener:

Inheritance graph
[legend]

List of all members.


Detailed Description

Author:
Joris Guisson <joris.guisson@gmail.com>

Definition at line 32 of file datacheckerlistener.h.


Public Member Functions

 DataCheckerListener (bool auto_import)
virtual void finished ()=0
bool isAutoImport () const
bool isStopped () const
bool needToStop () const
virtual void progress (Uint32 num, Uint32 total)=0
virtual void status (Uint32 num_failed, Uint32 num_found, Uint32 num_downloaded, Uint32 num_not_downloaded)=0
void stop ()
virtual ~DataCheckerListener ()

Protected Attributes

bool auto_import

Constructor & Destructor Documentation

bt::DataCheckerListener::DataCheckerListener ( bool  auto_import  ) 

Definition at line 25 of file datacheckerlistener.cpp.

bt::DataCheckerListener::~DataCheckerListener (  )  [virtual]

Definition at line 29 of file datacheckerlistener.cpp.


Member Function Documentation

virtual void bt::DataCheckerListener::finished (  )  [pure virtual]

Data check has been finished.

Implemented in kt::ScanDlg.

bool bt::DataCheckerListener::isAutoImport (  )  const [inline]

Is this an auto_import.

Definition at line 68 of file datacheckerlistener.h.

bool bt::DataCheckerListener::isStopped (  )  const [inline]

Check if the check has been stopped.

Definition at line 65 of file datacheckerlistener.h.

bool bt::DataCheckerListener::needToStop (  )  const [inline]

Test if we need to stop.

Definition at line 62 of file datacheckerlistener.h.

virtual void bt::DataCheckerListener::progress ( Uint32  num,
Uint32  total 
) [pure virtual]

Called when a chunk has been proccessed.

Parameters:
num The number processed
total The total number of pieces to process

Implemented in kt::ScanDlg.

virtual void bt::DataCheckerListener::status ( Uint32  num_failed,
Uint32  num_found,
Uint32  num_downloaded,
Uint32  num_not_downloaded 
) [pure virtual]

Called when a failed or dowloaded chunk is found.

Parameters:
num_failed The number of failed chunks
num_found The number of found chunks
num_downloaded Number of downloaded chunks
num_not_downloaded Number of not downloaded chunks

Implemented in kt::ScanDlg.

void bt::DataCheckerListener::stop (  )  [inline]

Stop the data check.

Definition at line 73 of file datacheckerlistener.h.


Member Data Documentation

bool bt::DataCheckerListener::auto_import [protected]

Definition at line 78 of file datacheckerlistener.h.


The documentation for this class was generated from the following files:
  • datacheckerlistener.h
  • datacheckerlistener.cpp

kget

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

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