#include <progressmonitor.h>
Inheritance diagram for HBCI::ProgressMonitor:
Public Methods | |
ProgressMonitor () | |
virtual | ~ProgressMonitor () |
virtual void | transactionStarted (TransProgressType type, string const &descr, int jobs) |
This method is called before starting a transaction. | |
virtual void | transactionFinished () |
This method is called after a transaction has finished. | |
virtual void | jobStarted (JobProgressType type, const string &descr, int actions) |
This method is called before a job starts. | |
virtual void | jobFinished () |
This method is called after a job finished. | |
virtual void | actionStarted (ActionProgressType type, const string &descr) |
This method is called before an action starts. | |
virtual void | actionFinished () |
This method is called after an action finshed. | |
virtual void | logMessage (const string &msg) |
DEPRECATED. This method is not used inside OpenHBCI. |
This class is used to show the progress of an action. It dumps the messages to stderr, so if you really want to use this class you should inherit this one and overload the methods. One object of this class sits in HBCIAPI and is therefore used for all progress reports.
|
|
|
|
|
This method is called after an action finshed.
Tells this class that an action finished, i.e. the current action is done. A derived class can use this to advance the current job's progress bar, or to write the message "done" into the appropriate line of its progress report window.
Reimplemented in HBCI::ProgressMonitorCB. |
|
This method is called before an action starts.
Tells this class that an action starts, and what action is to be performed now. A derived class can use this to show what is currently done. If you do not plan to give any kind of report to the user then you have to overload this method with your version just doing nothing. The default version of this method writes a short description to stderr (for now, I guess I will later make this method do nothing. So it is generally a good idea to overload this method).
Reimplemented in HBCI::ProgressMonitorCB. |
|
This method is called after a job finished.
Tells this class that the current job is finished. A derived class can use this to advance the transactions progress bar.
Reimplemented in HBCI::ProgressMonitorCB. |
|
This method is called before a job starts.
A derived class can use this to show in its progress window what is currently done. Each job has one or more actions to perform, like sending data to the server, receiving data from the server etc. If you do not plan to give any kind of report to the user then you have to overload this method with your version just doing nothing. The default version of this method writes a short description to stderr (for now, I guess I will later make this method do nothing. So it is generally a good idea to overload this method).
Reimplemented in HBCI::ProgressMonitorCB. |
|
DEPRECATED. This method is not used inside OpenHBCI. This method was meant to be called to log a message, but it is not used from inside OpenHBCI. It may or may not disappear in future releases. The only method to log messages in OpenHBCI is the HBCI::Interactor::msgStateResponse() method. The default version of this method writes a short description to stderr (for now, I guess I will later make this method do nothing.).
Reimplemented in HBCI::ProgressMonitorCB. |
|
This method is called after a transaction has finished. This method tells this class that the transaction is finished. A derived class can use this to show the message "finished" in the transaction window.
Reimplemented in HBCI::ProgressMonitorCB. |
|
This method is called before starting a transaction.
An example is when the outbox is executed: Before really doing so, the HBCI::API calls this method to give this class the opportunity to initialize a progress report. If you do not plan to give any kind of report to the user then you have to overload this method with your version just doing nothing. The default version of this method writes a short description to stderr (for now, I guess I will later make this method do nothing. So it is generally a good idea to overload this method).
Reimplemented in HBCI::ProgressMonitorCB. |