SmtpClient-for-Qt/src/mimeattachment.cpp

28 lines
378 B
C++
Raw Normal View History

2011-08-30 18:59:16 +00:00
#include "mimeattachment.h"
#include <QFileInfo>
/* [1] Constructors and Destructors */
MimeAttachment::MimeAttachment(QFile *file)
: MimeFile(file)
{
}
MimeAttachment::~MimeAttachment()
{
}
/* [1] --- */
/* [2] Protected methods */
void MimeAttachment::prepare()
{
MimeFile::prepare();
this->header += "Content-disposition: attachment;\n";
}
/* [2] --- */