4.3.0r13
[enigma2.git] / usr / lib / enigma2 / python / Plugins / Extensions / SocketMMI / socketmmi.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 2.0.10
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6
7
8
9 from sys import version_info
10 if version_info >= (3,0,0):
11     new_instancemethod = lambda func, inst, cls: _socketmmi.SWIG_PyInstanceMethod_New(func)
12 else:
13     from new import instancemethod as new_instancemethod
14 if version_info >= (2,6,0):
15     def swig_import_helper():
16         from os.path import dirname
17         import imp
18         fp = None
19         try:
20             fp, pathname, description = imp.find_module('_socketmmi', [dirname(__file__)])
21         except ImportError:
22             import _socketmmi
23             return _socketmmi
24         if fp is not None:
25             try:
26                 _mod = imp.load_module('_socketmmi', fp, pathname, description)
27             finally:
28                 fp.close()
29             return _mod
30     _socketmmi = swig_import_helper()
31     del swig_import_helper
32 else:
33     import _socketmmi
34 del version_info
35 try:
36     _swig_property = property
37 except NameError:
38     pass # Python < 2.2 doesn't have 'property'.
39 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
40     if (name == "thisown"): return self.this.own(value)
41     if (name == "this"):
42         if type(value).__name__ == 'SwigPyObject':
43             self.__dict__[name] = value
44             return
45     method = class_type.__swig_setmethods__.get(name,None)
46     if method: return method(self,value)
47     if (not static):
48         self.__dict__[name] = value
49     else:
50         raise AttributeError("You cannot add attributes to %s" % self)
51
52 def _swig_setattr(self,class_type,name,value):
53     return _swig_setattr_nondynamic(self,class_type,name,value,0)
54
55 def _swig_getattr(self,class_type,name):
56     if (name == "thisown"): return self.this.own()
57     method = class_type.__swig_getmethods__.get(name,None)
58     if method: return method(self)
59     raise AttributeError(name)
60
61 def _swig_repr(self):
62     try: strthis = "proxy of " + self.this.__repr__()
63     except: strthis = ""
64     return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
65
66 try:
67     _object = object
68     _newclass = 1
69 except AttributeError:
70     class _object : pass
71     _newclass = 0
72
73
74 def _swig_setattr_nondynamic_method(set):
75     def set_attr(self,name,value):
76         if (name == "thisown"): return self.this.own(value)
77         if hasattr(self,name) or (name == "this"):
78             set(self,name,value)
79         else:
80             raise AttributeError("You cannot add attributes to %s" % self)
81     return set_attr
82
83
84 try:
85     import weakref
86     weakref_proxy = weakref.proxy
87 except:
88     weakref_proxy = lambda x: x
89
90
91 import enigma
92 class eSocket_UI(enigma.eMMI_UI):
93     thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
94     def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
95     __repr__ = _swig_repr
96     socketStateChanged = _swig_property(_socketmmi.eSocket_UI_socketStateChanged_get, _socketmmi.eSocket_UI_socketStateChanged_set)
97     getInstance = staticmethod(_socketmmi.eSocket_UI_getInstance)
98 eSocket_UI.setInit = new_instancemethod(_socketmmi.eSocket_UI_setInit,None,eSocket_UI)
99 eSocket_UI.setReset = new_instancemethod(_socketmmi.eSocket_UI_setReset,None,eSocket_UI)
100 eSocket_UI.startMMI = new_instancemethod(_socketmmi.eSocket_UI_startMMI,None,eSocket_UI)
101 eSocket_UI.stopMMI = new_instancemethod(_socketmmi.eSocket_UI_stopMMI,None,eSocket_UI)
102 eSocket_UI.answerMenu = new_instancemethod(_socketmmi.eSocket_UI_answerMenu,None,eSocket_UI)
103 eSocket_UI.answerEnq = new_instancemethod(_socketmmi.eSocket_UI_answerEnq,None,eSocket_UI)
104 eSocket_UI.cancelEnq = new_instancemethod(_socketmmi.eSocket_UI_cancelEnq,None,eSocket_UI)
105 eSocket_UI.getState = new_instancemethod(_socketmmi.eSocket_UI_getState,None,eSocket_UI)
106 eSocket_UI.getMMIState = new_instancemethod(_socketmmi.eSocket_UI_getMMIState,None,eSocket_UI)
107 eSocket_UI.numConnections = new_instancemethod(_socketmmi.eSocket_UI_numConnections,None,eSocket_UI)
108 eSocket_UI.getName = new_instancemethod(_socketmmi.eSocket_UI_getName,None,eSocket_UI)
109 eSocket_UI_swigregister = _socketmmi.eSocket_UI_swigregister
110 eSocket_UI_swigregister(eSocket_UI)
111
112 def eSocket_UI_getInstance():
113   return _socketmmi.eSocket_UI_getInstance()
114 eSocket_UI_getInstance = _socketmmi.eSocket_UI_getInstance
115
116
117