• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/kio
 

kio/kio

  • KIO
  • FileCopyJob
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
KIO::FileCopyJob Class Reference

#include <jobclasses.h>

Inheritance diagram for KIO::FileCopyJob:
KIO::Job

List of all members.

Public Slots

void slotStart ()
void slotData (KIO::Job *, const TQByteArray &data)
void slotDataReq (KIO::Job *, TQByteArray &data)
void slotMimetype (KIO::Job *, const TQString &type)

Signals

void mimetype (KIO::Job *job, const TQString &type)

Public Member Functions

 FileCopyJob (const KURL &src, const KURL &dest, int permissions, bool move, bool overwrite, bool resume, bool showProgressInfo)
void setSourceSize64 (KIO::filesize_t size)
void setModificationTime (time_t mtime)
void setSourceSize (off_t size) KDE_DEPRECATED
KURL srcURL () const
KURL destURL () const

Protected Slots

virtual void slotResult (KIO::Job *job)
void slotProcessedSize (KIO::Job *job, KIO::filesize_t size)
void slotTotalSize (KIO::Job *job, KIO::filesize_t size)
void slotPercent (KIO::Job *job, unsigned long pct)
void slotCanResume (KIO::Job *job, KIO::filesize_t offset)

Protected Member Functions

void startCopyJob ()
void startCopyJob (const KURL &slave_url)
void startRenameJob (const KURL &slave_url)
void startDataPump ()
void connectSubjob (SimpleJob *job)
virtual void virtual_hook (int id, void *data)

Protected Attributes

KURL m_src
KURL m_dest
int m_permissions
bool m_move:1
bool m_overwrite:1
bool m_resume:1
bool m_canResume:1
bool m_resumeAnswerSent:1
TQByteArray m_buffer
SimpleJob * m_moveJob
SimpleJob * m_copyJob
TransferJob * m_getJob
TransferJob * m_putJob
KIO::filesize_t m_totalSize

Detailed Description

The FileCopyJob copies data from one place to another.

See also:
KIO::file_copy()
KIO::file_move()

Definition at line 1250 of file jobclasses.h.


Constructor & Destructor Documentation

FileCopyJob::FileCopyJob ( const KURL &  src,
const KURL &  dest,
int  permissions,
bool  move,
bool  overwrite,
bool  resume,
bool  showProgressInfo 
)

Do not create a FileCopyJob directly.

Use KIO::file_move() or KIO::file_copy() instead.

Parameters:
srcthe source URL
destthe destination URL
permissionsthe permissions of the resulting resource
movetrue to move, false to copy
overwritetrue to allow overwriting, false otherwise
resumetrue to resume an operation, false otherwise
showProgressInfotrue to show progress information to the user

Definition at line 1556 of file job.cpp.


Member Function Documentation

KURL KIO::FileCopyJob::destURL ( ) const [inline]

Returns the destination URL.

Returns:
the destination URL

Definition at line 1301 of file jobclasses.h.

void KIO::FileCopyJob::mimetype ( KIO::Job *  job,
const TQString &  type 
) [signal]

Mimetype determined during a file copy.

This is never emitted during a move, and might not be emitted during a copy, depending on the slave.

Parameters:
jobthe job that emitted this signal
typethe mime type
Since:
3.5.7
void FileCopyJob::setModificationTime ( time_t  mtime)

Sets the modification time of the file.

Note that this is ignored if a direct copy (SlaveBase::copy) can be done, in which case the mtime of the source is applied to the destination (if the protocol supports the concept).

Definition at line 1653 of file job.cpp.

void FileCopyJob::setSourceSize ( off_t  size)
Deprecated:

Definition at line 1639 of file job.cpp.

void FileCopyJob::setSourceSize64 ( KIO::filesize_t  size)

If you know the size of the source file, call this method to inform this job.

It will be displayed in the "resume" dialog.

Parameters:
sizethe size of the source file
Since:
3.2

Definition at line 1646 of file job.cpp.

void FileCopyJob::slotCanResume ( KIO::Job *  job,
KIO::filesize_t  offset 
) [protected, slot]

Forward signal from subjob.

Parameters:
jobthe job that emitted this signal
offsetthe offset to resume from

Definition at line 1746 of file job.cpp.

void FileCopyJob::slotPercent ( KIO::Job *  job,
unsigned long  pct 
) [protected, slot]

Forward signal from subjob.

Parameters:
jobthe job that emitted this signal
pctthe percentage

Definition at line 1714 of file job.cpp.

void FileCopyJob::slotProcessedSize ( KIO::Job *  job,
KIO::filesize_t  size 
) [protected, slot]

Forward signal from subjob.

Parameters:
jobthe job that emitted this signal
sizethe processed size in bytes

Definition at line 1695 of file job.cpp.

void FileCopyJob::slotResult ( KIO::Job *  job) [protected, virtual, slot]

Called whenever a subjob finishes.

Parameters:
jobthe job that emitted this signal

Reimplemented from KIO::Job.

Definition at line 1880 of file job.cpp.

void FileCopyJob::slotTotalSize ( KIO::Job *  job,
KIO::filesize_t  size 
) [protected, slot]

Forward signal from subjob.

Parameters:
jobthe job that emitted this signal
sizethe total size

Definition at line 1705 of file job.cpp.

KURL KIO::FileCopyJob::srcURL ( ) const [inline]

Returns the source URL.

Returns:
the source URL

Definition at line 1295 of file jobclasses.h.


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

kio/kio

Skip menu "kio/kio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kio/kio

Skip menu "kio/kio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/kio by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |