• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/libkopete

  • Kopete
  • Transfer
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
Kopete::Transfer Class Reference

#include <kopetetransfermanager.h>

Inherits Job.

Public Slots

bool showMessage (QString text) const
 
void slotCancelled ()
 
void slotComplete ()
 
void slotError (int error, const QString &errorText)
 
void slotNextFile (const QString &sourceFile, const QString &destinationFile)
 
void slotProcessed (unsigned int)
 

Signals

void transferCanceled ()
 

Public Member Functions

 Transfer (const FileTransferInfo &, const QString &localFile, bool showProgressInfo=true)
 
 Transfer (const FileTransferInfo &, bool showProgressInfo=true)
 
 ~Transfer ()
 
KUrl destinationURL ()
 
const FileTransferInfo & info () const
 
KUrl sourceURL ()
 

Protected Member Functions

void emitCopying (const KUrl &src, const KUrl &dest)
 
virtual void timerEvent (QTimerEvent *event)
 

Detailed Description

A KIO job for a kopete file transfer.

Author
Richard Smith kopet.nosp@m.e@me.nosp@m.tafoo.nosp@m..co..nosp@m.uk

Definition at line 183 of file kopetetransfermanager.h.

Constructor & Destructor Documentation

Kopete::Transfer::Transfer ( const FileTransferInfo &  kfti,
const QString &  localFile,
bool  showProgressInfo = true 
)

Constructor.

Definition at line 90 of file kopetetransfermanager.cpp.

Kopete::Transfer::Transfer ( const FileTransferInfo &  kfti,
bool  showProgressInfo = true 
)
explicit

Constructor.

Definition at line 103 of file kopetetransfermanager.cpp.

Kopete::Transfer::~Transfer ( )

Destructor.

Definition at line 130 of file kopetetransfermanager.cpp.

Member Function Documentation

KUrl Kopete::Transfer::destinationURL ( )

Retrieve a URL indicating where the file is being copied to.

See sourceURL

Definition at line 200 of file kopetetransfermanager.cpp.

void Kopete::Transfer::emitCopying ( const KUrl &  src,
const KUrl &  dest 
)
protected

Definition at line 205 of file kopetetransfermanager.cpp.

const Kopete::FileTransferInfo & Kopete::Transfer::info ( ) const

Get the info for this file transfer.

Definition at line 137 of file kopetetransfermanager.cpp.

bool Kopete::Transfer::showMessage ( QString  text) const
slot

something interesting happened; not an error / void slotInfo( int type, const QString &text );

display a message in the chatwindow if it exists

Definition at line 295 of file kopetetransfermanager.cpp.

void Kopete::Transfer::slotCancelled ( )
slot

transfer was cancelled (but not by our user)

Definition at line 283 of file kopetetransfermanager.cpp.

void Kopete::Transfer::slotComplete ( )
slot

Indicate that the transfer is complete.

Definition at line 249 of file kopetetransfermanager.cpp.

void Kopete::Transfer::slotError ( int  error,
const QString &  errorText 
)
slot

Inform the job that an error has occurred while transferring the file.

Parameters
errorA member of the KIO::Error enumeration indicating what error occurred.
errorTextA string to aid understanding of the error, often the offending URL.

Definition at line 257 of file kopetetransfermanager.cpp.

void Kopete::Transfer::slotNextFile ( const QString &  sourceFile,
const QString &  destinationFile 
)
slot

Set the source and destination file names of currently processed file.

Definition at line 162 of file kopetetransfermanager.cpp.

void Kopete::Transfer::slotProcessed ( unsigned int  bytes)
slot

Set the file size processed so far.

Definition at line 212 of file kopetetransfermanager.cpp.

KUrl Kopete::Transfer::sourceURL ( )

Retrieve a URL indicating where the file is being copied from.

For display purposes only! There's no guarantee that this URL refers to a real file being transferred.

Definition at line 189 of file kopetetransfermanager.cpp.

void Kopete::Transfer::timerEvent ( QTimerEvent *  event)
protectedvirtual

Definition at line 223 of file kopetetransfermanager.cpp.

void Kopete::Transfer::transferCanceled ( )
signal
Deprecated:
Use result() and check error() for ERR_USER_CANCELED

The documentation for this class was generated from the following files:
  • kopetetransfermanager.h
  • kopetetransfermanager.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

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

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



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