133 #ifndef OPENTXS_CLIENT_OTCLIENT_HPP
134 #define OPENTXS_CLIENT_OTCLIENT_HPP
142 class TransportCallback;
144 class OTAssetContract;
146 class OTServerConnection;
147 class OTServerContract;
167 bool m_bRunningAsScript;
188 int64_t m_lMostRecentRequestNumber;
194 return m_bRunningAsScript;
198 m_bRunningAsScript =
true;
361 return m_MessageBuffer;
365 return m_MessageOutbuffer;
379 const OTString& strKEY_PASSWORD)
const;
404 int64_t lTransactionAmount = 0,
447 #endif // OPENTXS_CLIENT_OTCLIENT_HPP
EXPORT bool SetFocusToServerAndNym(OTServerContract &theServerContract, OTPseudonym &theNym, TransportCallback *pCallback) const
void ProcessDepositResponse(OTTransaction &theTransaction, const OTServerConnection &theConnection, const OTMessage &theReply) const
int32_t CalcReturnVal(const int64_t &lRequestNumber)
void ProcessPayDividendResponse(OTTransaction &theTransaction, const OTServerConnection &theConnection, const OTMessage &theReply) const
bool ProcessServerReply(OTMessage &theReply, OTLedger *pNymbox=nullptr)
EXPORT int32_t ProcessUserCommand(OT_CLIENT_CMD_TYPE requestedCommand, OTMessage &theMessage, OTPseudonym &theNym, const OTServerContract &theServer, const OTAccount *pAccount=nullptr, int64_t lTransactionAmount=0, OTAssetContract *pMyAssetContract=nullptr, const OTIdentifier *pHisNymID=nullptr, const OTIdentifier *pHisAcctID=nullptr)
OTServerConnection * m_pConnection
bool ConnectToTheFirstServerOnList(const OTPseudonym &theNym, const OTString &strCA_FILE, const OTString &strKEY_FILE, const OTString &strKEY_PASSWORD) const
OTMessageOutbuffer & GetMessageOutbuffer()
void ProcessMessageOut(const char *buf, int32_t *pnExpectReply) const
bool ProcessInBuffer(const OTMessage &theServerReply) const
void SetRunningAsScript()
bool AcceptEntireNymbox(OTLedger &theNymbox, const OTIdentifier &theServerID, const OTServerContract &theServerContract, OTPseudonym &theNym, OTMessage &theMessage)
bool InitClient(OTWallet &theWallet)
Need to call this before using.
bool AcceptEntireInbox(OTLedger &theInbox, const OTIdentifier &theServerID, const OTServerContract &theServerContract, OTPseudonym &theNym, const OTMessage &theMessage, const OTAccount &theAccount)
void ProcessWithdrawalResponse(OTTransaction &theTransaction, const OTServerConnection &theConnection, const OTMessage &theReply) const
void ProcessIncomingTransactions(OTServerConnection &theConnection, OTMessage &theReply) const
bool IsRunningAsScript() const
OTMessageBuffer & GetMessageBuffer()