X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fmessage.h;h=cfc873456611681a3b3b90402dfde558c22ee3b3;hb=a558b16c8034966d14e1d63db44dcb952d849618;hp=625aa229637e8b49aa8e2dc4176b1570098524e4;hpb=63376b2a82c3f6cdf2df56b1f134bd7df0aaab3a;p=fms.git diff --git a/include/message.h b/include/message.h index 625aa22..cfc8734 100644 --- a/include/message.h +++ b/include/message.h @@ -3,7 +3,8 @@ #include "idatabase.h" #include "ilogger.h" -#include "datetime.h" + +#include class Message:public IDatabase,public ILogger { @@ -17,7 +18,7 @@ public: const std::string GetSubject() const { return m_subject; } const std::string GetBody() const { return m_body; } const std::string GetReplyBoardName() { return m_replyboardname; } - const DateTime GetDateTime() const { return m_datetime; } + const Poco::DateTime GetDateTime() const { return m_datetime; } const std::string GetFromName() const { return m_fromname; } std::vector GetBoards() const { return m_boards; } std::map GetInReplyTo() const { return m_inreplyto; } @@ -61,8 +62,9 @@ private: struct fileattachment { - fileattachment(const std::string &filename, const std::vector &data):m_filename(filename),m_data(data) {} + fileattachment(const std::string &filename, const std::string &mimetype, const std::vector &data):m_filename(filename),m_mimetype(mimetype),m_data(data) {} std::string m_filename; + std::string m_mimetype; std::vector m_data; }; @@ -72,7 +74,7 @@ private: std::string m_subject; std::string m_body; std::string m_replyboardname; - DateTime m_datetime; + Poco::DateTime m_datetime; std::string m_fromname; std::vector m_boards; std::map m_inreplyto;