QtPass  1.3.3
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  int transactionDepth;
9  Enums::PROCESS lastInTransaction;
10  std::queue<std::pair<Enums::PROCESS, Enums::PROCESS>> transactionQueue;
11 
12 public:
14  : transactionDepth(0), lastInTransaction(Enums::INVALID) {}
20  void transactionStart();
45 };
46 
47 #endif // SIMPLETRANSACTION_H
simpleTransaction
Definition: simpletransaction.h:7
simpleTransaction::transactionIsOver
Enums::PROCESS transactionIsOver(Enums::PROCESS)
transactionIsOver checks wheather currently finished process is last in current transaction
Definition: simpletransaction.cpp:58
Enums::PROCESS
PROCESS
Definition: enums.h:16
Enums::INVALID
@ INVALID
Definition: enums.h:33
simpleTransaction::transactionStart
void transactionStart()
transactionStart this function is used to mark start of the sequence of processes that shall be treat...
Definition: simpletransaction.cpp:14
Enums
Enumerators for configuration and runtime items.
simpleTransaction::simpleTransaction
simpleTransaction()
Definition: simpletransaction.h:13
enums.h
simpleTransaction::transactionEnd
void transactionEnd(Enums::PROCESS)
transactionEnd marks end of transaction
Definition: simpletransaction.cpp:40
simpleTransaction::transactionAdd
void transactionAdd(Enums::PROCESS)
transactionAdd If called after call to transactionStart() and before transactionEnd(),...
Definition: simpletransaction.cpp:25