• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

KIO

  • KIO
  • SimpleJobPrivate
Public Member Functions | Static Public Member Functions | Public Attributes
KIO::SimpleJobPrivate Class Reference

#include <job_p.h>

Inheritance diagram for KIO::SimpleJobPrivate:
KIO::JobPrivate KCompositeJobPrivate KJobPrivate KIO::TransferJobPrivate

List of all members.

Public Member Functions

 SimpleJobPrivate (const KUrl &url, int command, const QByteArray &packedArgs)
void _k_slotSlaveInfoMessage (const QString &s)
void restartAfterRedirection (KUrl *redirectionUrl)
void simpleJobInit ()
void slaveDone ()
void slotConnected ()
void slotProcessedSize (KIO::filesize_t data_size)
void slotSpeed (unsigned long speed)
void slotTotalSize (KIO::filesize_t data_size)
virtual void start (KIO::Slave *slave)
- Public Member Functions inherited from KIO::JobPrivate
 JobPrivate ()
void slotSpeed (KJob *job, unsigned long speed)
KIO::JobUiDelegate * ui () const
- Public Member Functions inherited from KCompositeJobPrivate
 KCompositeJobPrivate ()
 ~KCompositeJobPrivate ()
virtual ~KJobPrivate ()
void _k_speedTimeout ()
 KJobPrivate ()

Static Public Member Functions

static SimpleJobPrivate * get (KIO::SimpleJob *job)
static SimpleJob * newJob (const KUrl &url, int command, const QByteArray &packedArgs, JobFlags flags=HideProgressInfo)
static SimpleJob * newJobNoUi (const KUrl &url, int command, const QByteArray &packedArgs)
- Static Public Member Functions inherited from KIO::JobPrivate
static void emitCopying (KIO::Job *, const KUrl &src, const KUrl &dest)
static void emitCreatingDir (KIO::Job *, const KUrl &dir)
static void emitDeleting (KIO::Job *, const KUrl &url)
static void emitMounting (KIO::Job *, const QString &dev, const QString &point)
static void emitMoving (KIO::Job *, const KUrl &src, const KUrl &dest)
static void emitStating (KIO::Job *, const KUrl &url)
static void emitTransferring (KIO::Job *, const KUrl &url)
static void emitUnmounting (KIO::Job *, const QString &point)

Public Attributes

bool m_checkOnHold
int m_command
QByteArray m_packedArgs
QString m_protocol
QStringList m_proxyList
bool m_redirectionHandlingEnabled
int m_schedSerial
Slave * m_slave
KUrl m_subUrl
KUrl m_url
- Public Attributes inherited from KIO::JobPrivate
int m_extraFlags
MetaData m_incomingMetaData
MetaData m_internalMetaData
MetaData m_outgoingMetaData
Job * m_parentJob
- Public Attributes inherited from KCompositeJobPrivate
KJob::Capabilities capabilities
int error
QString errorText
QEventLoop * eventLoop
bool isAutoDelete
bool isFinished
unsigned long percentage
QMap< KJob::Unit, qulonglong > processedAmount
KJob::Unit progressUnit
KJob * q_ptr
QTimer * speedTimer
QList< KJob * > subjobs
bool suspended
QMap< KJob::Unit, qulonglong > totalAmount
KJobUiDelegate * uiDelegate
- Public Attributes inherited from KJobPrivate

Additional Inherited Members

- Public Types inherited from KIO::JobPrivate
enum  {
  EF_TransferJobAsync = (1 << 0), EF_TransferJobNeedData = (1 << 1), EF_TransferJobDataSent = (1 << 2), EF_ListJobUnrestricted = (1 << 3),
  EF_KillCalled = (1 << 4)
}

Detailed Description

Definition at line 78 of file job_p.h.


Constructor & Destructor Documentation

KIO::SimpleJobPrivate::SimpleJobPrivate ( const KUrl &  url,
int  command,
const QByteArray &  packedArgs 
)
inline

Creates a new simple job.

Parameters:
urlthe url of the job
commandthe command of the job
packedArgsthe arguments

Definition at line 87 of file job_p.h.


Member Function Documentation

void SimpleJobPrivate::_k_slotSlaveInfoMessage ( const QString &  s)

Called on a slave's info message.

Parameters:
sthe info message
See also:
infoMessage()

Definition at line 514 of file job.cpp.

static SimpleJobPrivate* KIO::SimpleJobPrivate::get ( KIO::SimpleJob *  job)
inlinestatic

Definition at line 183 of file job_p.h.

static SimpleJob* KIO::SimpleJobPrivate::newJob ( const KUrl &  url,
int  command,
const QByteArray &  packedArgs,
JobFlags  flags = HideProgressInfo 
)
inlinestatic

Definition at line 190 of file job_p.h.

static SimpleJob* KIO::SimpleJobPrivate::newJobNoUi ( const KUrl &  url,
int  command,
const QByteArray &  packedArgs 
)
inlinestatic

Definition at line 185 of file job_p.h.

void SimpleJobPrivate::restartAfterRedirection ( KUrl *  redirectionUrl)

Called by subclasses to restart the job after a redirection was signalled.

The m_redirectionURL data member can appear in several subclasses, so we have it passed in. The regular URL will be set to the redirection URL which is then cleared.

Definition at line 546 of file job.cpp.

void SimpleJobPrivate::simpleJobInit ( )

Definition at line 297 of file job.cpp.

void SimpleJobPrivate::slaveDone ( )

Called to detach a slave from a job.

Definition at line 452 of file job.cpp.

void SimpleJobPrivate::slotConnected ( )

Called on a slave's connected signal.

See also:
connected()

Definition at line 519 of file job.cpp.

void SimpleJobPrivate::slotProcessedSize ( KIO::filesize_t  data_size)

Forward signal from the slave.

Parameters:
data_sizethe processed size in bytes
See also:
processedSize()

Definition at line 533 of file job.cpp.

void SimpleJobPrivate::slotSpeed ( unsigned long  speed)

Forward signal from the slave.

Parameters:
speedthe speed in bytes/s
See also:
speed()

Definition at line 540 of file job.cpp.

void SimpleJobPrivate::slotTotalSize ( KIO::filesize_t  data_size)

Forward signal from the slave Can also be called by the parent job, when it knows the size.

Parameters:
data_sizethe total size

Definition at line 524 of file job.cpp.

void SimpleJobPrivate::start ( KIO::Slave *  slave)
virtual

Called by the scheduler when a slave gets to work on this job.

Reimplemented in KIO::TransferJobPrivate.

Definition at line 384 of file job.cpp.


Member Data Documentation

bool KIO::SimpleJobPrivate::m_checkOnHold

Definition at line 124 of file job_p.h.

int KIO::SimpleJobPrivate::m_command

Definition at line 105 of file job_p.h.

QByteArray KIO::SimpleJobPrivate::m_packedArgs

Definition at line 102 of file job_p.h.

QString KIO::SimpleJobPrivate::m_protocol

Definition at line 122 of file job_p.h.

QStringList KIO::SimpleJobPrivate::m_proxyList

Definition at line 123 of file job_p.h.

bool KIO::SimpleJobPrivate::m_redirectionHandlingEnabled

Definition at line 126 of file job_p.h.

int KIO::SimpleJobPrivate::m_schedSerial

Definition at line 125 of file job_p.h.

Slave* KIO::SimpleJobPrivate::m_slave

Definition at line 101 of file job_p.h.

KUrl KIO::SimpleJobPrivate::m_subUrl

Definition at line 104 of file job_p.h.

KUrl KIO::SimpleJobPrivate::m_url

Definition at line 103 of file job_p.h.


The documentation for this class was generated from the following files:
  • job_p.h
  • job.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 17:50:52 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

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

kdelibs-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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