diff options
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() |