summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-05 08:45:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-05 08:45:53 +0000
commit5527e01e0675fbb06b632ccdae423756fbff622b (patch)
treec2dd1a478a7789d3b01e77fdf31f9011a96a81c5 /kopete/protocols/yahoo/libkyahoo/ymsgtransfer.h
parent1fc8db48741fae272e2d29078b266a3d0f2e2dd1 (diff)
downloadtdenetwork-5527e01e0675fbb06b632ccdae423756fbff622b.tar.gz
tdenetwork-5527e01e0675fbb06b632ccdae423756fbff622b.zip
Many fixes to the Yahoo protocol, courtesy of Serghei Amelian
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1146108 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/yahoo/libkyahoo/ymsgtransfer.h')
-rw-r--r--kopete/protocols/yahoo/libkyahoo/ymsgtransfer.h34
1 files changed, 18 insertions, 16 deletions
diff --git a/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.h b/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.h
index 79655766..662ca4d2 100644
--- a/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.h
+++ b/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.h
@@ -4,7 +4,7 @@
Copyright (c) 2004 Duncan Mac-Vicar P. <[email protected]>
- Copyright (c) 2005 AndrĂ© Duffeck <[email protected]>
+ Copyright (c) 2005 AndrĂ© Duffeck <[email protected]>
Kopete (c) 2002-2005 by the Kopete developers <[email protected]>
@@ -24,12 +24,11 @@
#include "transfer.h"
#include "yahootypes.h"
-#include <qcstring.h>
+
#include <qpair.h>
#include <qvaluelist.h>
class YMSGTransferPrivate;
-class QString;
typedef QPair< int, QCString > Param;
typedef QValueList< Param > ParamList;
@@ -49,26 +48,29 @@ public:
TransferType type();
//! Get the validity of the transfer object
- bool isValid();
- Yahoo::Service service();
+ bool isValid() const;
+ Yahoo::Service service() const;
void setService(Yahoo::Service service);
- Yahoo::Status status();
+ Yahoo::Status status() const;
void setStatus(Yahoo::Status status);
- unsigned int id();
+ unsigned int id() const;
void setId(unsigned int id);
+ int packetLength() const;
+ void setPacketLength(int len);
+
+
+ ParamList paramList() const;
+ QCString firstParam( int index ) const;
+ QCString nthParam( int index, int occurrence ) const;
+ QCString nthParamSeparated( int index, int occurrence, int separator ) const;
+ int paramCount( int index ) const;
- ParamList paramList();
- QCString firstParam( int index );
- QCString nthParam( int index, int occurence );
- QCString nthParamSeparated( int index, int occurence, int separator );
- int paramCount( int index );
-
void setParam(int index, const QCString &data);
void setParam(int index, int data);
- QByteArray serialize();
-
- int length();
+ QByteArray serialize() const;
+
+ int length() const;
private:
YMSGTransferPrivate* d;
};