Ńň +z2Wc@s¸dZddklZlZddklZddklZddkl Z l Z ddk l Z dadadad„Zdefd „ƒYZd „Zd „Zd „Zd ZdS(sModem Interface Plugini˙˙˙˙(tDevicet ConfDevice(tgetDeviceFactory(t ModemDialup(tMODEMt getDeviceType(tgdtstruct_propertiescCstotSgatS(N(t ModemList(((sG/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevModem.pyt getModemLists tDevModemcBsfeZededfgƒd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z RS( tDialupsTest doc stringcCs,tt|ƒiƒt|_tƒ|_dS(N(tsuperR t__init__RtTypeRR (tself((sG/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevModem.pyR 9s cCs3t|ƒ}ti||ƒ|ii||ƒdS(sB load(devicename) load a modem definition N(RRtloadR (Rtnametconf((sG/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevModem.pyR>s cCsLtt|ƒiƒt|iƒ}|ii||i|iƒ|iƒdS(N(R R tsaveRtDeviceIdR toldnametwrite(RR((sG/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevModem.pyRGscCs;|idjpt|itƒ otƒ|_n|iS(s? create a ModemDialup instance for self.Dialup N(R tNonet isinstanceR(R((sG/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevModem.pyt createDialupMscCs1t|ƒ}t|dƒo|iidƒS|S(s& returns a gtk dialog txmltDialog(t_devModemDialogthasattrRt get_widget(Rtdialog((sG/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevModem.pyt getDialogVs cCstS(s& returns a gtk wizard (t_devModemWizard(R((sG/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevModem.pyt getWizard`scCs4|itjotSt|iƒtjotStS(s2 check if device is of type MODEM (R RtTrueRRtFalse(Rtdevice((sG/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevModem.pytisTypefs cCs|io |iiSdS(sC get the Hardware Device this Interface belongs to N(R tInheritsR(R((sG/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevModem.pyt getHWDeviceps  ( t__name__t __module__RRR RRRRR!R%R'(((sG/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevModem.pyR 4s    cCs |adS(s" Set the gtk Modem Dialog N(R(R((sG/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevModem.pytsetDevModemDialogyscCs |adS(s" Set the gtk Modem Wizard N(R (twizard((sG/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevModem.pytsetDevModemWizard€scCstƒ}|ittƒdS(N(RtregisterR R(t__df((sG/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevModem.pytregister_plugin‡s s Harald Hoyer N(t__doc__tnetconfpkg.NCDeviceRRtnetconfpkg.NCDeviceFactoryRtnetconfpkg.NCDialupRtnetconfpkg.NC_functionsRRtnetconfpkg.gdtRRRR RRR R*R,R/t __author__(((sG/usr/share/system-config-network/netconfpkg/plugins/NCPluginDevModem.pyts E