2012-07-23 18:01:08 +00:00
|
|
|
#include "mimecontentformatter.h"
|
|
|
|
|
2012-09-22 17:59:27 +00:00
|
|
|
MimeContentFormatter::MimeContentFormatter(QIODevice *out, int length) :
|
|
|
|
output(out),
|
|
|
|
lineLength(length)
|
|
|
|
{
|
|
|
|
QIODevice::open(WriteOnly);
|
|
|
|
}
|
2012-07-23 18:01:08 +00:00
|
|
|
|
2012-09-22 17:59:27 +00:00
|
|
|
int MimeContentFormatter::getLineLength() const {
|
|
|
|
return lineLength;
|
2012-07-23 18:01:08 +00:00
|
|
|
}
|
|
|
|
|
2012-09-22 17:59:27 +00:00
|
|
|
void MimeContentFormatter::setLineLength(int l) {
|
|
|
|
lineLength = l;
|
2012-07-23 18:01:08 +00:00
|
|
|
}
|
2012-08-09 17:27:32 +00:00
|
|
|
|
2012-09-22 17:59:27 +00:00
|
|
|
qint64 MimeContentFormatter::readData(char*, qint64) {
|
|
|
|
return -1;
|
2012-08-09 17:27:32 +00:00
|
|
|
}
|