summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/yahoo/libkyahoo/sendfiletask.h
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/yahoo/libkyahoo/sendfiletask.h')
-rw-r--r--kopete/protocols/yahoo/libkyahoo/sendfiletask.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/kopete/protocols/yahoo/libkyahoo/sendfiletask.h b/kopete/protocols/yahoo/libkyahoo/sendfiletask.h
index 41e62f77..83a205e2 100644
--- a/kopete/protocols/yahoo/libkyahoo/sendfiletask.h
+++ b/kopete/protocols/yahoo/libkyahoo/sendfiletask.h
@@ -2,7 +2,7 @@
Kopete Yahoo Protocol
Send a file
- Copyright (c) 2006 AndrĂ© Duffeck <[email protected]>
+ Copyright (c) 2006 AndrĂ© Duffeck <[email protected]>
*************************************************************************
* *
@@ -38,6 +38,8 @@ public:
virtual void onGo();
+ bool take(Transfer *transfer);
+
void setTarget( const QString &to );
void setMessage( const QString &msg );
void setFileUrl( KURL url );
@@ -48,8 +50,17 @@ signals:
void complete( unsigned int );
void error( unsigned int, int, const QString & );
+ void declined();
+
+protected:
+ bool forMe( const Transfer *transfer ) const;
+ void sendFileTransferInfo();
+ void parseFileTransfer( const Transfer *transfer );
+ void parseTransferAccept(const Transfer *transfer);
+
+ QString newYahooTransferId();
+
private slots:
- void initiateUpload();
void connectSucceeded();
void connectFailed( int );
void transmitData();
@@ -63,6 +74,10 @@ private:
unsigned int m_transferId;
unsigned int m_transmitted;
KNetwork::KStreamSocket *m_socket;
+
+ QString m_relayHost;
+ QString m_token;
+ QString m_yahooTransferId;
};
#endif