9e048495ba
(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.
21 lines
406 B
C++
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;
|
|
}
|