Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
CUnsignedAlert Class Reference

Alerts are for notifying old versions if they become too obsolete and need to upgrade. More...

#include <alert.h>

+ Inheritance diagram for CUnsignedAlert:
+ Collaboration diagram for CUnsignedAlert:

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< intsetCancel
 
int nMinVer
 
int nMaxVer
 
std::set< std::string > setSubVer
 
int nPriority
 
std::string strComment
 
std::string strStatusBar
 
std::string strReserved
 

Detailed Description

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.

Definition at line 30 of file alert.h.

Member Function Documentation

void CUnsignedAlert::print ( ) const

Definition at line 81 of file alert.cpp.

References LogPrintf.

std::string CUnsignedAlert::ToString ( ) const

Definition at line 44 of file alert.cpp.

References strprintf.

Member Data Documentation

int CUnsignedAlert::nCancel

Definition at line 37 of file alert.h.

int64_t CUnsignedAlert::nExpiration

Definition at line 35 of file alert.h.

int CUnsignedAlert::nID

Definition at line 36 of file alert.h.

Referenced by CAlert::Cancels(), and CAlert::ProcessAlert().

int CUnsignedAlert::nMaxVer

Definition at line 40 of file alert.h.

int CUnsignedAlert::nMinVer

Definition at line 39 of file alert.h.

int CUnsignedAlert::nPriority

Definition at line 42 of file alert.h.

Referenced by GetWarnings().

int64_t CUnsignedAlert::nRelayUntil

Definition at line 34 of file alert.h.

int CUnsignedAlert::nVersion

Definition at line 33 of file alert.h.

std::set<int> CUnsignedAlert::setCancel

Definition at line 38 of file alert.h.

std::set<std::string> CUnsignedAlert::setSubVer

Definition at line 41 of file alert.h.

std::string CUnsignedAlert::strComment

Definition at line 45 of file alert.h.

std::string CUnsignedAlert::strReserved

Definition at line 47 of file alert.h.

std::string CUnsignedAlert::strStatusBar

Definition at line 46 of file alert.h.

Referenced by GetWarnings(), and ClientModel::updateAlert().


The documentation for this class was generated from the following files: