|
|
@ -1402,6 +1402,9 @@ TDEGenericDeviceType::TDEGenericDeviceType readGenericDeviceTypeFromString(TQStr
|
|
|
|
else if (query == "TestAndMeasurement") {
|
|
|
|
else if (query == "TestAndMeasurement") {
|
|
|
|
ret = TDEGenericDeviceType::TestAndMeasurement;
|
|
|
|
ret = TDEGenericDeviceType::TestAndMeasurement;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (query == "Timekeeping") {
|
|
|
|
|
|
|
|
ret = TDEGenericDeviceType::Timekeeping;
|
|
|
|
|
|
|
|
}
|
|
|
|
else if (query == "Event") {
|
|
|
|
else if (query == "Event") {
|
|
|
|
ret = TDEGenericDeviceType::Event;
|
|
|
|
ret = TDEGenericDeviceType::Event;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2043,9 +2046,13 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ((devicetypestring == "audio")
|
|
|
|
if ((devicetypestring == "audio")
|
|
|
|
|| (devicesubsystem == "sound")
|
|
|
|
|| (devicesubsystem == "sound")
|
|
|
|
|
|
|
|
|| (devicesubsystem == "hdaudio")
|
|
|
|
|| (devicesubsystem == "ac97")) {
|
|
|
|
|| (devicesubsystem == "ac97")) {
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Sound);
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Sound);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (devicesubsystem == "container") {
|
|
|
|
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::OtherACPI);
|
|
|
|
|
|
|
|
}
|
|
|
|
if ((devicesubsystem == "video4linux")
|
|
|
|
if ((devicesubsystem == "video4linux")
|
|
|
|
|| (devicesubsystem == "dvb")) {
|
|
|
|
|| (devicesubsystem == "dvb")) {
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::VideoCapture);
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::VideoCapture);
|
|
|
@ -2089,10 +2096,19 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD
|
|
|
|
|| (devicesubsystem == "amba")) {
|
|
|
|
|| (devicesubsystem == "amba")) {
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform);
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (devicesubsystem == "edac") {
|
|
|
|
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::RAM);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (devicesubsystem.startsWith("mc") && systempath.contains("/edac/")) {
|
|
|
|
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::RAM);
|
|
|
|
|
|
|
|
}
|
|
|
|
if ((devicesubsystem == "ipmi")
|
|
|
|
if ((devicesubsystem == "ipmi")
|
|
|
|
|| (devicesubsystem == "ipmi_si")) {
|
|
|
|
|| (devicesubsystem == "ipmi_si")) {
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Mainboard);
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Mainboard);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (devicesubsystem == "iommu") {
|
|
|
|
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform);
|
|
|
|
|
|
|
|
}
|
|
|
|
if (devicesubsystem == "misc") {
|
|
|
|
if (devicesubsystem == "misc") {
|
|
|
|
if (devicedriver.startsWith("tpm_")) {
|
|
|
|
if (devicedriver.startsWith("tpm_")) {
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Cryptography);
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Cryptography);
|
|
|
@ -2101,6 +2117,15 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform);
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (devicesubsystem == "media") {
|
|
|
|
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (devicesubsystem == "nd") {
|
|
|
|
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::RAM);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (devicesubsystem == "ptp") {
|
|
|
|
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Timekeeping);
|
|
|
|
|
|
|
|
}
|
|
|
|
if (devicesubsystem == "leds") {
|
|
|
|
if (devicesubsystem == "leds") {
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::OtherACPI);
|
|
|
|
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::OtherACPI);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -4116,6 +4141,9 @@ TQString TDEHardwareDevices::getFriendlyDeviceTypeStringFromType(TDEGenericDevic
|
|
|
|
else if (query == TDEGenericDeviceType::TestAndMeasurement) {
|
|
|
|
else if (query == TDEGenericDeviceType::TestAndMeasurement) {
|
|
|
|
ret = i18n("Test and Measurement");
|
|
|
|
ret = i18n("Test and Measurement");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (query == TDEGenericDeviceType::Timekeeping) {
|
|
|
|
|
|
|
|
ret = i18n("Timekeeping");
|
|
|
|
|
|
|
|
}
|
|
|
|
else if (query == TDEGenericDeviceType::Event) {
|
|
|
|
else if (query == TDEGenericDeviceType::Event) {
|
|
|
|
ret = i18n("Platform Event");
|
|
|
|
ret = i18n("Platform Event");
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -4283,6 +4311,9 @@ TQPixmap TDEHardwareDevices::getDeviceTypeIconFromType(TDEGenericDeviceType::TDE
|
|
|
|
else if (query == TDEGenericDeviceType::TestAndMeasurement) {
|
|
|
|
else if (query == TDEGenericDeviceType::TestAndMeasurement) {
|
|
|
|
ret = DesktopIcon("kcmdevices", size);
|
|
|
|
ret = DesktopIcon("kcmdevices", size);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (query == TDEGenericDeviceType::Timekeeping) {
|
|
|
|
|
|
|
|
ret = DesktopIcon("history", size);
|
|
|
|
|
|
|
|
}
|
|
|
|
else if (query == TDEGenericDeviceType::Event) {
|
|
|
|
else if (query == TDEGenericDeviceType::Event) {
|
|
|
|
ret = DesktopIcon("preferences-system", size);
|
|
|
|
ret = DesktopIcon("preferences-system", size);
|
|
|
|
}
|
|
|
|
}
|
|
|
|