46 lines
613 B
C++
46 lines
613 B
C++
#include "mimeinlinefile.h"
|
|
|
|
/* [1] Constructors and Destructors */
|
|
|
|
MimeInlineFile::MimeInlineFile(QFile *f)
|
|
: MimeFile(f)
|
|
{
|
|
return;
|
|
}
|
|
|
|
MimeInlineFile::~MimeInlineFile()
|
|
{}
|
|
|
|
/* [1] --- */
|
|
|
|
|
|
/* [2] Getters and Setters */
|
|
|
|
void MimeInlineFile::setContentId(const QString & cid)
|
|
{
|
|
this->cid = cid;
|
|
}
|
|
|
|
const QString & MimeInlineFile::getContentId() const
|
|
{
|
|
return cid;
|
|
}
|
|
|
|
/* [2] --- */
|
|
|
|
|
|
/* [3] Protected methods */
|
|
|
|
void MimeInlineFile::prepare()
|
|
{
|
|
MimeFile::prepare();
|
|
|
|
this->header += "Content-id: <" + cid + ">\n";
|
|
this->header += "Content-disposition: inline\n";
|
|
}
|
|
|
|
/* [3] --- */
|
|
|
|
|
|
|