X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/50769b45008e7da2cce41d918ec2f0fd5204fe46..8bc0440914cb83594e89a0c33507b0a7476b3627:/projects/stargazer/user.h diff --git a/projects/stargazer/user.h b/projects/stargazer/user.h index 8b35dbec..1c84ba1c 100644 --- a/projects/stargazer/user.h +++ b/projects/stargazer/user.h @@ -144,8 +144,6 @@ public: void ResetPassiveTime() { passiveTime = 0; } void SetPassiveTimeAsNewUser(); - /*void ResetDetailStat(); - int SwapDetailStat();*/ int WriteDetailStat(bool hard = false); const TARIFF * GetTariff() const { return tariff; } @@ -204,9 +202,8 @@ private: void Disconnect(bool fakeDisconnect, const std::string & reason); int SaveMonthStat(int month, int year); - int SendMessage(const STG_MSG & msg); - int RemoveMessage(uint64_t) { return 0; } - int ScanMessage(); + int SendMessage(STG_MSG & msg) const; + void ScanMessage(); time_t lastScanMessages; string login; @@ -235,13 +232,8 @@ private: const TARIFFS * tariffs; const TARIFF * tariff; - /*map traffStatInternal[2]; - map * traffStat; - map * traffStatToWrite; - int traffStatInUse;*/ - TRAFF_STAT traffStat; - std::list > traffStatQueue; + std::pair traffStatSaved; const SETTINGS * settings; @@ -249,13 +241,12 @@ private: const map * ipIndex; + list messages; + bool deleted; time_t lastWriteStat; // ÷ÒÅÍÑ ÐÏÓÌÅÄÎÅÊ ÚÁÐÉÓÉ ÓÔÁÔÉÓÔÉËÉ time_t lastWriteDeatiledStat; // ÷ÒÅÍÑ ÐÏÓÌÅÄÎÅÊ ÚÁÐÉÓÉ ÄÅÔÁÌØÎÏÊ ÓÔÁÔÉÓÔÉËÉ - time_t lastSwapDeatiledStat; // ÷ÒÅÍÑ ÐÏÓÌÅÄÎÅÊ ÚÁÐÉÓÉ ÄÅÔÁÌØÎÏÊ ÓÔÁÔÉÓÔÉËÉ - - bool writeFreeMbTraffCost; // Properties USER_PROPERTY & cash;