X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..b6dc7c53f5374b1798d74fe752e962266645cca0:/include/stg_message.h diff --git a/include/stg_message.h b/include/stg_message.h index 156e1731..16fe566f 100644 --- a/include/stg_message.h +++ b/include/stg_message.h @@ -10,10 +10,11 @@ $Date: 2010/03/04 11:49:52 $ */ -#include +#include #include -using namespace std; +#include "os_int.h" + //----------------------------------------------------------------------------- struct STG_MSG_HDR { @@ -40,15 +41,16 @@ unsigned repeatPeriod; //----------------------------------------------------------------------------- struct STG_MSG { -STG_MSG() - : header(), - text() -{}; +STG_MSG() {}; + +time_t GetNextSendTime() const +{ +return header.lastSendTime + header.repeat * 60; +}; STG_MSG_HDR header; -string text; +std::string text; }; //----------------------------------------------------------------------------- #endif -