6#include <icomp/CComponentBase.h>
7#include <iprm/ITextParam.h>
10#include <imtmail/ISmtpMessageCreator.h>
17class CSmtpMessageCreatorComp:
public icomp::CComponentBase,
virtual public imtmail::ISmtpMessageCreator
20 typedef icomp::CComponentBase BaseClass;
22 I_BEGIN_COMPONENT(CSmtpMessageCreatorComp);
23 I_REGISTER_INTERFACE(imtmail::ISmtpMessageCreator);
24 I_ASSIGN(m_fromAttrPtr,
"From",
"The sender of the message",
false,
"");
25 I_ASSIGN(m_fromParamCompPtr,
"FromParam",
"The sender of the message parameter",
false,
"");
26 I_ASSIGN(m_toAttrPtr,
"To",
"The recipient of the message",
false,
"");
27 I_ASSIGN(m_toParamCompPtr,
"ToParam",
"The recipient of the message parameter",
false,
"");
28 I_ASSIGN(m_subjectAttrPtr,
"Subject",
"Message title",
false,
"");
29 I_ASSIGN(m_subjectParamCompPtr,
"SubjectParam",
"Message title parameter",
false,
"");
30 I_ASSIGN(m_bodyAttrPtr,
"Body",
"Message body",
false,
"");
31 I_ASSIGN(m_bodyParamCompPtr,
"BodyParam",
"Message body parameter",
false,
"");
36 virtual ISmtpMessage* CreateMessage()
const override;
39 I_REF(iprm::ITextParam, m_fromParamCompPtr);
40 I_ATTR(QString, m_fromAttrPtr);
41 I_REF(iprm::ITextParam, m_toParamCompPtr);
42 I_ATTR(QString, m_toAttrPtr);
43 I_REF(iprm::ITextParam, m_subjectParamCompPtr);
44 I_ATTR(QString, m_subjectAttrPtr);
45 I_REF(iprm::ITextParam, m_bodyParamCompPtr);
46 I_ATTR(QString, m_bodyAttrPtr);