1
# -*- coding: utf-8 -*-
2
# Copyright (C) 2010 Vodafone España, S.A.
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 2 of the License, or
8
# (at your option) any later version.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License along
16
# with this program; if not, write to the Free Software Foundation, Inc.,
17
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
from wader.common.hardware.option import (OptionHSOWCDMADevicePlugin,
20
OptionHSOWCDMACustomizer,
24
class OptionGI0335Wrapper(OptionHSOWrapper):
26
def find_contacts(self, pattern):
27
d = self.list_contacts()
28
d.addCallback(lambda contacts:
30
if c.name.lower().startswith(pattern.lower())])
34
class OptionGI0335Customizer(OptionHSOWCDMACustomizer):
35
wrapper_klass = OptionGI0335Wrapper
38
class OptionGI0335(OptionHSOWCDMADevicePlugin):
39
""":class:`wader.common.plugin.DevicePlugin` for Options's GI0335"""
40
name = "Option GI0335"
42
author = u"Andrew Bird"
43
custom = OptionGI0335Customizer()
45
__remote_name__ = "GlobeTrotter HSPA Modem"
48
'ID_VENDOR_ID': [0xaf0],
49
'ID_MODEL_ID': [0x8300],
52
option_gi0335 = OptionGI0335()