Logo Search packages:      
Sourcecode: kmess version File versions  Download package

FileTransfer Class Reference

#include <filetransfer.h>

Inheritance diagram for FileTransfer:

MimeApplication Application

List of all members.


Detailed Description

The class for sending a file to a contact.
Author:
Mike K. Bennett (original SendFile/ReceiveFile/TransferFile classes), Diederik van der Boor (FileTransfer/MsnFtpConnection classes)

Definition at line 36 of file filetransfer.h.


Public Types

enum  ApplicationMode { APP_MODE_NORMAL, APP_MODE_BACKGROUND, APP_MODE_ERROR_HANDLER }

Signals

void appInitMessage (QString html)
void appMessage (QString html)
void deleteMe (Application *object)
void fileTransferred (QString filename)
void putMsg (const MimeMessage &message)
void systemMessage (QString message)

Public Member Functions

 FileTransfer (const QString &authHandle, const QString &localIp)
const QString & getCookie () const
int getMode () const
void gotCommand (QString command)
void gotMessage (const MimeMessage &message)
void setMode (ApplicationMode mode)
void start ()
void userAborted ()

Static Public Member Functions

static QString getAppId ()

Protected Types

enum  ApplicationCancelReason {
  CANCEL_INVITATION, CANCEL_SESSION, CANCEL_NOT_INSTALLED, CANCEL_TIMEOUT,
  CANCEL_FAILED, CANCEL_INVALID_SLP_CONTENT_TYPE
}

Protected Member Functions

void contactAborted (const QString &message=0)
void contactRejected (const QString &message=0)
void endApplication (const QString &reason=0)
QString generateCookie () const
const QString & getExternalIp () const
const QString & getLocalIp () const
const QString & getSessionId ()
bool isUserStartedApp () const
bool isWaitingForUser () const
void offerAcceptOrReject (const QString &appHtml)
void offerCancel (const QString &appHtml)
void sendCancelMessage (const ApplicationCancelReason cancelReason)
void sendMessage (const MimeMessage &message)
void startByInvite (const QString &invitationCookie)
void userRejected ()

Static Protected Member Functions

static void freePort (const int &port)

Private Slots

void slotCancelTransfer ()
void slotMsnFtpStatusMessage (QString message, int statusType)
void slotMsnFtpTransferComplete ()
void slotMsnFtpTransferFailed ()
void slotMsnFtpTransferProgess (unsigned long bytesReceived)

Private Member Functions

void connectMsnFtpConnection ()
void contactStarted1_ContactInvitesUser (const MimeMessage &message)
void contactStarted2_UserAccepts ()
void contactStarted3_ContactConfirmsAccept (const MimeMessage &message)
QString getCancelMessage () const
void initializeProgressDialog (bool incoming=false)
void userStarted1_UserInvitesContact ()
void userStarted2_ContactAccepts (const MimeMessage &message)
void userStarted3_UserPrepares ()

Private Attributes

QString authCookie_
QString authHandle_
char connectivity_
QFile * file_
QString fileName_
unsigned long fileSize_
MsnFtpConnectionmsnFtpConnection_
QString shortFileName_
TransferEntry * transferPanel_

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index