Dash Core  0.12.2.1
P2P Digital Currency
CUnsignedAlert Class Reference

#include <alert.h>

+ Inheritance diagram for CUnsignedAlert:

Public Member Functions

template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
void SetNull ()
 
std::string ToString () 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
 
 ADD_SERIALIZE_METHODS
 

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 31 of file alert.h.

Member Function Documentation

◆ SerializationOp()

template<typename Stream , typename Operation >
void CUnsignedAlert::SerializationOp ( Stream &  s,
Operation  ser_action,
int  nType,
int  nVersion 
)
inline

Definition at line 53 of file alert.h.

◆ SetNull()

void CUnsignedAlert::SetNull ( )

Definition at line 31 of file alert.cpp.

Referenced by CAlert::SetNull().

◆ ToString()

std::string CUnsignedAlert::ToString ( ) const

Definition at line 49 of file alert.cpp.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CUnsignedAlert::ADD_SERIALIZE_METHODS

Definition at line 50 of file alert.h.

◆ nCancel

int CUnsignedAlert::nCancel

Definition at line 38 of file alert.h.

Referenced by SerializationOp(), and ThreadSendAlert().

◆ nExpiration

int64_t CUnsignedAlert::nExpiration

Definition at line 36 of file alert.h.

Referenced by SerializationOp(), and ThreadSendAlert().

◆ nID

int CUnsignedAlert::nID

Definition at line 37 of file alert.h.

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

◆ nMaxVer

int CUnsignedAlert::nMaxVer

Definition at line 41 of file alert.h.

Referenced by SerializationOp(), and ThreadSendAlert().

◆ nMinVer

int CUnsignedAlert::nMinVer

Definition at line 40 of file alert.h.

Referenced by SerializationOp(), and ThreadSendAlert().

◆ nPriority

int CUnsignedAlert::nPriority

Definition at line 43 of file alert.h.

Referenced by GetWarnings(), SerializationOp(), and ThreadSendAlert().

◆ nRelayUntil

int64_t CUnsignedAlert::nRelayUntil

Definition at line 35 of file alert.h.

Referenced by ThreadSendAlert().

◆ nVersion

int CUnsignedAlert::nVersion

Definition at line 34 of file alert.h.

Referenced by SerializationOp().

◆ setCancel

std::set<int> CUnsignedAlert::setCancel

Definition at line 39 of file alert.h.

Referenced by SerializationOp().

◆ setSubVer

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

Definition at line 42 of file alert.h.

Referenced by SerializationOp().

◆ strComment

std::string CUnsignedAlert::strComment

Definition at line 46 of file alert.h.

Referenced by SerializationOp(), and ThreadSendAlert().

◆ strReserved

std::string CUnsignedAlert::strReserved

Definition at line 48 of file alert.h.

Referenced by SerializationOp().

◆ strStatusBar

std::string CUnsignedAlert::strStatusBar

Definition at line 47 of file alert.h.

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


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