Exemplo n.º 1
0
OTToken::OTToken()
  : ot_super(),
    m_bPasswordProtected(false),
    m_lDenomination(0),
    m_nTokenCount(0),
    m_nChosenIndex(0), 
    m_nSeries(0), 
    m_State(blankToken), 
    m_bSavePrivateKeys(false)
{
    InitToken();
}
Exemplo n.º 2
0
OTToken::OTToken(const OTIdentifier & SERVER_ID, const OTIdentifier & ASSET_ID)
  : ot_super(SERVER_ID, ASSET_ID), 
    m_bPasswordProtected(false),
    m_lDenomination(0), 
    m_nTokenCount(0), 
    m_nChosenIndex(0), 
    m_nSeries(0), 
    m_State(blankToken), 
    m_bSavePrivateKeys(false)
{
	InitToken();
	
	// m_ServerID and m_AssetTypeID are now in the parent class (OTInstrument)
	// So they are initialized there now.
}
Exemplo n.º 3
0
OTToken::OTToken(const OTPurse & thePurse)
  : ot_super(),
    m_bPasswordProtected(false),
    m_lDenomination(0), 
    m_nTokenCount(0), 
    m_nChosenIndex(0), 
    m_nSeries(0), 
    m_State(blankToken), 
    m_bSavePrivateKeys(false)
{
	InitToken();

	// These are in the parent class, OTInstrument.
	// I set them here because the "Purse" argument only exists 
	// in this subclass constructor, not the base.
	m_ServerID		= thePurse.GetServerID();
	m_AssetTypeID	= thePurse.GetAssetID();
}
Exemplo n.º 4
0
//------------------------------------------------------------------------------
FBasicToken::FBasicToken()
{
	InitToken();
}