-
Notifications
You must be signed in to change notification settings - Fork 1
/
device.h
43 lines (29 loc) · 789 Bytes
/
device.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef DEVICE_H
#define DEVICE_H
#include <string>
struct DevicePrivate;
class Device {
public:
Device();
std::string devpath();
void setDevpath(std::string);
std::string devnode();
void setDevnode(std::string);
std::string idProduct();
void setIdProduct(std::string);
std::string idVendor();
void setIdVendor(std::string);
std::string manufacturer();
void setManufacturer(std::string);
std::string product();
void setProduct(std::string);
std::string serial();
void setSerial(std::string);
std::string speed(); // WHAT IS THIS!? CHECK /SYS/USB/ files meaning
void setSpeed(std::string);
std::string version();
void setVersion(std::string);
private:
DevicePrivate *d_ptr;
};
#endif // DEVICE_H