QtPass 1.4.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#ifndef SIMPLETRANSACTION_H
2#define SIMPLETRANSACTION_H
3
4#include "enums.h"
5#include <queue>
6
8 int transactionDepth;
9 Enums::PROCESS lastInTransaction;
10 std::queue<std::pair<Enums::PROCESS, Enums::PROCESS>> transactionQueue;
11
12public:
14 : transactionDepth(0), lastInTransaction(Enums::INVALID) {}
20 void transactionStart();
45};
46
47#endif // SIMPLETRANSACTION_H
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...
Enums::PROCESS transactionIsOver(Enums::PROCESS)
transactionIsOver checks wheather currently finished process is last in current transaction
Enumerators for configuration and runtime items.
PROCESS
Definition: enums.h:16