summaryrefslogtreecommitdiff
path: root/src/ttylocker_unix_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ttylocker_unix_p.h')
-rw-r--r--src/ttylocker_unix_p.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/ttylocker_unix_p.h b/src/ttylocker_unix_p.h
new file mode 100644
index 0000000..1c2a0cc
--- /dev/null
+++ b/src/ttylocker_unix_p.h
@@ -0,0 +1,22 @@
+/*
+ License...
+*/
+
+#ifndef TTYLOCKER_UNIX_P_H
+#define TTYLOCKER_UNIX_P_H
+
+#include "serialport-global.h"
+
+QT_BEGIN_NAMESPACE_SERIALPORT
+
+class TTYLocker
+{
+public:
+ static bool lock(const QString &location);
+ static bool unlock(const QString &location);
+ static bool isLocked(const QString &location, bool *currentPid);
+};
+
+QT_END_NAMESPACE_SERIALPORT
+
+#endif // TTYLOCKER_UNIX_P_H