diff --git a/src/apps/devices/Device.cpp b/src/apps/devices/Device.cpp index 5a5ef9279f..fc1bab570f 100644 --- a/src/apps/devices/Device.cpp +++ b/src/apps/devices/Device.cpp @@ -73,6 +73,34 @@ Device::~Device() } +BString +Device::GetName() +{ + return fAttributeMap[B_TRANSLATE("Device name")]; +} + + +BString +Device::GetManufacturer() +{ + return fAttributeMap[B_TRANSLATE("Manufacturer")]; +} + + +BString +Device::GetDriverUsed() +{ + return fAttributeMap[B_TRANSLATE("Driver used")]; +} + + +BString +Device::GetDevPathsPublished() +{ + return fAttributeMap[B_TRANSLATE("Device paths")]; +} + + void Device::SetAttribute(const BString& name, const BString& value) { diff --git a/src/apps/devices/Device.h b/src/apps/devices/Device.h index 5b1dc0ef68..caf36db3d3 100644 --- a/src/apps/devices/Device.h +++ b/src/apps/devices/Device.h @@ -81,14 +81,10 @@ public: const BString& devPathsPublished = "unknown"); virtual ~Device(); - virtual BString GetName() - { return fAttributeMap["Device name"]; } - virtual BString GetManufacturer() - { return fAttributeMap["Manufacturer"]; } - virtual BString GetDriverUsed() - { return fAttributeMap["Driver used"]; } - virtual BString GetDevPathsPublished() - { return fAttributeMap["Device paths"]; } + virtual BString GetName(); + virtual BString GetManufacturer(); + virtual BString GetDriverUsed(); + virtual BString GetDevPathsPublished(); virtual Category GetCategory() const { return fCategory; } virtual Device* GetPhysicalParent() const