aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mux_qt/mux_qt.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mux_qt/mux_qt.h')
-rw-r--r--modules/mux_qt/mux_qt.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/mux_qt/mux_qt.h b/modules/mux_qt/mux_qt.h
new file mode 100644
index 000000000..1535b3d36
--- /dev/null
+++ b/modules/mux_qt/mux_qt.h
@@ -0,0 +1,31 @@
+/*************************************************
+* Qt Thread Mutex Header File *
+* (C) 1999-2006 The Botan Project *
+*************************************************/
+
+#ifndef BOTAN_EXT_MUTEX_QT_H__
+#define BOTAN_EXT_MUTEX_QT_H__
+
+#include <botan/mutex.h>
+
+namespace Botan {
+
+/*************************************************
+* Qt Mutex *
+*************************************************/
+class Qt_Mutex : public Mutex
+ {
+ public:
+ void lock();
+ void unlock();
+ Mutex* clone() const { return new Qt_Mutex; }
+
+ Qt_Mutex();
+ ~Qt_Mutex();
+ private:
+ struct mutex_wrapper* mutex;
+ };
+
+}
+
+#endif