From 6668f4d0d3e3aa8ba5eca58dbcc34f5b8f5b3876 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sun, 10 Apr 2011 14:54:34 +0000 Subject: h-client: added the devices icons --- h-client/hlibrary.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'h-client/hlibrary.py') diff --git a/h-client/hlibrary.py b/h-client/hlibrary.py index 969239c..c3ade68 100644 --- a/h-client/hlibrary.py +++ b/h-client/hlibrary.py @@ -105,6 +105,7 @@ class Device(object): self._howItWorks = '' self._driver = '' self._description = '' + self._icon = 'unknown.png' def setPost(self): self._post['model'] = self._model; @@ -215,6 +216,9 @@ class Device(object): def getDescription(self): return self._description + def getIcon(self): + return self._icon + def setType(self,ttype): self._type = ttype @@ -265,6 +269,7 @@ class Videocard(Device): self._howItWorks = 'does_not_work' self._interfaces = ['not-specified','PCI','AGP','PCI-E','ISA','MCA','VLB'] self._howItWorksOptions = ['works_with_3D','works_without_3D','does_not_work'] + self._icon = 'videocard.png' def setPost(self): super(Videocard, self).setPost() @@ -277,6 +282,7 @@ class Wifi(Device): self._type = 'wifi' self._howItWorks = 'no' self._interfaces = ['not-specified','USB','PCI','PCI-E','mini-PCI','mini-PCI-E','ExpressCard','PC-Card'] + self._icon = 'wifi.png' def setPost(self): super(Wifi, self).setPost() @@ -289,6 +295,7 @@ class Soundcard(Device): self._type = 'soundcard' self._howItWorks = 'no' self._interfaces = ['not-specified','PCI','ISA','USB','Firewire','Parallel','PCI-E','PCMCIA'] + self._icon = 'soundcard.png' def setPost(self): super(Soundcard, self).setPost() -- cgit v1.2.3