X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=include%2Ffreenet%2Fmessagelistxml.h;h=3d3f993320e8dd20a9eb79cd4ed877017d4b2b76;hp=54d4998d0df8ac25f382fa81c731b6a66d251c61;hb=b9c3763a932cebaa015a27fe111017f6f34dfbaa;hpb=37a8d59548287dcad78ef00e7b18058721eb9935 diff --git a/include/freenet/messagelistxml.h b/include/freenet/messagelistxml.h index 54d4998..3d3f993 100644 --- a/include/freenet/messagelistxml.h +++ b/include/freenet/messagelistxml.h @@ -7,6 +7,14 @@ class MessageListXML:public IFMSXMLDocument { +private: + struct message + { + message(const std::string &date, const long index, const std::vector &boards):m_date(date),m_index(index),m_boards(boards) {} + std::string m_date; + long m_index; + std::vector m_boards; + }; public: MessageListXML(); @@ -17,20 +25,12 @@ public: void AddMessage(const std::string &date, const long index, const std::vector boards); - const long MessageCount() { return m_messages.size(); } + const std::vector::size_type MessageCount() { return m_messages.size(); } std::string GetDate(const long index); const long GetIndex(const long index); std::vector GetBoards(const long index); private: - struct message - { - message(const std::string &date, const long index, const std::vector &boards):m_date(date),m_index(index),m_boards(boards) {} - std::string m_date; - long m_index; - std::vector m_boards; - }; - void Initialize(); std::vector m_messages;