summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehardwaredevices.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-04-06 02:39:07 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-04-06 02:39:07 -0500
commit63c292c62f959fd5e9349e3e9413eae01ec6efef (patch)
tree7d894948d575121f9c5df8f417592fd700e21aab /tdecore/tdehardwaredevices.cpp
parent56591939771fdbfc0d4a2c9d79bbed454cc648a0 (diff)
downloadtdelibs-63c292c62f959fd5e9349e3e9413eae01ec6efef.tar.gz
tdelibs-63c292c62f959fd5e9349e3e9413eae01ec6efef.zip
Add a couple of convenience functions to the TDE hw lib
Diffstat (limited to 'tdecore/tdehardwaredevices.cpp')
-rw-r--r--tdecore/tdehardwaredevices.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tdecore/tdehardwaredevices.cpp b/tdecore/tdehardwaredevices.cpp
index 8f33e1480..e95030983 100644
--- a/tdecore/tdehardwaredevices.cpp
+++ b/tdecore/tdehardwaredevices.cpp
@@ -199,6 +199,17 @@ void TDEGenericDevice::setBlacklistedForUpdate(bool bl) {
m_blacklistedForUpdate = bl;
}
+TQString TDEGenericDevice::friendlyDeviceType() {
+ return KGlobal::hardwareDevices()->getFriendlyDeviceTypeStringFromType(type());
+}
+
+TQString TDEGenericDevice::busID() {
+ TQString busid = m_systemPath;
+ busid = busid.remove(0, busid.findRev("/")+1);
+ busid = busid.remove(0, busid.find(":")+1);
+ return busid;
+}
+
TQString TDEGenericDevice::friendlyName() {
if (m_friendlyName.isNull()) {
if (type() == TDEGenericDeviceType::Root) {