QtPass 1.5.1
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: 2016 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) {}
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...
Enumerators for configuration and runtime items.
PROCESS
Definition enums.h:18