Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 from sys import version_info
00010 if version_info >= (2,6,0):
00011 def swig_import_helper():
00012 from os.path import dirname
00013 import imp
00014 fp = None
00015 try:
00016 fp, pathname, description = imp.find_module('_dbus', [dirname(__file__)])
00017 except ImportError:
00018 import _dbus
00019 return _dbus
00020 if fp is not None:
00021 try:
00022 _mod = imp.load_module('_dbus', fp, pathname, description)
00023 finally:
00024 fp.close()
00025 return _mod
00026 _dbus = swig_import_helper()
00027 del swig_import_helper
00028 else:
00029 import _dbus
00030 del version_info
00031 try:
00032 _swig_property = property
00033 except NameError:
00034 pass
00035 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
00036 if (name == "thisown"): return self.this.own(value)
00037 if (name == "this"):
00038 if type(value).__name__ == 'SwigPyObject':
00039 self.__dict__[name] = value
00040 return
00041 method = class_type.__swig_setmethods__.get(name,None)
00042 if method: return method(self,value)
00043 if (not static):
00044 self.__dict__[name] = value
00045 else:
00046 raise AttributeError("You cannot add attributes to %s" % self)
00047
00048 def _swig_setattr(self,class_type,name,value):
00049 return _swig_setattr_nondynamic(self,class_type,name,value,0)
00050
00051 def _swig_getattr(self,class_type,name):
00052 if (name == "thisown"): return self.this.own()
00053 method = class_type.__swig_getmethods__.get(name,None)
00054 if method: return method(self)
00055 raise AttributeError(name)
00056
00057 def _swig_repr(self):
00058 try: strthis = "proxy of " + self.this.__repr__()
00059 except: strthis = ""
00060 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
00061
00062 try:
00063 _object = object
00064 _newclass = 1
00065 except AttributeError:
00066 class _object : pass
00067 _newclass = 0
00068
00069
00070 class dbus(_object):
00071 """Proxy of C++ casac::dbus class"""
00072 __swig_setmethods__ = {}
00073 __setattr__ = lambda self, name, value: _swig_setattr(self, dbus, name, value)
00074 __swig_getmethods__ = {}
00075 __getattr__ = lambda self, name: _swig_getattr(self, dbus, name)
00076 __repr__ = _swig_repr
00077 def __init__(self):
00078 """__init__(self) -> dbus"""
00079 this = _dbus.new_dbus()
00080 try: self.this.append(this)
00081 except: self.this = this
00082 __swig_destroy__ = _dbus.delete_dbus
00083 __del__ = lambda self : None;
00084 def asyncCallMethod(self, *args, **kwargs):
00085 """
00086 asyncCallMethod(self, objectName, methodName, parameters) -> bool
00087
00088 Summary
00089 Calls a remote method asynchronously.
00090
00091 Input Parameters:
00092 objectName name of the CASA DBus application to call
00093 methodName name of the method to call on the application
00094 parameters method parameters to send
00095
00096 --------------------------------------------------------------------------------
00097
00098 """
00099 return _dbus.dbus_asyncCallMethod(self, *args, **kwargs)
00100
00101 dbus_swigregister = _dbus.dbus_swigregister
00102 dbus_swigregister(dbus)
00103
00104
00105
00106