Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F36622940
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
View Options
diff --git a/src/simpletransaction.h b/src/simpletransaction.h
index c61a241..8567edc 100644
--- a/src/simpletransaction.h
+++ b/src/simpletransaction.h
@@ -1,48 +1,48 @@
#ifndef SIMPLETRANSACTION_H
#define SIMPLETRANSACTION_H
#include "enums.h"
#include <queue>
class simpleTransaction {
int transactionDepth;
Enums::PROCESS lastInTransaction;
- std::queue<std::pair<Enums::PROCESS, Enums::PROCESS>> transactionQueue;
+ std::queue<std::pair<Enums::PROCESS, Enums::PROCESS> > transactionQueue;
public:
simpleTransaction()
: transactionDepth(0), lastInTransaction(Enums::INVALID) {}
/**
* @brief transactionStart this function is used to mark start of the sequence
* of processes that shall be treated as one
* operation.
*/
void transactionStart();
/**
* @brief 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's value is
* treated as transaction result).
*
* @param id process that shall be treated as part of transaction
*/
void transactionAdd(Enums::PROCESS);
/**
* @brief transactionEnd marks end of transaction
*
* @param pid value that will be used as a result of transaction
*/
void transactionEnd(Enums::PROCESS);
/**
* @brief transactionIsOver checks wheather currently finished process is last
* in current transaction
*
* @return result of transaction as set by transactionAdd or transactionEnd if
* the transaction is over or PROCESS::INVALID if it's not yet over
*/
Enums::PROCESS transactionIsOver(Enums::PROCESS);
};
#endif // SIMPLETRANSACTION_H
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Feb 26, 6:27 PM (33 m, 54 s)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fd/d5/a8a3a0bcb37b0e2aad39e348f11f
Attached To
rGPGPASS GnuPG Password Manager
Event Timeline
Log In to Comment