X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=include%2Ffreenet%2Fmessagexml.h;h=c04e955f579d01b25eed42bcf9677ae06bb55397;hp=71e6e65754a31886633b71ed896da3b1e846df6d;hb=HEAD;hpb=9ae3b1434e51788e6feb72e1415ec800d05c535a diff --git a/include/freenet/messagexml.h b/include/freenet/messagexml.h index 71e6e65..c04e955 100644 --- a/include/freenet/messagexml.h +++ b/include/freenet/messagexml.h @@ -12,8 +12,8 @@ public: MessageXML(); - std::string GetXML(); - const bool ParseXML(const std::string &xml); + virtual std::string GetXML(); + virtual const bool ParseXML(const std::string &xml); struct fileattachment { @@ -22,15 +22,15 @@ public: int m_size; }; - std::string GetDate() { return m_date; } - std::string GetTime() { return m_time; } - std::string GetSubject() { return m_subject; } - std::string GetMessageID() { return m_messageid; } - std::string GetReplyBoard() { return m_replyboard; } - std::string GetBody() { return m_body; } - std::vector GetBoards() { return m_boards; } - std::map GetInReplyTo() { return m_inreplyto; } - std::vector GetFileAttachments() { return m_fileattachments; } + const std::string GetDate() const { return m_date; } + const std::string GetTime() const { return m_time; } + const std::string GetSubject() const { return m_subject; } + const std::string GetMessageID() const { return m_messageid; } + const std::string GetReplyBoard() const { return m_replyboard; } + const std::string GetBody() const { return m_body; } + const std::vector GetBoards() const { return m_boards; } + const std::map GetInReplyTo() const { return m_inreplyto; } + const std::vector GetFileAttachments() const { return m_fileattachments; } void SetDate(const std::string &date) { m_date=date; } void SetTime(const std::string &time) { m_time=time; } @@ -42,7 +42,7 @@ public: void AddInReplyTo(const long index, const std::string &messageid) { m_inreplyto[index]=messageid; } void AddFileAttachment(const std::string &key, const int size) { m_fileattachments.push_back(fileattachment(key,size)); } -private: +protected: void Initialize(); std::string m_date;