1 # This file was automatically generated by SWIG (http://www.swig.org).
4 # Don't modify this file, modify the SWIG interface instead.
8 new_instancemethod
= new
.instancemethod
10 _swig_property
= property
12 pass # Python < 2.2 doesn't have 'property'.
13 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
14 if (name
== "thisown"): return self
.this
.own(value
)
16 if type(value
).__name
__ == 'PySwigObject':
17 self
.__dict
__[name
] = value
19 method
= class_type
.__swig
_setmethods
__.get(name
,None)
20 if method
: return method(self
,value
)
21 if (not static
) or hasattr(self
,name
):
22 self
.__dict
__[name
] = value
24 raise AttributeError("You cannot add attributes to %s" % self
)
26 def _swig_setattr(self
,class_type
,name
,value
):
27 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
29 def _swig_getattr(self
,class_type
,name
):
30 if (name
== "thisown"): return self
.this
.own()
31 method
= class_type
.__swig
_getmethods
__.get(name
,None)
32 if method
: return method(self
)
33 raise AttributeError,name
36 try: strthis
= "proxy of " + self
.this
.__repr
__()
38 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
42 _object
= types
.ObjectType
44 except AttributeError:
50 def _swig_setattr_nondynamic_method(set):
51 def set_attr(self
,name
,value
):
52 if (name
== "thisown"): return self
.this
.own(value
)
53 if hasattr(self
,name
) or (name
== "this"):
56 raise AttributeError("You cannot add attributes to %s" % self
)
60 WBEM_ConnectServer
= _wmi
.WBEM_ConnectServer
61 class IUnknown(object):
62 thisown
= _swig_property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
64 def __init__(self
, *args
, **kwargs
):
65 _wmi
.IUnknown_swiginit(self
,_wmi
.new_IUnknown(*args
, **kwargs
))
66 __swig_destroy__
= _wmi
.delete_IUnknown
67 IUnknown
.Release
= new_instancemethod(_wmi
.IUnknown_Release
,None,IUnknown
)
68 IUnknown_swigregister
= _wmi
.IUnknown_swigregister
69 IUnknown_swigregister(IUnknown
)
71 class IWbemServices(object):
72 thisown
= _swig_property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
74 def __init__(self
, *args
, **kwargs
):
75 _wmi
.IWbemServices_swiginit(self
,_wmi
.new_IWbemServices(*args
, **kwargs
))
76 __swig_destroy__
= _wmi
.delete_IWbemServices
77 IWbemServices
.ExecQuery
= new_instancemethod(_wmi
.IWbemServices_ExecQuery
,None,IWbemServices
)
78 IWbemServices
.ExecNotificationQuery
= new_instancemethod(_wmi
.IWbemServices_ExecNotificationQuery
,None,IWbemServices
)
79 IWbemServices
.CreateInstanceEnum
= new_instancemethod(_wmi
.IWbemServices_CreateInstanceEnum
,None,IWbemServices
)
80 IWbemServices_swigregister
= _wmi
.IWbemServices_swigregister
81 IWbemServices_swigregister(IWbemServices
)
83 class IEnumWbemClassObject(object):
84 thisown
= _swig_property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
86 def __init__(self
, *args
, **kwargs
):
87 _wmi
.IEnumWbemClassObject_swiginit(self
,_wmi
.new_IEnumWbemClassObject(*args
, **kwargs
))
88 __swig_destroy__
= _wmi
.delete_IEnumWbemClassObject
89 IEnumWbemClassObject
.Reset
= new_instancemethod(_wmi
.IEnumWbemClassObject_Reset
,None,IEnumWbemClassObject
)
90 IEnumWbemClassObject_swigregister
= _wmi
.IEnumWbemClassObject_swigregister
91 IEnumWbemClassObject_swigregister(IEnumWbemClassObject
)
93 IEnumWbemClassObject_SmartNext
= _wmi
.IEnumWbemClassObject_SmartNext