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

tdeio/tdeio

  • TDEIO
  • TDEIO::FileCopyJob
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes

TDEIO::FileCopyJob Class Reference

The FileCopyJob copies data from one place to another. More...

#include <jobclasses.h>

Inheritance diagram for TDEIO::FileCopyJob:
TDEIO::Job TQObject

List of all members.

Public Slots

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

Signals

void mimetype (TDEIO::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 (TDEIO::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 (TDEIO::Job *job)
void slotProcessedSize (TDEIO::Job *job, TDEIO::filesize_t size)
void slotTotalSize (TDEIO::Job *job, TDEIO::filesize_t size)
void slotPercent (TDEIO::Job *job, unsigned long pct)
void slotCanResume (TDEIO::Job *job, TDEIO::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
TDEIO::filesize_t m_totalSize

Detailed Description

The FileCopyJob copies data from one place to another.

See also:
TDEIO::file_copy()
TDEIO::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 TDEIO::file_move() or TDEIO::file_copy() instead.

Parameters:
src the source URL
dest the destination URL
permissions the permissions of the resulting resource
move true to move, false to copy
overwrite true to allow overwriting, false otherwise
resume true to resume an operation, false otherwise
showProgressInfo true to show progress information to the user

Definition at line 1591 of file job.cpp.


Member Function Documentation

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

Returns the destination URL.

Returns:
the destination URL

Definition at line 1301 of file jobclasses.h.

void TDEIO::FileCopyJob::mimetype ( TDEIO::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:
job the job that emitted this signal
type the 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 1688 of file job.cpp.

void FileCopyJob::setSourceSize ( off_t  size  ) 
Deprecated:

Definition at line 1674 of file job.cpp.

void FileCopyJob::setSourceSize64 ( TDEIO::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:
size the size of the source file
Since:
3.2

Definition at line 1681 of file job.cpp.

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

Forward signal from subjob.

Parameters:
job the job that emitted this signal
offset the offset to resume from

Definition at line 1781 of file job.cpp.

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

Forward signal from subjob.

Parameters:
job the job that emitted this signal
pct the percentage

Definition at line 1749 of file job.cpp.

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

Forward signal from subjob.

Parameters:
job the job that emitted this signal
size the processed size in bytes

Definition at line 1730 of file job.cpp.

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

Called whenever a subjob finishes.

Parameters:
job the job that emitted this signal

Reimplemented from TDEIO::Job.

Definition at line 1915 of file job.cpp.

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

Forward signal from subjob.

Parameters:
job the job that emitted this signal
size the total size

Definition at line 1740 of file job.cpp.

KURL TDEIO::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

tdeio/tdeio

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

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdeio by doxygen 1.7.1
This website is maintained by Timothy Pearson.