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

tdeio/tdeio

  • TDEIO
  • FileCopyJob
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
TDEIO::FileCopyJob Class Reference

#include <jobclasses.h>

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

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)
 
- Signals inherited from TDEIO::Job
void result (TDEIO::Job *job)
 
void canceled (TDEIO::Job *job)
 
void infoMessage (TDEIO::Job *job, const TQString &msg)
 
void warning (TDEIO::Job *job, const TQString &msg)
 
void connected (TDEIO::Job *job)
 
void percent (TDEIO::Job *job, unsigned long percent)
 
void totalSize (TDEIO::Job *job, TDEIO::filesize_t size)
 
void processedSize (TDEIO::Job *job, TDEIO::filesize_t size)
 
void speed (TDEIO::Job *job, unsigned long speed)
 

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) TDE_DEPRECATED
 
KURL srcURL () const
 
KURL destURL () const
 
- Public Member Functions inherited from TDEIO::Job
virtual void kill (bool quietly=true)
 
int error () const
 
int progressId () const
 
const TQString & errorText () const
 
TQString errorString () const
 
TQStringList detailedErrorStrings (const KURL *reqUrl=0L, int method=-1) const
 
void showErrorDialog (TQWidget *parent=0L)
 
void setAutoErrorHandlingEnabled (bool enable, TQWidget *parentWidget=0)
 
bool isAutoErrorHandlingEnabled () const
 
void setAutoWarningHandlingEnabled (bool enable)
 
bool isAutoWarningHandlingEnabled () const
 
void setInteractive (bool enable)
 
bool isInteractive () const
 
void setWindow (TQWidget *window)
 
TQWidget * window () const
 
void updateUserTimestamp (unsigned long time)
 
void setParentJob (Job *parentJob)
 
Job * parentJob () const
 
void setMetaData (const TDEIO::MetaData &metaData)
 
void addMetaData (const TQString &key, const TQString &value)
 
void addMetaData (const TQMap< TQString, TQString > &values)
 
void mergeMetaData (const TQMap< TQString, TQString > &values)
 
MetaData outgoingMetaData () const
 
MetaData metaData () const
 
TQString queryMetaData (const TQString &key)
 
TDEIO::filesize_t getProcessedSize ()
 

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 Slots inherited from TDEIO::Job
virtual void slotResult (TDEIO::Job *job)
 
void slotSpeed (TDEIO::Job *job, unsigned long speed)
 
void slotInfoMessage (TDEIO::Job *job, const TQString &msg)
 
void slotSpeedTimeout ()
 

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 Member Functions inherited from TDEIO::Job
 Job (bool showProgressInfo)
 
virtual void addSubjob (Job *job, bool inheritMetaData=true)
 
virtual void removeSubjob (Job *job)
 
void removeSubjob (Job *job, bool mergeMetaData, bool emitResultIfLast)
 
void emitPercent (TDEIO::filesize_t processedSize, TDEIO::filesize_t totalSize)
 
void emitSpeed (unsigned long speed)
 
void emitResult ()
 
void setProcessedSize (TDEIO::filesize_t size)
 
unsigned long userTimestamp () const
 
int & extraFlags ()
 

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
 
- Protected Attributes inherited from TDEIO::Job
TQPtrList< Job > subjobs
 
int m_error
 
TQString m_errorText
 
unsigned long m_percent
 
int m_progressId
 
TQTimer * m_speedTimer
 
TQGuardedPtr< TQWidget > m_window
 
MetaData m_outgoingMetaData
 
MetaData m_incomingMetaData
 

Additional Inherited Members

- Protected Types inherited from TDEIO::Job
enum  { EF_TransferJobAsync = (1 << 0) , EF_TransferJobNeedData = (1 << 1) , EF_TransferJobDataSent = (1 << 2) , EF_ListJobUnrestricted = (1 << 3) }
 

Detailed Description

The FileCopyJob copies data from one place to another.

See also
TDEIO::file_copy()
TDEIO::file_move()

Definition at line 1249 of file jobclasses.h.

Constructor & Destructor Documentation

◆ FileCopyJob()

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
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 1620 of file job.cpp.

Member Function Documentation

◆ destURL()

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

Returns the destination URL.

Returns
the destination URL

Definition at line 1300 of file jobclasses.h.

◆ mimetype

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
jobthe job that emitted this signal
typethe mime type
Since
3.5.7

◆ setModificationTime()

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 1717 of file job.cpp.

◆ setSourceSize()

void FileCopyJob::setSourceSize ( off_t  size)
Deprecated:

Definition at line 1703 of file job.cpp.

◆ setSourceSize64()

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
sizethe size of the source file
Since
3.2

Definition at line 1710 of file job.cpp.

◆ slotCanResume

void FileCopyJob::slotCanResume ( TDEIO::Job *  job,
TDEIO::filesize_t  offset 
)
protectedslot
Forward signal from subjob
Parameters
jobthe job that emitted this signal
offsetthe offset to resume from

Definition at line 1810 of file job.cpp.

◆ slotPercent

void FileCopyJob::slotPercent ( TDEIO::Job *  job,
unsigned long  pct 
)
protectedslot
Forward signal from subjob
Parameters
jobthe job that emitted this signal
pctthe percentage

Definition at line 1778 of file job.cpp.

◆ slotProcessedSize

void FileCopyJob::slotProcessedSize ( TDEIO::Job *  job,
TDEIO::filesize_t  size 
)
protectedslot
Forward signal from subjob
Parameters
jobthe job that emitted this signal
sizethe processed size in bytes

Definition at line 1759 of file job.cpp.

◆ slotResult

void FileCopyJob::slotResult ( TDEIO::Job *  job)
protectedvirtualslot
Called whenever a subjob finishes.
Parameters
jobthe job that emitted this signal

Definition at line 1944 of file job.cpp.

◆ slotTotalSize

void FileCopyJob::slotTotalSize ( TDEIO::Job *  job,
TDEIO::filesize_t  size 
)
protectedslot
Forward signal from subjob
Parameters
jobthe job that emitted this signal
sizethe total size

Definition at line 1769 of file job.cpp.

◆ srcURL()

KURL TDEIO::FileCopyJob::srcURL ( ) const
inline

Returns the source URL.

Returns
the source URL

Definition at line 1294 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.9.1
This website is maintained by Timothy Pearson.