133 #ifndef OPENTXS_CASH_PURSE_HPP
134 #define OPENTXS_CASH_PURSE_HPP
144 class OTNym_or_SymmetricKey;
260 const char* szDisplay =
nullptr);
290 EXPORT int32_t
Count()
const;
322 EXPORT
bool LoadPurse(
const char* szServerID =
nullptr,
323 const char* szUserID =
nullptr,
324 const char* szAssetTypeID =
nullptr);
325 EXPORT
bool SavePurse(
const char* szServerID =
nullptr,
326 const char* szUserID =
nullptr,
327 const char* szAssetTypeID =
nullptr);
349 #endif // OPENTXS_CASH_PURSE_HPP
EXPORT bool GetPassphrase(OTPassword &theOutput, const char *szDisplay=nullptr)
EXPORT bool IsNymIDIncluded() const
EXPORT int32_t Count() const
EXPORT bool IsPasswordProtected() const
virtual bool SaveContractWallet(std::ofstream &ofs) const
EXPORT bool Push(OTNym_or_SymmetricKey theOwner, const Token &theToken)
time64_t m_tLatestValidFrom
virtual int32_t ProcessXMLNode(irr::io::IrrXMLReader *&xml)
time64_t m_tEarliestValidTo
EXPORT bool VerifyCurrentDate()
const OTIdentifier & GetAssetID() const
static EXPORT Purse * PurseFactory(OTString strInput)
OTSymmetricKey * m_pSymmetricKey
std::deque< OTASCIIArmor * > dequeOfTokens
virtual bool LoadContract()
EXPORT std::shared_ptr< OTCachedKey > GetInternalMaster()
EXPORT OTSymmetricKey * GetInternalKey()
EXPORT Token * Peek(OTNym_or_SymmetricKey theOwner) const
EXPORT void Release_Purse()
int64_t GetTotalValue() const
std::shared_ptr< OTCachedKey > m_pCachedKey
bool m_bPasswordProtected
EXPORT time64_t GetLatestValidFrom() const
EXPORT void ReleaseTokens()
EXPORT bool Merge(const OTPseudonym &theSigner, OTNym_or_SymmetricKey theOldNym, OTNym_or_SymmetricKey theNewNym, Purse &theNewPurse)
void RecalculateExpirationDates(OTNym_or_SymmetricKey &theOwner)
EXPORT time64_t GetEarliestValidTo() const
EXPORT bool SavePurse(const char *szServerID=nullptr, const char *szUserID=nullptr, const char *szAssetTypeID=nullptr)
EXPORT bool LoadPurse(const char *szServerID=nullptr, const char *szUserID=nullptr, const char *szAssetTypeID=nullptr)
static EXPORT Purse * LowLevelInstantiate(const OTString &strFirstLine)
EXPORT bool GetNymID(OTIdentifier &theOutput) const
EXPORT bool GenerateInternalKey()
dequeOfTokens m_dequeTokens
EXPORT bool IsEmpty() const
virtual void UpdateContents()
const OTIdentifier & GetServerID() const
EXPORT Token * Pop(OTNym_or_SymmetricKey theOwner)