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

Detailed Description

Definition at line 9 of file simpletransaction.h.

Constructor & Destructor Documentation

◆ simpleTransaction()

simpleTransaction::simpleTransaction ( )
inline

Definition at line 15 of file simpletransaction.h.

Here is the caller 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).

If called after transactionStart() and before transactionEnd(), this marks the given process as the next step in the transaction. Otherwise it marks the process as the only step in the transaction.

Parameters
idprocess that shall be treated as part of transaction
idProcess that shall be treated as part of the transaction
Examples
/home/annejan/Projects/QtPass/src/imitatepass.cpp.

Definition at line 30 of file simpletransaction.cpp.

Here is the caller graph for this function:

◆ transactionEnd()

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

transactionEnd marks end of transaction

Marks the end of the current transaction.

Parameters
pidvalue that will be used as a result of transaction
pidValue that will be used as the result of the transaction

Definition at line 45 of file simpletransaction.cpp.

◆ transactionIsOver()

auto simpleTransaction::transactionIsOver ( Enums::PROCESS ) -> Enums::PROCESS

transactionIsOver checks wheather currently finished process is last in current transaction

Checks whether the 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
Parameters
idThe process id to check
Returns
Result of transaction as set by transactionAdd or transactionEnd, or PROCESS::INVALID if the transaction is not yet over
Examples
/home/annejan/Projects/QtPass/src/imitatepass.cpp.

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

Marks the start of a sequence of processes that shall be treated as one operation.

Definition at line 17 of file simpletransaction.cpp.


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