136 #ifndef OPENTXS_CORE_CRON_OTCRONITEM_HPP
137 #define OPENTXS_CORE_CRON_OTCRONITEM_HPP
139 #include "../OTTrackable.hpp"
166 int64_t m_PROCESS_INTERVAL;
195 OTCronItem& theOrigCronItem,
const int64_t& lNewTransactionNumber,
208 const int64_t& lNewTransactionNumber,
const int64_t& lClosingNumber,
215 const int64_t& lNewTransactionNumber,
229 bool bForTheFirstTime =
false);
253 const int64_t& lTransactionNum);
255 const int64_t& lTransactionNum,
258 const int64_t& lTransactionNum,
const OTIdentifier& nymID,
266 m_CREATION_DATE = CREATION_DATE;
270 return m_CREATION_DATE;
277 m_LAST_PROCESS_DATE = THE_DATE;
281 return m_LAST_PROCESS_DATE;
286 m_PROCESS_INTERVAL = THE_DATE;
290 return m_PROCESS_INTERVAL;
299 serverNym_ = serverNym;
303 serverId_ = serverId;
354 #endif // OPENTXS_CORE_CRON_OTCRONITEM_HPP
virtual int64_t GetOpeningNumber(const OTIdentifier &theNymID) const
EXPORT bool IsCanceled() const
EXPORT bool SaveCronReceipt()
virtual void HarvestClosingNumbers(OTPseudonym &theNym)
virtual bool IsValidOpeningNumber(const int64_t &lOpeningNum) const
virtual void HarvestOpeningNumber(OTPseudonym &theNym)
virtual int32_t ProcessXMLNode(irr::io::IrrXMLReader *&xml)
EXPORT bool SaveActiveCronReceipt(const OTIdentifier &theNymID)
void HookRemovalFromCron(OTPseudonym *pRemover, int64_t newTransactionNo)
static EXPORT OTCronItem * LoadCronReceipt(const int64_t &lTransactionNum)
bool IsFlaggedForRemoval() const
virtual bool CanRemoveItemFromCron(OTPseudonym &theNym)
virtual void onFinalReceipt(OTCronItem &theOrigCronItem, const int64_t &lNewTransactionNumber, OTPseudonym &theOriginator, OTPseudonym *pRemover)
void SetCreationDate(const time64_t &CREATION_DATE)
void ClearClosingNumbers()
EXPORT int64_t GetClosingTransactionNoAt(uint32_t nIndex) const
void SetCronPointer(OTCron &theCron)
bool DropFinalReceiptToInbox(const OTIdentifier &USER_ID, const OTIdentifier &ACCOUNT_ID, const int64_t &lNewTransactionNumber, const int64_t &lClosingNumber, const OTString &strOrigCronItem, OTString *pstrNote=nullptr, OTString *pstrAttachment=nullptr, OTAccount *pActualAcct=nullptr)
EXPORT int32_t GetCountClosingNumbers() const
virtual bool ProcessCron()
EXPORT bool GetCancelerID(OTIdentifier &theOutput) const
EXPORT bool SetDateRange(time64_t VALID_FROM=OT_TIME_ZERO, time64_t VALID_TO=OT_TIME_ZERO)
static EXPORT bool EraseActiveCronReceipt(const int64_t &lTransactionNum, const OTIdentifier &nymID, const OTIdentifier &serverID)
static EXPORT bool GetActiveCronTransNums(OTNumList &output, const OTIdentifier &nymID, const OTIdentifier &serverID)
EXPORT bool CancelBeforeActivation(OTPseudonym &theCancelerNym)
const int64_t & GetProcessInterval() const
EXPORT int64_t GetClosingNum() const
static EXPORT OTCronItem * LoadActiveCronReceipt(const int64_t &lTransactionNum, const OTIdentifier &serverID)
EXPORT int64_t GetOpeningNum() const
void setServerNym(OTPseudonym *serverNym)
void setServerId(OTIdentifier *serverId)
OTIdentifier * m_pCancelerNymID
const time64_t & GetLastProcessDate() const
bool DropFinalReceiptToNymbox(const OTIdentifier &USER_ID, const int64_t &lNewTransactionNumber, const OTString &strOrigCronItem, OTString *pstrNote=nullptr, OTString *pstrAttachment=nullptr, OTPseudonym *pActualNym=nullptr)
EXPORT void AddClosingTransactionNo(const int64_t &lClosingTransactionNo)
std::deque< int64_t > m_dequeClosingNumbers
virtual int64_t GetClosingNumber(const OTIdentifier &theAcctID) const
void HookActivationOnCron(OTPseudonym *pActivator, bool bForTheFirstTime=false)
static EXPORT OTCronItem * NewCronItem(const OTString &strCronItem)
void SetProcessInterval(const int64_t &THE_DATE)
const time64_t & GetCreationDate() const
virtual void onRemovalFromCron()
virtual void onActivate()
void SetLastProcessDate(const time64_t &THE_DATE)