blob: edbeb89a661b8efbecfec204b173d9bd7543a598 (
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( NetworkSetup *, Action_t , bool ) {
return QString();
}
QString CableRun::deviceFile( void ) {
return Data->Device;
}
|