QtPass 1.4.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
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.
 
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).
 
void transactionEnd (Enums::PROCESS)
 transactionEnd marks end of transaction
 
Enums::PROCESS transactionIsOver (Enums::PROCESS)
 transactionIsOver checks wheather currently finished process is last in current transaction
 

Detailed Description

Definition at line 7 of file simpletransaction.h.

Constructor & Destructor Documentation

◆ simpleTransaction()

simpleTransaction::simpleTransaction ( )
inline

Definition at line 13 of file simpletransaction.h.

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

simpleTransaction::transactionAdd

Parameters
idprocess that shall be treated as part of transaction
id

Definition at line 25 of file simpletransaction.cpp.

+ Here is the caller graph for this function:

◆ transactionEnd()

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

transactionEnd marks end of transaction

simpleTransaction::transactionEnd

Parameters
pidvalue that will be used as a result of transaction
pid

Definition at line 40 of file simpletransaction.cpp.

◆ transactionIsOver()

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

transactionIsOver checks wheather currently finished process is last in current transaction

simpleTransaction::transactionIsOver

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

Definition at line 58 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.

simpleTransaction::transactionStart

Definition at line 14 of file simpletransaction.cpp.


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