diff options
Diffstat (limited to 'kopete/protocols/yahoo/libkyahoo/ymsgtransfer.h')
-rw-r--r-- | kopete/protocols/yahoo/libkyahoo/ymsgtransfer.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.h b/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.h new file mode 100644 index 00000000..79655766 --- /dev/null +++ b/kopete/protocols/yahoo/libkyahoo/ymsgtransfer.h @@ -0,0 +1,76 @@ +/* + Kopete Yahoo Protocol + Handles logging into to the Yahoo service + + Copyright (c) 2004 Duncan Mac-Vicar P. <duncan@kde.org> + + Copyright (c) 2005 André Duffeck <andre.duffeck@kdemail.net> + + Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org> + + ************************************************************************* + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Lesser General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + ************************************************************************* +*/ + +#ifndef YMSG_TRANSFER_H +#define YMSG_TRANSFER_H + +#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; + +/** +@author Duncan Mac-Vicar Prett +*/ +class YMSGTransfer : public Transfer +{ +public: + YMSGTransfer(Yahoo::Service service); + YMSGTransfer(Yahoo::Service service, Yahoo::Status status); + YMSGTransfer(); + ~YMSGTransfer(); + + + TransferType type(); + + //! Get the validity of the transfer object + bool isValid(); + Yahoo::Service service(); + void setService(Yahoo::Service service); + Yahoo::Status status(); + void setStatus(Yahoo::Status status); + unsigned int id(); + void setId(unsigned int id); + + 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(); +private: + YMSGTransferPrivate* d; +}; + +#endif |