summaryrefslogtreecommitdiff
path: root/src/ttylocker_unix_p.h
blob: 1c2a0cc04dc9fe7491064d8ce01904bb49fdad5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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