![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
Alerts are for notifying old versions if they become too obsolete and need to upgrade. More...
#include <alert.h>
Public Member Functions | |
IMPLEMENT_SERIALIZE (READWRITE(this->nVersion);nVersion=this->nVersion;READWRITE(nRelayUntil);READWRITE(nExpiration);READWRITE(nID);READWRITE(nCancel);READWRITE(setCancel);READWRITE(nMinVer);READWRITE(nMaxVer);READWRITE(setSubVer);READWRITE(nPriority);READWRITE(LIMITED_STRING(strComment, 65536));READWRITE(LIMITED_STRING(strStatusBar, 256));READWRITE(LIMITED_STRING(strReserved, 256));) void SetNull() | |
std::string | ToString () const |
void | print () const |
Public Attributes | |
int | nVersion |
int64_t | nRelayUntil |
int64_t | nExpiration |
int | nID |
int | nCancel |
std::set< int > | setCancel |
int | nMinVer |
int | nMaxVer |
std::set< std::string > | setSubVer |
int | nPriority |
std::string | strComment |
std::string | strStatusBar |
std::string | strReserved |
Alerts are for notifying old versions if they become too obsolete and need to upgrade.
The message is displayed in the status bar. Alert messages are broadcast as a vector of signed data. Unserializing may not read the entire buffer if the alert is for a newer version, but older versions can still relay the original data.
CUnsignedAlert::IMPLEMENT_SERIALIZE | ( | READWRITE(this->nVersion); | nVersion = this->nVersion;READWRITE(nRelayUntil);READWRITE(nExpiration);READWRITE(nID);READWRITE(nCancel);READWRITE(setCancel);READWRITE(nMinVer);READWRITE(nMaxVer);READWRITE(setSubVer);READWRITE(nPriority);READWRITE(LIMITED_STRING(strComment, 65536));READWRITE(LIMITED_STRING(strStatusBar, 256));READWRITE(LIMITED_STRING(strReserved, 256)); | ) |
std::string CUnsignedAlert::ToString | ( | ) | const |
int CUnsignedAlert::nID |
Definition at line 36 of file alert.h.
Referenced by CAlert::Cancels(), and CAlert::ProcessAlert().
int CUnsignedAlert::nPriority |
Definition at line 42 of file alert.h.
Referenced by GetWarnings().
std::string CUnsignedAlert::strStatusBar |
Definition at line 46 of file alert.h.
Referenced by GetWarnings(), and ClientModel::updateAlert().