kget
MetalinkHttp Class Reference
#include <metalinkhttp.h>
Inheritance diagram for MetalinkHttp:

Public Slots | |
| void | deinit (Transfer::DeleteOptions options) |
| void | load (const QDomElement *element) |
| void | save (const QDomElement &element) |
| void | slotSignatureVerified () |
| void | start () |
Public Slots inherited from AbstractMetalink | |
| virtual void | deinit (Transfer::DeleteOptions options)=0 |
| virtual void | start ()=0 |
| virtual void | stop () |
Public Slots inherited from Transfer | |
| void | setLog (const QString &message, Transfer::LogLevel level=Log_Info) |
Public Member Functions | |
| MetalinkHttp (TransferGroup *parent, TransferFactory *factory, Scheduler *scheduler, const KUrl &src, const KUrl &dest, KGetMetalink::MetalinkHttpParser *httpParser, const QDomElement *e=0) | |
| ~MetalinkHttp () | |
Public Member Functions inherited from AbstractMetalink | |
| AbstractMetalink (TransferGroup *parent, TransferFactory *factory, Scheduler *scheduler, const KUrl &src, const KUrl &dest, const QDomElement *e=0) | |
| virtual | ~AbstractMetalink () |
| QHash< KUrl, QPair< bool, int > > | availableMirrors (const KUrl &file) const |
| FileModel * | fileModel () |
| virtual QList< KUrl > | files () const |
| int | remainingTime () const |
| bool | repair (const KUrl &file=KUrl()) |
| void | setAvailableMirrors (const KUrl &file, const QHash< KUrl, QPair< bool, int > > &mirrors) |
| virtual bool | setDirectory (const KUrl &newDirectory) |
| virtual Signature * | signature (const KUrl &file) |
| virtual Verifier * | verifier (const KUrl &file) |
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 () |
| 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 |
| 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 void | save (const QDomElement &element) |
| 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 |
Public Member Functions inherited from QObject | |
| QObject (QObject *parent) | |
| QObject (QObject *parent, const char *name) | |
| virtual | ~QObject () |
| bool | blockSignals (bool block) |
| QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
| const QObjectList & | children () const |
| const char * | className () const |
| bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
| void | deleteLater () |
| void | destroyed (QObject *obj) |
| bool | disconnect (const QObject *receiver, const char *method) |
| bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
| void | dumpObjectInfo () |
| void | dumpObjectTree () |
| QList< QByteArray > | dynamicPropertyNames () const |
| virtual bool | event (QEvent *e) |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
| T | findChild (const QString &name) const |
| QList< T > | findChildren (const QRegExp ®Exp) const |
| QList< T > | findChildren (const QString &name) const |
| bool | inherits (const char *className) const |
| void | insertChild (QObject *object) |
| void | installEventFilter (QObject *filterObj) |
| bool | isA (const char *className) const |
| bool | isWidgetType () const |
| void | killTimer (int id) |
| virtual const QMetaObject * | metaObject () const |
| void | moveToThread (QThread *targetThread) |
| const char * | name () const |
| const char * | name (const char *defaultName) const |
| QString | objectName () const |
| QObject * | parent () const |
| QVariant | property (const char *name) const |
| void | removeChild (QObject *object) |
| void | removeEventFilter (QObject *obj) |
| void | setName (const char *name) |
| void | setObjectName (const QString &name) |
| void | setParent (QObject *parent) |
| bool | setProperty (const char *name, const QVariant &value) |
| bool | signalsBlocked () const |
| int | startTimer (int interval) |
| QThread * | thread () const |
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) |
Static Public Member Functions inherited from QObject | |
| bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
| bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
| bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
| bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
| QString | tr (const char *sourceText, const char *disambiguation, int n) |
| QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Slots inherited from AbstractMetalink | |
| void | fileDlgFinished (int result) |
| void | filesSelected () |
| void | slotDataSourceFactoryChange (Transfer::ChangesFlags change) |
| void | slotRename (const KUrl &oldUrl, const KUrl &newUrl) |
| virtual void | slotSignatureVerified () |
| void | slotUpdateCapabilities () |
| void | slotVerified (bool isVerified) |
Protected Member Functions inherited from AbstractMetalink | |
| void | recalculateProcessedSize () |
| void | recalculateSpeed () |
| void | recalculateTotalSize (DataSourceFactory *sender) |
| void | untickAllFiles () |
| void | updateStatus (DataSourceFactory *sender, bool *changeStatus) |
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 Member Functions inherited from QObject | |
| bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
| virtual void | childEvent (QChildEvent *event) |
| virtual void | connectNotify (const char *signal) |
| virtual void | customEvent (QEvent *event) |
| virtual void | disconnectNotify (const char *signal) |
| int | receivers (const char *signal) const |
| QObject * | sender () const |
| int | senderSignalIndex () const |
| virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
| QByteArray | normalizeSignalSlot (const char *signalSlot) |
Protected Attributes inherited from AbstractMetalink | |
| int | m_averageSpeed |
| int | m_currentFiles |
| QHash< KUrl, DataSourceFactory * > | m_dataSourceFactory |
| FileModel * | m_fileModel |
| int | m_numFilesSelected |
| bool | m_ready |
| int | m_speedCount |
| int | m_tempAverageSpeed |
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 |
Properties inherited from QObject | |
| objectName | |
Detailed Description
Definition at line 25 of file metalinkhttp.h.
Constructor & Destructor Documentation
| MetalinkHttp::MetalinkHttp | ( | TransferGroup * | parent, |
| TransferFactory * | factory, | ||
| Scheduler * | scheduler, | ||
| const KUrl & | src, | ||
| const KUrl & | dest, | ||
| KGetMetalink::MetalinkHttpParser * | httpParser, | ||
| const QDomElement * | e = 0 |
||
| ) |
Definition at line 54 of file metalinkhttp.cpp.
| MetalinkHttp::~MetalinkHttp | ( | ) |
Definition at line 66 of file metalinkhttp.cpp.
Member Function Documentation
|
slot |
Definition at line 272 of file metalinkhttp.cpp.
|
slot |
Definition at line 71 of file metalinkhttp.cpp.
|
slot |
Definition at line 93 of file metalinkhttp.cpp.
|
slot |
Definition at line 145 of file metalinkhttp.cpp.
|
slot |
Definition at line 123 of file metalinkhttp.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Slots inherited from