QtPass 1.6.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
simpletransaction.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2017 Anne Jan Brouwer
2// SPDX-License-Identifier: GPL-3.0-or-later
3#ifndef SRC_SIMPLETRANSACTION_H_
4#define SRC_SIMPLETRANSACTION_H_
5
6#include "enums.h"
7#include <queue>
8
10 int transactionDepth;
11 Enums::PROCESS lastInTransaction;
12 std::queue<std::pair<Enums::PROCESS, Enums::PROCESS>> transactionQueue;
13
14public:
16 : transactionDepth(0), lastInTransaction(Enums::INVALID) {}
17
22 void transactionStart();
47};
48
49#endif // SRC_SIMPLETRANSACTION_H_
auto transactionIsOver(Enums::PROCESS) -> Enums::PROCESS
transactionIsOver checks wheather currently finished process is last in current transaction
void transactionEnd(Enums::PROCESS)
transactionEnd marks end of transaction
void transactionAdd(Enums::PROCESS)
transactionAdd If called after call to transactionStart() and before transactionEnd(),...
void transactionStart()
transactionStart this function is used to mark start of the sequence of processes that shall be treat...
@ INVALID
Definition enums.h:43
Enumerators for QtPass configuration and runtime operations.
PROCESS
Identifies different subprocess operations used in QtPass.
Definition enums.h:26