QtPass  1.2.0-pre
Multi-platform GUI for pass, the standard unix password manager.
Public Member Functions | List of all members
simpleTransaction Class Reference

#include <simpletransaction.h>

+ Inheritance diagram for simpleTransaction:

Public Member Functions

 simpleTransaction ()
 
void transactionStart ()
 transactionStart this function is used to mark start of the sequence of processes that shall be treated as one operation. More...
 
void transactionAdd (Enums::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). More...
 
void transactionEnd (Enums::PROCESS)
 transactionEnd marks end of transaction More...
 
Enums::PROCESS transactionIsOver (Enums::PROCESS)
 transactionIsOver checks wheather currently finished process is last in current transaction More...
 

Detailed Description

Definition at line 7 of file simpletransaction.h.

Constructor & Destructor Documentation

◆ simpleTransaction()

simpleTransaction::simpleTransaction ( )
inline

Definition at line 14 of file simpletransaction.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ transactionAdd()

void simpleTransaction::transactionAdd ( Enums::PROCESS  id)

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).

Parameters
idprocess that shall be treated as part of transaction

Definition at line 13 of file simpletransaction.cpp.

+ Here is the caller graph for this function:

◆ transactionEnd()

void simpleTransaction::transactionEnd ( Enums::PROCESS  pid)

transactionEnd marks end of transaction

Parameters
pidvalue that will be used as a result of transaction

Definition at line 22 of file simpletransaction.cpp.

+ Here is the caller graph for this function:

◆ transactionIsOver()

PROCESS simpleTransaction::transactionIsOver ( Enums::PROCESS  id)

transactionIsOver checks wheather currently finished process is last in current transaction

Returns
result of transaction as set by transactionAdd or transactionEnd if the transaction is over or PROCESS::INVALID if it's not yet over

Definition at line 33 of file simpletransaction.cpp.

+ Here is the caller graph for this function:

◆ transactionStart()

void simpleTransaction::transactionStart ( )

transactionStart this function is used to mark start of the sequence of processes that shall be treated as one operation.

Definition at line 8 of file simpletransaction.cpp.

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: