KMIME Library
Go to the documentation of this file.
40 #include <QtCore/QByteArray>
45 using namespace KMime;
53 IdentityEnDecoder(
bool withCRLF ):
Encoder( false )
55 kWarning( withCRLF ) <<
"IdentityEnDecoder: withCRLF isn't yet supported!";
59 ~IdentityEnDecoder() {}
61 bool encode(
const char* &scursor,
const char *
const send,
62 char* &dcursor,
const char *
const dend )
63 {
return decode( scursor, send, dcursor, dend ); }
65 bool decode(
const char* &scursor,
const char *
const send,
66 char* &dcursor,
const char *
const dend );
68 bool finish(
char* &dcursor,
const char *
const dend )
69 { Q_UNUSED( dcursor ); Q_UNUSED( dend );
return true; }
74 return new IdentityEnDecoder( withCRLF );
79 return new IdentityEnDecoder( withCRLF );
86 bool IdentityEnDecoder::decode(
const char* &scursor,
const char *
const send,
87 char* &dcursor,
const char *
const dend )
89 const int size = qMin( send - scursor, dcursor - dend );
91 std::memmove( dcursor, scursor, size );
95 return scursor == send;
100 kWarning( withCRLF ) <<
"IdentityCodec::encode(): withCRLF not yet supported!";
106 kWarning( withCRLF ) <<
"IdentityCodec::decode(): withCRLF not yet supported!";
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:25:45 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.