3
Kopete (c) 2006 by the Kopete developers <kopete-devel@kde.org>
5
*************************************************************************
7
* This library is free software; you can redistribute it and/or *
8
* modify it under the terms of the GNU Lesser General Public *
9
* License as published by the Free Software Foundation; either *
10
* version 2 of the License, or (at your option) any later version. *
12
*************************************************************************
18
#include "oscartypes.h"
22
using namespace Oscar;
24
class OftTransfer : public Transfer
28
explicit OftTransfer( OFT data, Buffer* buffer = 0 );
30
virtual ~OftTransfer();
32
virtual TransferType type() const;
33
virtual QByteArray toWire();
36
void setData( OFT data );
41
//! Get the validity of the OFT header
42
bool oftValid() const;
45
//! Converts fileName from Unicode to QByteArray;
46
QByteArray encodeFileName( const QString &fileName, int &encodingType ) const;
48
OFT m_data; //much easier to keep it all in a struct