blob: 7a8deb9cecaa4fdc63e8585b0a37098fd3f599ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <fcntl.h>
#include <unistd.h>
#include "cablerun.h"
State_t CableRun::detectState( void ) {
int fd = open( Data->Device.latin1(), O_RDWR );
if( fd < 0 ) {
return Unavailable;
}
close( fd );
return Available;
}
QString CableRun::setMyState( NodeCollection *, Action_t , bool ) {
return QString();
}
QString CableRun::deviceFile( void ) {
return Data->Device;
}
|