diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-04-05 21:59:04 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-04-05 21:59:04 -0500 |
commit | 56591939771fdbfc0d4a2c9d79bbed454cc648a0 (patch) | |
tree | 1c019a4711df97c5be6f80a5ecdb521aaeb9d2a5 /tdecore/tdehardwaredevices.h | |
parent | beff973e2e273ef576ba848d5b0bb7b575ce342e (diff) | |
download | tdelibs-56591939771fdbfc0d4a2c9d79bbed454cc648a0.tar.gz tdelibs-56591939771fdbfc0d4a2c9d79bbed454cc648a0.zip |
Classify devices based on PCI class if possible
Lots of bugfixes
Diffstat (limited to 'tdecore/tdehardwaredevices.h')
-rw-r--r-- | tdecore/tdehardwaredevices.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/tdecore/tdehardwaredevices.h b/tdecore/tdehardwaredevices.h index ee47c655a..96ce7a995 100644 --- a/tdecore/tdehardwaredevices.h +++ b/tdecore/tdehardwaredevices.h @@ -69,6 +69,7 @@ enum TDEGenericDeviceType { Peripheral, Battery, Power, + Dock, ThermalSensor, ThermalControl, Bridge, @@ -221,7 +222,7 @@ class TDECORE_EXPORT TDEGenericDevice * While TDE tries very hard to generate and return a friendly name for this device, * sometimes the best it will be able to do is "Unknown Device [xxxx:yyyy]" */ - TQString friendlyName(); + virtual TQString friendlyName(); /** * @return a TQString with the device bus name, if any @@ -317,6 +318,16 @@ class TDECORE_EXPORT TDEGenericDevice void setSubModelID(TQString id); /** + * @return a TQString with the PCI device class, if any + */ + TQString &PCIClass(); + + /** + * @param a TQString with the PCI device class, if any + */ + void setPCIClass(TQString cl); + + /** * @return a TQString with the module alias string, if any */ TQString &moduleAlias(); @@ -376,6 +387,7 @@ class TDECORE_EXPORT TDEGenericDevice TQString m_modelID; TQString m_subvendorID; TQString m_submodelID; + TQString m_pciClass; TQString m_modAlias; TQString m_deviceDriver; TQString m_subsystem; @@ -554,6 +566,22 @@ class TDECORE_EXPORT TDEStorageDevice : public TDEGenericDevice */ TQString deviceFriendlySize(); + /** + * Get an icon for this device + * @param size a KIcon::StdSizes structure specifying the desired icon size + * @return a TQPixmap containing the icon for the specified type + * + * This method overrides TDEGenericDevice::icon(KIcon::StdSizes size) + */ + TQPixmap icon(KIcon::StdSizes size); + + /** + * @return a TQString with a friendly name + * + * This method overrides TDEGenericDevice::friendlyName() + */ + TQString friendlyName(); + private: TDEDiskDeviceType::TDEDiskDeviceType m_diskType; TDEDiskDeviceStatus::TDEDiskDeviceStatus m_diskStatus; |