X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fmessage.h;h=4b4cb6e08697045253b112f8166d78300220db1f;hb=0236076defe60bcd4b3a25c23efa53c21993a48e;hp=eda6752a6eba489d15e42d6f0ead8254ad81a2d7;hpb=b4f4686250878cdf4fcb2986a2ea6546cba867d1;p=fms.git diff --git a/include/message.h b/include/message.h index eda6752..4b4cb6e 100644 --- a/include/message.h +++ b/include/message.h @@ -22,6 +22,8 @@ public: std::vector GetBoards() const { return m_boards; } std::map GetInReplyTo() const { return m_inreplyto; } + void SetFromName(const std::string &fromname) { m_fromname=fromname; } + const std::string GetNNTPHeaders() const; const std::string GetNNTPArticleID() const; const std::string GetNNTPBody() const; @@ -57,6 +59,14 @@ 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; @@ -67,6 +77,7 @@ private: 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;