13 #ifndef __NET_MAILNETWORKREQUEST_H__
14 #define __NET_MAILNETWORKREQUEST_H__
47 initDefaultAttributes_();
53 myExecutor = executor;
61 myIntAttributes[attrib] =
value;
65 myStringAttributes[attrib] =
value;
69 return myIntAttributes;
73 return myStringAttributes;
79 extractAddresses(myFromAddress, from);
86 extractAddresses(myToAddresses, to);
93 extractAddresses(myCcAddresses, cc);
100 extractAddresses(myBccAddresses, bcc);
112 void setDate(time_t now) { myDate = dateToString(now); }
119 myUsername = username;
120 myPassword = password;
129 static bool extractAddresses(
132 static bool extractAddresses(
137 void initDefaultAttributes_();
160 #endif // __NET_MAILNETWORKREQUEST_H__
ASIO_AnyExecutor executor() const
void setAttribute(StrAttribute attrib, const UT_StringHolder &value)
UT_StringHolder date() const
void setUrl(const UT_Url &url)
const UT_StringHolder & to() const
GLsizei const GLfloat * value
const UT_StringHolder & fromAddress() const
const UT_StringHolder & ccAddress() const
const UT_StringHolder & bcc() const
const UT_StringHolder & from() const
const UT_StringHolder & username() const
UT_StringHolder myErrorMsg
const UT_Url & url() const
const UT_Map< IntAttribute, int64 > & intAttributes() const
void setAttribute(IntAttribute attrib, int64 value)
A utility class to do read-only operations on a subset of an existing string.
const UT_StringHolder & subject() const
const UT_StringHolder & bccAddress() const
void setExecutor(const ASIO_AnyExecutor &executor)
std::error_code UT_ErrorCode
const UT_Map< StrAttribute, UT_StringHolder > & stringAttributes() const
void setBcc(const UT_StringHolder &bcc)
void setAuthentication(const UT_StringHolder &username, const UT_StringHolder &password)
void setTo(const UT_StringHolder &to)
void setFrom(const UT_StringHolder &from)
void setSubject(const UT_StringHolder &subject)
NET_MailNetworkRequest(const UT_Url &url)
const UT_StringHolder & password() const
const UT_StringHolder & toAddress() const
const UT_StringHolder & cc() const
hboost::asio::any_io_executor ASIO_AnyExecutor
void setCc(const UT_StringHolder &cc)