Feathercoin  0.5.0
P2P Digital Currency
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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:
Inheritance graph
[legend]

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(strComment);READWRITE(strStatusBar);READWRITE(strReserved);) void SetNull()
 
std::string ToString () const
 
void print () const
 

Public Attributes

int nVersion
 
int64 nRelayUntil
 
int64 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
 

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

Member Function Documentation

void CUnsignedAlert::print ( ) const

Definition at line 80 of file alert.cpp.

std::string CUnsignedAlert::ToString ( ) const

Definition at line 43 of file alert.cpp.

Member Data Documentation

int CUnsignedAlert::nCancel

Definition at line 30 of file alert.h.

int64 CUnsignedAlert::nExpiration

Definition at line 28 of file alert.h.

int CUnsignedAlert::nID

Definition at line 29 of file alert.h.

int CUnsignedAlert::nMaxVer

Definition at line 33 of file alert.h.

int CUnsignedAlert::nMinVer

Definition at line 32 of file alert.h.

int CUnsignedAlert::nPriority

Definition at line 35 of file alert.h.

int64 CUnsignedAlert::nRelayUntil

Definition at line 27 of file alert.h.

int CUnsignedAlert::nVersion

Definition at line 26 of file alert.h.

std::set<int> CUnsignedAlert::setCancel

Definition at line 31 of file alert.h.

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

Definition at line 34 of file alert.h.

std::string CUnsignedAlert::strComment

Definition at line 38 of file alert.h.

std::string CUnsignedAlert::strReserved

Definition at line 40 of file alert.h.

std::string CUnsignedAlert::strStatusBar

Definition at line 39 of file alert.h.


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