Rise
The Vieneo Province
Loading...
Searching...
No Matches
ImmigrationEmail::State Class Reference

#include <ImmigrationEmail.h>

Collaboration diagram for ImmigrationEmail::State:
[legend]

Public Types

enum  { Invalid = 0 , Checking = 1 , Passed = 2 , Unavailable = 3 }
enum class  Reply { Ignored , Validation , SaveFailed }

Public Member Functions

void Reset (const std::wstring &saved)
void Edit (const std::wstring &text)
bool CanEdit (bool annual) const
bool PendingSave () const
int Status () const
const std::wstring & Value () const
void RejectInput ()
int BeginCheck (std::uint64_t now)
bool Expire (std::uint64_t now)
Reply Receive (float token, bool passed, bool unavailable)
bool BeginSave ()
void Saved ()

Static Public Attributes

static constexpr int MaximumToken = 16777215
static constexpr std::uint64_t TimeoutMs = 15000

Private Attributes

std::wstring original
std::wstring current
int sequence = 0
int pendingToken = 0
int status = Invalid
std::uint64_t started = 0
bool submitting = false

Detailed Description

Definition at line 18 of file ImmigrationEmail.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Invalid 
Checking 
Passed 
Unavailable 

Definition at line 21 of file ImmigrationEmail.h.

◆ Reply

enum class ImmigrationEmail::State::Reply
strong
Enumerator
Ignored 
Validation 
SaveFailed 

Definition at line 22 of file ImmigrationEmail.h.

Member Function Documentation

◆ BeginCheck()

int ImmigrationEmail::State::BeginCheck ( std::uint64_t now)
inline

Definition at line 50 of file ImmigrationEmail.h.

Here is the caller graph for this function:

◆ BeginSave()

bool ImmigrationEmail::State::BeginSave ( )
inline

Definition at line 85 of file ImmigrationEmail.h.

◆ CanEdit()

bool ImmigrationEmail::State::CanEdit ( bool annual) const
inline

Definition at line 44 of file ImmigrationEmail.h.

Here is the caller graph for this function:

◆ Edit()

void ImmigrationEmail::State::Edit ( const std::wstring & text)
inline

Definition at line 35 of file ImmigrationEmail.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Expire()

bool ImmigrationEmail::State::Expire ( std::uint64_t now)
inline

Definition at line 60 of file ImmigrationEmail.h.

Here is the caller graph for this function:

◆ PendingSave()

bool ImmigrationEmail::State::PendingSave ( ) const
inline

Definition at line 45 of file ImmigrationEmail.h.

Here is the caller graph for this function:

◆ Receive()

Reply ImmigrationEmail::State::Receive ( float token,
bool passed,
bool unavailable )
inline

Definition at line 68 of file ImmigrationEmail.h.

Here is the caller graph for this function:

◆ RejectInput()

void ImmigrationEmail::State::RejectInput ( )
inline

Definition at line 48 of file ImmigrationEmail.h.

Here is the caller graph for this function:

◆ Reset()

void ImmigrationEmail::State::Reset ( const std::wstring & saved)
inline

Definition at line 26 of file ImmigrationEmail.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Saved()

void ImmigrationEmail::State::Saved ( )
inline

Definition at line 93 of file ImmigrationEmail.h.

Here is the caller graph for this function:

◆ Status()

int ImmigrationEmail::State::Status ( ) const
inline

Definition at line 46 of file ImmigrationEmail.h.

Here is the caller graph for this function:

◆ Value()

const std::wstring & ImmigrationEmail::State::Value ( ) const
inline

Definition at line 47 of file ImmigrationEmail.h.

Here is the caller graph for this function:

Member Data Documentation

◆ current

std::wstring ImmigrationEmail::State::current
private

Definition at line 101 of file ImmigrationEmail.h.

◆ MaximumToken

int ImmigrationEmail::State::MaximumToken = 16777215
staticconstexpr

Definition at line 23 of file ImmigrationEmail.h.

◆ original

std::wstring ImmigrationEmail::State::original
private

Definition at line 101 of file ImmigrationEmail.h.

◆ pendingToken

int ImmigrationEmail::State::pendingToken = 0
private

Definition at line 102 of file ImmigrationEmail.h.

◆ sequence

int ImmigrationEmail::State::sequence = 0
private

Definition at line 102 of file ImmigrationEmail.h.

◆ started

std::uint64_t ImmigrationEmail::State::started = 0
private

Definition at line 103 of file ImmigrationEmail.h.

◆ status

int ImmigrationEmail::State::status = Invalid
private

Definition at line 102 of file ImmigrationEmail.h.

◆ submitting

bool ImmigrationEmail::State::submitting = false
private

Definition at line 104 of file ImmigrationEmail.h.

◆ TimeoutMs

std::uint64_t ImmigrationEmail::State::TimeoutMs = 15000
staticconstexpr

Definition at line 24 of file ImmigrationEmail.h.


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