summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/btree/qt/qbtreetxn.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/btree/qt/qbtreetxn.h')
-rw-r--r--src/3rdparty/btree/qt/qbtreetxn.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/3rdparty/btree/qt/qbtreetxn.h b/src/3rdparty/btree/qt/qbtreetxn.h
deleted file mode 100644
index f402307d..00000000
--- a/src/3rdparty/btree/qt/qbtreetxn.h
+++ /dev/null
@@ -1,43 +0,0 @@
-#ifndef QBTREETXN_H
-#define QBTREETXN_H
-
-#include "qbtreedata.h"
-
-class QBtree;
-struct btree_txn;
-
-class QBtreeTxn
-{
-public:
- bool get(const QByteArray &baKey, QByteArray *baValue) const;
- bool get(const char *key, int keySize, QBtreeData *value) const;
- bool get(const QBtreeData &key, QBtreeData *value) const;
- bool put(const QByteArray &baKey, const QByteArray &baValue);
- bool put(const char *key, int keySize, const char *value, int valueSize);
- bool put(const QBtreeData &baKey, const QBtreeData &baValue);
- bool remove(const QByteArray &baKey);
- bool remove(const QBtreeData &baKey);
- bool remove(const char *key, int keySize);
-
- bool commit(quint32 tag);
- void abort();
-
- quint32 tag() const;
-
- inline QBtree *btree() const { return mBtree; }
- inline btree_txn *handle() const { return mTxn; }
-
- bool isReadOnly() const;
- bool isReadWrite() const;
-
-private:
- QBtree *mBtree;
- btree_txn *mTxn;
-
- QBtreeTxn(QBtree *btree, btree_txn *txn);
- ~QBtreeTxn();
- QBtreeTxn(const QBtreeTxn &); // forbid copy constructor
- friend class QBtree;
-};
-
-#endif // QBTREETXN_H