X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fmessage.h;h=4b4cb6e08697045253b112f8166d78300220db1f;hb=18b45335ba24f3b6b6d4f4acfe8c5a5ae845ce00;hp=c99b96db752754a02975f3dc7ec396bdafbeef79;hpb=ee580d19b7920904587e18d72a3465d52eab6204;p=fms.git diff --git a/include/message.h b/include/message.h index c99b96d..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; @@ -54,6 +56,16 @@ private: // checks vector of boards for any special administration boards - if it finds one true is returned, otherwise false const bool CheckForAdministrationBoard(const std::vector &boards); void HandleChangeTrust(); + 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; @@ -65,7 +77,10 @@ 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; };