QtPass  1.2.0-pre
Multi-platform GUI for pass, the standard unix password manager.
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 
9  int transactionDepth;
10  Enums::PROCESS lastInTransaction;
11  std::queue<std::pair<Enums::PROCESS, Enums::PROCESS>> transactionQueue;
12 
13 public:
15  : transactionDepth(0), lastInTransaction(Enums::INVALID) {}
21  void transactionStart();
46 };
47 
48 #endif // SIMPLETRANSACTION_H
Enums::PROCESS transactionIsOver(Enums::PROCESS)
transactionIsOver checks wheather currently finished process is last in current transaction ...
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&#39;s value is treated as transaction result).
PROCESS
Definition: enums.h:16
Enumerators for configuration and runtime items.
void transactionStart()
transactionStart this function is used to mark start of the sequence of processes that shall be treat...
void transactionEnd(Enums::PROCESS)
transactionEnd marks end of transaction