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

kopete/libkopete

  • Kopete
  • TransferManager
Signals | Public Member Functions | Static Public Member Functions | List of all members
Kopete::TransferManager Class Reference

#include <kopetetransfermanager.h>

Inheritance diagram for Kopete::TransferManager:
Inheritance graph
[legend]

Signals

void accepted (Kopete::Transfer *, const QString &fileName)
 
void askIncomingDone (unsigned int id)
 
void canceled (Kopete::Transfer *)
 
void done (Kopete::Transfer *)
 
void refused (const Kopete::FileTransferInfo &)
 
void sendFile (const KUrl &file, const QString &localFile, unsigned int fileSize)
 

Public Member Functions

virtual ~TransferManager ()
 
Transfer * addTransfer (Contact *contact, const QString &file, const unsigned long size, const QString &recipient, FileTransferInfo::KopeteTransferDirection di)
 
Transfer * addTransfer (Contact *contact, const QStringList &files, const unsigned long size, const QString &recipient, FileTransferInfo::KopeteTransferDirection di)
 
unsigned int askIncomingTransfer (Contact *contact, const QString &file, const unsigned long size, const QString &description=QString(), QString internalId=QString(), const QPixmap &preview=QPixmap())
 
unsigned int askIncomingTransfer (Contact *contact, const QStringList &files, const unsigned long size, const QString &description=QString(), QString internalId=QString(), const QPixmap &preview=QPixmap())
 
void cancelIncomingTransfer (unsigned int id)
 
void saveIncomingTransfer (unsigned int id)
 
void sendFile (const KUrl &file, const QString &localFile, unsigned long fileSize, bool mustBeLocal, QObject *sendTo, const char *slot)
 

Static Public Member Functions

static TransferManager * transferManager ()
 

Detailed Description

Creates and manages kopete file transfers.

Definition at line 79 of file kopetetransfermanager.h.

Constructor & Destructor Documentation

virtual Kopete::TransferManager::~TransferManager ( )
inlinevirtual

Definition at line 88 of file kopetetransfermanager.h.

Member Function Documentation

void Kopete::TransferManager::accepted ( Kopete::Transfer *  ,
const QString &  fileName 
)
signal

Signals the transfer has been accepted.

Note
If saveToDirectory in FileTransferInfo is true then fileName is a directory.
Kopete::Transfer * Kopete::TransferManager::addTransfer ( Kopete::Contact *  contact,
const QString &  file,
const unsigned long  size,
const QString &  recipient,
FileTransferInfo::KopeteTransferDirection  di 
)

Adds a file transfer to the Kopete::TransferManager.

Definition at line 356 of file kopetetransfermanager.cpp.

Kopete::Transfer * Kopete::TransferManager::addTransfer ( Kopete::Contact *  contact,
const QStringList &  files,
const unsigned long  size,
const QString &  recipient,
FileTransferInfo::KopeteTransferDirection  di 
)

Adds a file transfer to the Kopete::TransferManager Same as above just can have more files.

Definition at line 361 of file kopetetransfermanager.cpp.

void Kopete::TransferManager::askIncomingDone ( unsigned int  id)
signal

Signals the incoming transfer has been rejected or accepted.

unsigned int Kopete::TransferManager::askIncomingTransfer ( Kopete::Contact *  contact,
const QString &  file,
const unsigned long  size,
const QString &  description = QString(),
QString  internalId = QString(),
const QPixmap &  preview = QPixmap() 
)

Adds incoming file transfer request to the Kopete::TransferManager.

Definition at line 372 of file kopetetransfermanager.cpp.

unsigned int Kopete::TransferManager::askIncomingTransfer ( Kopete::Contact *  contact,
const QStringList &  files,
const unsigned long  size,
const QString &  description = QString(),
QString  internalId = QString(),
const QPixmap &  preview = QPixmap() 
)

Adds incoming file transfer request to the Kopete::TransferManager.

Same as above just can have more files.

Note
If file list has more than one file then the directory dialog is shown instead of file dialog and saveToDirectory in FileTransferInfo will be set to true.
If the file names are unknown add empty file names to the string list.

Definition at line 377 of file kopetetransfermanager.cpp.

void Kopete::TransferManager::canceled ( Kopete::Transfer *  )
signal

Signals the transfer has been canceled.

void Kopete::TransferManager::cancelIncomingTransfer ( unsigned int  id)

Cancels incoming file transfer request.

Definition at line 449 of file kopetetransfermanager.cpp.

void Kopete::TransferManager::done ( Kopete::Transfer *  )
signal

Signals the transfer is done.

void Kopete::TransferManager::refused ( const Kopete::FileTransferInfo &  )
signal

Signals the transfer has been rejected.

void Kopete::TransferManager::saveIncomingTransfer ( unsigned int  id)

Shows save file dialog and accepts/rejects incoming file transfer request.

Definition at line 414 of file kopetetransfermanager.cpp.

void Kopete::TransferManager::sendFile ( const KUrl &  file,
const QString &  localFile,
unsigned long  fileSize,
bool  mustBeLocal,
QObject *  sendTo,
const char *  slot 
)

Ask the user which file to send when they click Send File.

Possibly ask the user which file to send when they click Send File. Sends a signal indicating KUrl to send when the local user accepts the transfer.

Parameters
fileIf valid, the user will not be prompted for a URL, and this one will be used instead. If it refers to a remote file and mustBeLocal is true, the file will be transferred to the local filesystem.
localFilefile name to display if file is a valid URL
fileSizefile size to send if file is a valid URL
mustBeLocalIf the protocol can only send files on the local filesystem, this flag allows you to ensure the filename will be local.
sendToThe object to send the signal to
slotThe slot to send the signal to. Signature: sendFile(const KUrl &file)

Definition at line 479 of file kopetetransfermanager.cpp.

void Kopete::TransferManager::sendFile ( const KUrl &  file,
const QString &  localFile,
unsigned int  fileSize 
)
signal

Send a file.

Kopete::TransferManager * Kopete::TransferManager::transferManager ( )
static

Retrieve the transfer manager instance.

Definition at line 346 of file kopetetransfermanager.cpp.


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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:52 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