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

kget

Public Slots | Public Member Functions | List of all members
TransferKio Class Reference

#include <transferKio.h>

Inheritance diagram for TransferKio:
Inheritance graph
[legend]

Public Slots

void deinit (Transfer::DeleteOptions options)
 
bool setNewDestination (const KUrl &newDestination)
 
void start ()
 
void stop ()
 
- Public Slots inherited from Transfer
void setLog (const QString &message, Transfer::LogLevel level=Log_Info)
 

Public Member Functions

 TransferKio (TransferGroup *parent, TransferFactory *factory, Scheduler *scheduler, const KUrl &src, const KUrl &dest, const QDomElement *e=0)
 
bool repair (const KUrl &file=KUrl())
 
virtual bool setDirectory (const KUrl &newDirectory)
 
Signature * signature (const KUrl &file=KUrl())
 
Verifier * verifier (const KUrl &file=KUrl())
 
- Public Member Functions inherited from Transfer
 Transfer (TransferGroup *parent, TransferFactory *factory, Scheduler *scheduler, const KUrl &src, const KUrl &dest, const QDomElement *e=0)
 
virtual ~Transfer ()
 
virtual QHash< KUrl, QPair
< bool, int > > 
availableMirrors (const KUrl &file) const
 
int averageDownloadSpeed () const
 
Capabilities capabilities () const
 
void checkShareRatio ()
 
void create ()
 
virtual void deinit (DeleteOptions options)
 
const KUrl & dest () const
 
void destroy (DeleteOptions options)
 
virtual KUrl directory () const
 
KIO::filesize_t downloadedSize () const
 
int downloadLimit (SpeedLimit limit) const
 
int downloadSpeed () const
 
virtual int elapsedTime () const
 
TransferFactory * factory () const
 
virtual FileModel * fileModel ()
 
virtual QList< KUrl > files () const
 
TransferGroup * group () const
 
TransferHandler * handler ()
 
virtual void init ()
 
bool isSelected () const
 
virtual bool isStalled () const
 
virtual bool isWorking () const
 
virtual void load (const QDomElement *element)
 
const QStringList log () const
 
double maximumShareRatio ()
 
TransferTreeModel * model ()
 
bool operator< (const Transfer &t2) const
 
int percent () const
 
virtual int remainingTime () const
 
virtual void save (const QDomElement &element)
 
virtual void setAvailableMirrors (const KUrl &file, const QHash< KUrl, QPair< bool, int > > &mirrors)
 
void setDownloadLimit (int dlLimit, SpeedLimit limit)
 
void setMaximumShareRatio (double ratio)
 
void setUploadLimit (int ulLimit, SpeedLimit limit)
 
const KUrl & source () const
 
QPixmap statusPixmap () const
 
QString statusText () const
 
KIO::filesize_t totalSize () const
 
KIO::filesize_t uploadedSize () const
 
int uploadLimit (SpeedLimit limit) const
 
int uploadSpeed () const
 
- Public Member Functions inherited from Job
 Job (Scheduler *scheduler, JobQueue *parent)
 
virtual ~Job ()
 
Error error () const
 
JobQueue * jobQueue ()
 
Policy policy () const
 
virtual void resolveError (int errorId)
 
void setError (const QString &text, const QPixmap &pixmap, ErrorType type=AutomaticRetry, int errorId=-1)
 
void setPolicy (Policy jobPolicy)
 
void setStatus (Status jobStatus)
 
virtual void start ()=0
 
Status startStatus () const
 
Status status () const
 
virtual void stop ()=0
 

Additional Inherited Members

- Public Types inherited from Transfer
enum  Capability {
  Cap_SpeedLimit = 0x00000001, Cap_MultipleMirrors = 0x00000002, Cap_Resuming = 0x00000004, Cap_Renaming = 0x00000008,
  Cap_Moving = 0x00000010, Cap_FindFilesize = 0x00000020
}
 
typedef int ChangesFlags
 
enum  DeleteOption { DeleteTemporaryFiles = 0x00000001, DeleteFiles = 0x00000002 }
 
enum  LogLevel { Log_Info, Log_Warning, Log_Error }
 
enum  SpeedLimit { VisibleSpeedLimit = 0x01, InvisibleSpeedLimit = 0x02 }
 
enum  TransferChange {
  Tc_None = 0x00000000, Tc_Source = 0x00000001, Tc_FileName = 0x00000002, Tc_Status = 0x00000004,
  Tc_TotalSize = 0x00000008, Tc_Percent = 0x00000010, Tc_DownloadSpeed = 0x00000020, Tc_RemainingTime = 0x00000040,
  Tc_UploadSpeed = 0x00000100, Tc_UploadLimit = 0x00000200, Tc_DownloadLimit = 0x00000400, Tc_CanResume = 0x00000800,
  Tc_DownloadedSize = 0x00001000, Tc_UploadedSize = 0x00002000, Tc_Log = 0x00004000, Tc_Group = 0x00008000,
  Tc_Selection = 0x00010000
}
 
- Public Types inherited from Job
enum  ErrorType { AutomaticRetry, ManualSolve, NotSolveable }
 
enum  Policy { Start, Stop, None }
 
enum  Status {
  Running = 0, Stopped = 2, Aborted = 3, Finished = 4,
  FinishedKeepAlive = 5, Moving = 6
}
 
- Signals inherited from Transfer
void capabilitiesChanged ()
 
- Static Public Member Functions inherited from Transfer
static QPixmap statusPixmap (Job::Status status)
 
static QString statusText (Job::Status status)
 
- Protected Member Functions inherited from Transfer
void setCapabilities (Capabilities capabilities)
 
virtual void setSpeedLimits (int uploadLimit, int downloadLimit)
 
void setStatus (Job::Status jobStatus, const QString &text=QString(), const QPixmap &pix=QPixmap())
 
virtual void setTransferChange (ChangesFlags change, bool postEvent=false)
 
- Protected Member Functions inherited from Job
void postJobEvent (Status)
 
void read (QDomNode *n)
 
Scheduler * scheduler () const
 
void setStartStatus (Status jobStatus)
 
void write (QDomNode *n)
 
- Protected Attributes inherited from Transfer
KUrl m_dest
 
KIO::filesize_t m_downloadedSize
 
int m_downloadLimit
 
int m_downloadSpeed
 
bool m_isSelected
 
QStringList m_log
 
int m_percent
 
KUrl m_source
 
KIO::filesize_t m_totalSize
 
KIO::filesize_t m_uploadedSize
 
int m_uploadLimit
 
int m_uploadSpeed
 
- Protected Attributes inherited from Job
JobQueue * m_jobQueue
 
Scheduler * m_scheduler
 

Detailed Description

Definition at line 27 of file transferKio.h.

Constructor & Destructor Documentation

TransferKio::TransferKio ( TransferGroup *  parent,
TransferFactory *  factory,
Scheduler *  scheduler,
const KUrl &  src,
const KUrl &  dest,
const QDomElement *  e = 0 
)

Definition at line 29 of file transferKio.cpp.

Member Function Documentation

void TransferKio::deinit ( Transfer::DeleteOptions  options)
slot

Definition at line 119 of file transferKio.cpp.

bool TransferKio::repair ( const KUrl &  file = KUrl())
virtual

Tries to repair file.

Parameters
filethe file of a download that should be repaired, if not defined all files of a download are going to be repaird
Returns
true if a repair started, false if it was not nescessary

Reimplemented from Transfer.

Definition at line 278 of file transferKio.cpp.

bool TransferKio::setDirectory ( const KUrl &  newDirectory)
virtual

Move the download to the new destination.

Parameters
newDirectoryis a directory where the download should be stored
Returns
true if newDestination can be used

Reimplemented from Transfer.

Definition at line 41 of file transferKio.cpp.

bool TransferKio::setNewDestination ( const KUrl &  newDestination)
slot

Definition at line 48 of file transferKio.cpp.

Signature * TransferKio::signature ( const KUrl &  file = KUrl())
virtual
Parameters
filefor which to get the signature
Returns
Signature that allows you to add signatures and verify them

Reimplemented from Transfer.

Definition at line 314 of file transferKio.cpp.

void TransferKio::start ( )
slot

Definition at line 86 of file transferKio.cpp.

void TransferKio::stop ( )
slot

Definition at line 99 of file transferKio.cpp.

Verifier * TransferKio::verifier ( const KUrl &  file = KUrl())
virtual
Parameters
filefor which to get the verifier
Returns
Verifier that allows you to add checksums manually verify a file etc.

Reimplemented from Transfer.

Definition at line 301 of file transferKio.cpp.


The documentation for this class was generated from the following files:
  • transferKio.h
  • transferKio.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:18 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