|
QtPass 2.0.0
Developer documentation
|
RAII helper for wrapping operations in transactions. More...
#include <imitatepass.h>
Public Member Functions | |
| TransactionHelper (SimpleTransaction *trans, PROCESS result) | |
| Start transaction. | |
| ~TransactionHelper () | |
| End transaction on destruction. | |
Private Attributes | |
| SimpleTransaction * | m_transaction |
| The transaction being bracketed; not owned. | |
| PROCESS | m_result |
| What the transaction reports as once its last step ends. | |
RAII helper for wrapping operations in transactions.
Definition at line 307 of file imitatepass.h.
|
inline |
Start transaction.
| trans | Transaction object. |
| result | Result code on commit. |
Definition at line 319 of file imitatepass.h.
|
inline |
End transaction on destruction.
Definition at line 326 of file imitatepass.h.
|
private |
What the transaction reports as once its last step ends.
Definition at line 311 of file imitatepass.h.
|
private |
The transaction being bracketed; not owned.
Definition at line 309 of file imitatepass.h.