diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-04-10 14:54:34 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-04-10 14:54:34 +0000 |
commit | 6668f4d0d3e3aa8ba5eca58dbcc34f5b8f5b3876 (patch) | |
tree | ac7308a521e0e7e27171e47dd2391a14e28d21b3 /h-client/hlibrary.py | |
parent | 9e15571f690ae74d9e74f6901f42642a8bb145fd (diff) |
h-client: added the devices icons
Diffstat (limited to 'h-client/hlibrary.py')
-rw-r--r-- | h-client/hlibrary.py | 7 |
1 files changed, 7 insertions, 0 deletions
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() |