X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fmessage.h;h=cfc873456611681a3b3b90402dfde558c22ee3b3;hb=746a74c9963728fcbbfe4cdc36c863c653a142ca;hp=5aed3edee91553a070ec780d0107ef88bdc49f8e;hpb=0574a75431d98ed64c5cc6291600bb3759b399a6;p=fms.git diff --git a/include/message.h b/include/message.h index 5aed3ed..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; } @@ -59,16 +60,25 @@ private: void StripAdministrationBoards(); // removes administration boards from boards vector const int FindLocalIdentityID(const std::string &name); + struct fileattachment + { + 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; + }; + long m_messageid; bool m_addnewpostfromidentities; std::string m_messageuuid; 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; + std::vector m_fileattachments; long m_changemessagetrustonreply; long m_minlocalmessagetrust; long m_minlocaltrustlisttrust;