Main Page | Class List | File List | Class Members | File Members | Related Pages

FtpControl Class Reference

FtpControl class controls all the aspects of the ftp transfer involved in WebSnap. More...

#include <ftpcontrol.h>

List of all members.

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.


Detailed Description

FtpControl class controls all the aspects of the ftp transfer involved in WebSnap.

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.

Author:
Bojan D.

Definition at line 51 of file ftpcontrol.h.


Constructor & Destructor Documentation

FtpControl::FtpControl QObject *  parent = 0,
const char *  name = 0
 

Default constructor.

Parameters:
parent parent widget
name the name of the object

Definition at line 34 of file ftpcontrol.cpp.

References m_mainJob, and m_thumbJob.

FtpControl::~FtpControl  )  [virtual]
 

Default destructor.

Definition at line 42 of file ftpcontrol.cpp.

References m_thumbJob.


Member Function Documentation

void FtpControl::error const QString &  msg  )  [signal]
 

Sends an error signal containing the error message.

void FtpControl::finishTransfer  )  [signal]
 

The signal is emitted when the image transfer(s) end.

void FtpControl::message const QString &  msg  )  [signal]
 

Sends a short message

void FtpControl::message const QString &  msg,
int  type
[signal]
 

Sends a log message.

Parameters:
msg the message text
type the type of message

void FtpControl::sendFiles  )  [virtual, slot]
 

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().

void FtpControl::sendOffline  )  [virtual, slot]
 

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().

void FtpControl::startTransfer  )  [signal]
 

The signal is emitted when the image transfer(s) begin.

Referenced by sendFiles(), and sendOffline().

void FtpControl::stop  )  [virtual, slot]
 

Stops the transfers.

Definition at line 73 of file ftpcontrol.cpp.

References m_mainJob, and m_thumbJob.

Referenced by KWebSnap::slotStop().


The documentation for this class was generated from the following files:
Generated on Mon Sep 5 12:52:34 2005 for kwebsnap.kdevelop by  doxygen 1.3.9.1