kopete/libkopete
#include <kopetetransfermanager.h>
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
|
inlinevirtual |
Definition at line 88 of file kopetetransfermanager.h.
Member Function Documentation
|
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.
|
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.
|
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.
|
signal |
Signals the transfer is done.
|
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
-
file If 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. localFile file name to display if file is a valid URL fileSize file size to send if file is a valid URL mustBeLocal If the protocol can only send files on the local filesystem, this flag allows you to ensure the filename will be local. sendTo The object to send the signal to slot The slot to send the signal to. Signature: sendFile(const KUrl &file)
Definition at line 479 of file kopetetransfermanager.cpp.
|
signal |
Send a file.
|
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:
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.