#include <ftpcontrol.h>
Public Slots | |
virtual void | sendFiles () |
virtual void | stop () |
virtual void | sendOffline () |
Signals | |
void | startTransfer () |
void | finishTransfer () |
void | message (const QString &msg, int type) |
void | message (const QString &msg) |
void | error (const QString &msg) |
Public Member Functions | |
FtpControl (QObject *parent=0, const char *name=0) | |
virtual | ~FtpControl () |
Protected Attributes | |
QGuardedPtr< KIO::FileCopyJob > | m_thumbJob |
The thumbnail Ftp Job. | |
QGuardedPtr< KIO::FileCopyJob > | m_mainJob |
The main image Ftp Job. | |
KURL | m_mainSrc |
The URL for main source. | |
KURL | m_mainDest |
The URL for main destination. | |
KURL | m_thumbSrc |
The URL for thumbnail source. | |
KURL | m_thumbDest |
The URL for thumbnail destination. |
It manages the ftp connection and transfer using the FileCopyJob class. This class is used to transfer the main and thumbnail image to the ftp server. It uses Config() to access the settings.
Definition at line 51 of file ftpcontrol.h.
|
Default constructor.
Definition at line 34 of file ftpcontrol.cpp. References m_mainJob, and m_thumbJob. |
|
Default destructor. Definition at line 42 of file ftpcontrol.cpp. References m_thumbJob. |
|
Sends an error signal containing the error message. |
|
The signal is emitted when the image transfer(s) end. |
|
Sends a short message |
|
Sends a log message.
|
|
Transfers the main and thumbnail images using FTP. Definition at line 79 of file ftpcontrol.cpp. References Config(), Configuration::Ftp, m_mainDest, m_mainSrc, startTransfer(), and FtpConfig::UseThumb. Referenced by KWebSnap::slotSnapSend(). |
|
Transfer the offline images using ftp; first as main and then as thumbnail. Definition at line 160 of file ftpcontrol.cpp. References m_mainDest, m_mainSrc, and startTransfer(). Referenced by KWebSnap::slotStop(). |
|
The signal is emitted when the image transfer(s) begin. Referenced by sendFiles(), and sendOffline(). |
|
Stops the transfers. Definition at line 73 of file ftpcontrol.cpp. References m_mainJob, and m_thumbJob. Referenced by KWebSnap::slotStop(). |