SmtpClient-for-Qt/src/mimecontentformatter.cpp
Tőkés Attila 9e048495ba State machine implementation terminated. Added some functions
(waitForReadyConnected, waitForAuthenticated, waitForMailSent)
synchronous waiting.

Added writeToDevice() function to MimeMessage and MimePart (and
subclasses), now these are used in SmtpClient instead of toString().

Added some unit tests.
2012-09-22 20:59:27 +03:00

21 lines
406 B
C++

#include "mimecontentformatter.h"
MimeContentFormatter::MimeContentFormatter(QIODevice *out, int length) :
output(out),
lineLength(length)
{
QIODevice::open(WriteOnly);
}
int MimeContentFormatter::getLineLength() const {
return lineLength;
}
void MimeContentFormatter::setLineLength(int l) {
lineLength = l;
}
qint64 MimeContentFormatter::readData(char*, qint64) {
return -1;
}