|
QtPass 1.7.0
Multi-platform GUI for pass, the standard unix password manager.
|
Tracks a sequence of processes that should be treated as one atomic operation. More...
#include <simpletransaction.h>
Public Member Functions | |
| simpleTransaction () | |
| Construct a simpleTransaction in its initial idle state. | |
| void | transactionStart () |
| transactionStart this function is used to mark start of the sequence of processes that shall be treated as one operation. | |
| void | transactionAdd (Enums::PROCESS process) |
| transactionAdd If called after call to transactionStart() and before transactionEnd(), this method marks given process as next step in transaction. Otherwise it marks given process as the only step in transaction(it's value is treated as transaction result). | |
| void | transactionEnd (Enums::PROCESS process) |
| transactionEnd marks end of transaction | |
| auto | transactionIsOver (Enums::PROCESS current) -> Enums::PROCESS |
| transactionIsOver checks wheather currently finished process is last in current transaction | |
Tracks a sequence of processes that should be treated as one atomic operation.
Definition at line 14 of file simpletransaction.h.
|
inline |
Construct a simpleTransaction in its initial idle state.
Definition at line 23 of file simpletransaction.h.
| void simpleTransaction::transactionAdd | ( | Enums::PROCESS | process | ) |
transactionAdd If called after call to transactionStart() and before transactionEnd(), this method marks given process as next step in transaction. Otherwise it marks given process as the only step in transaction(it's value is treated as transaction result).
| process | process that shall be treated as part of transaction |
| void simpleTransaction::transactionEnd | ( | Enums::PROCESS | process | ) |
transactionEnd marks end of transaction
| process | value that will be used as a result of transaction |
| auto simpleTransaction::transactionIsOver | ( | Enums::PROCESS | current | ) | -> Enums::PROCESS |
transactionIsOver checks wheather currently finished process is last in current transaction
| current | the process that just finished. |