Banker
Void | Banker::AnswerFromBank (GMessage *inMsg) Reacts to an answer from bank |
Void | Banker::AnswerKO ( CurrPay *p, Char *reason) Reaction to a 'KO answer' from bank |
Err | Banker::AnswerOK ( CurrPay *p, GMessage *inMsg) Reaction to a 'OK answer' from bank |
Banker::Banker (LogFile *logFile, Client *client) Banker constructor | |
Banker::Banker (LogFile *logFile, Eso *eso) Banker Constructor | |
GMessage* | Banker::ChallengeFromBank (GMessage *inMsg, TID tId, ACID *bankACID) Reacts to a challenge from bank |
Void | Banker::ChallengeKO (CurrPay *p, Char *reason) Reaction to a 'KO challenge' from bank |
GMessage* | Banker::ChallengeOK (CurrPay *p, GMessage *inMsg) Reaction to a 'OK challenge' from bank |
Void | Banker::ChallengeWrongTime (CurrPay * , GMessage * ) Reaction to a 'BadTime challenge' from bank |
Char* | Banker::CountPrice (Size , RelTime ) Counts price for stored data |
Err | Banker::CreateBankPPlan () Create BankPPlan Table |
Err | Banker::CreateClientPPlan () Creates Client Payment Plan table |
Err | Banker::CreateCurrPays () Creates Current Payments table |
Err | Banker::CreateNotPaidPays () Creates Not Paid Payments table |
Err | Banker::CreatePPlans () Creates Payment Plan table |
Err | Banker::CreatePayPlan () Create PayPlan Table |
Err | Banker::PartialUpdateCurrPays (CurrPay *p) Updates table Current Payments |
Queue* | Banker::PrepareMsgsForBanks (TID oldTID) Prepares queue of mesages for banks |
Err | Banker::Rollback (TID tId) Rollback transaction |
Err | Banker::SchedulePays (TID tId, ID fileId) Schedule Payments with given TID |
Err | Banker::SetCurrPayTimeOut (ID payId, Int state) Sets current payment time out |
Err | Banker::SetPaymentTimeOut (ID payId, ESTime time) Sets payment time out |
Err | Banker::StorePayPlan (Table *esoPPlan, TID tId) Stores payments from given table |
GMessage* | Banker::TimeForPayment (GMessage *inMsg, TID tId, ACID *bankACID) Time For Some Payment is up |
GMessage* | Banker::TimeOutCurrPay (CurrPay *p) TimeOut of some current payment |
GMessage* | Banker::TimeOutPayment (GMessage *inMsg, TID tId, ACID *bankACID, Int *request) Reacts to a timeout of some payment |
Banker::~Banker () Banker destructor | |
Banker::~Banker () Banker Destructor |
methods
|
attributes
| |||
methods |
Banker. A class which manages everything about payments in Client: 1) For each payment (in payment plan sent by Eso) generates OAuth and counts MAC. 2) New payment plan sends to given banks (along with money).
reason - reason of fail
inMsg - message from bank
client - pointer to main class client
eso - pointer to main class eso
tId - current transaction ID
bankACID - ID of bank's access certificate (return parametr)
reason - reason of fail
inMsg - message from bank
inMsg - message from bank
timeToStore - period of storrage of sent file
fileId - ID od file, which has been stored
state - state of payemnt (REQUEST/ANSWER)
time - timeOut time
tId - current transaction ID
tId - current transaction ID
bankACID - ID of bank's access certificate (return parametr)
tId - current transaction ID
bankACID - ID of bank's access certificate (return parametr)
request - wheather state is request or answer;
parametr can have values YES or NO (retrun parametr)
alphabetic index hierarchy of classes
generated by doc++