-
Notifications
You must be signed in to change notification settings - Fork 0
/
USBEntry.h
39 lines (34 loc) · 1016 Bytes
/
USBEntry.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
#ifndef USBENTRY_H
#define USBENTRY_H
#include <QString>
#include <QStringList>
#include <QObject>
class KCModule;
class QCheckBox;
class USBEntry : public QObject {
public:
USBEntry(QString deviceNode);
~USBEntry();
void debug();
bool canWake();
QCheckBox *getCheckBox();
QString getUSBDevNumber();
bool isEnabled() {return enabled;};
void setSubEntries(QList<USBEntry *> *subEntries) { usbEntries = subEntries; };
bool isHub() { return devClass == "09"? true : false; };
QWidget *getUSBNodes(KCModule *parent);
QStringList changedUSBEntries(bool enabled);
QString getUSBDevID() { return devID; }
private:
QString readUSBDeviceInfo(QString info);
QString product;
QString manufacturer;
QString sysfsNode;
QString devClass;
QCheckBox *checkBox;
QString devNumber;
QString devID;
bool enabled;
QList<USBEntry *> *usbEntries;
};
#endif