X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fboard.h;h=f70e4f8d5a09e06844d5b4990be4831cf7c43fba;hb=dec33c63afafabf83c3039e916725cac6faef9b3;hp=a5479d3bd9b3654aed70acf19575b8dad8d3b930;hpb=4430e7762844c66428b6f822288beb71b7f82b95;p=fms.git diff --git a/include/board.h b/include/board.h index a5479d3..f70e4f8 100644 --- a/include/board.h +++ b/include/board.h @@ -1,11 +1,11 @@ #ifndef _board_ #define _board_ -#include "datetime.h" #include "ilogger.h" #include "idatabase.h" #include +#include class Board:public ILogger,public IDatabase { @@ -13,19 +13,20 @@ public: Board(); Board(const long boardid); Board(const std::string &boardname); - Board(const long boardid, const std::string &boardname, const std::string &boarddescription, const std::string datecreated, const long lowmessageid, const long highmessageid, const long messagecount, const bool savereceivedmessages); + Board(const long boardid, const std::string &boardname, const std::string &boarddescription, const std::string datecreated, const long lowmessageid, const long highmessageid, const long messagecount, const bool savereceivedmessages, const std::string &addedmethod); const bool Load(const long boardid); const bool Load(const std::string &boardname); - const long GetBoardID() const { return m_boardid; } - std::string GetBoardName() const { return m_boardname; } - std::string GetBoardDescription() const { return m_boarddescription; } - DateTime GetDateCreated() const { return m_datecreated; } - const long GetLowMessageID() const { return m_lowmessageid; } - const long GetHighMessageID() const { return m_highmessageid; } - const long GetMessageCount() const { return m_messagecount; } - const bool GetSaveReceivedMessages() const { return m_savereceivedmessages; } + const long GetBoardID() const { return m_boardid; } + std::string GetBoardName() const { return m_boardname; } + std::string GetBoardDescription() const { return m_boarddescription; } + Poco::DateTime GetDateCreated() const { return m_datecreated; } + const long GetLowMessageID() const { return m_lowmessageid; } + const long GetHighMessageID() const { return m_highmessageid; } + const long GetMessageCount() const { return m_messagecount; } + const bool GetSaveReceivedMessages() const { return m_savereceivedmessages; } + std::string GetAddedMethod() const { return m_addedmethod; } private: void SetDateFromString(const std::string &datestring); @@ -33,11 +34,12 @@ private: long m_boardid; std::string m_boardname; std::string m_boarddescription; - DateTime m_datecreated; + Poco::DateTime m_datecreated; long m_lowmessageid; // lowest id of all message currently in this board long m_highmessageid; // highest id of all message currently in this board long m_messagecount; // number of messages in this board bool m_savereceivedmessages; + std::string m_addedmethod; }; #endif // _board_