Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Static Private Attributes
py_test_component.PythonTestComponent Class Reference

List of all members.

Public Member Functions

def __init__
def __del__
def do_boolean
def do_octet
def do_short
def do_unsigned_short
def do_long
def do_unsigned_long
def do_long_long
def do_unsigned_long_long
def do_float
def do_double
def do_char
def do_wchar
def do_string
def do_wstring
def do_nsIIDRef
def do_nsIPythonTestInterface
def do_nsISupports
def do_nsISupportsIs

Public Attributes

 boolean_value
 octet_value
 short_value
 ushort_value
 long_value
 ulong_value
 long_long_value
 ulong_long_value
 float_value
 double_value
 char_value
 wchar_value
 string_value
 wstring_value
 astring_value
 acstring_value
 utf8string_value
 iid_value
 interface_value
 isupports_value
 domstring_value

Static Private Attributes

 _com_interfaces_ = components.interfaces.nsIPythonTestInterfaceDOMStrings
string _reg_clsid_ = "{7EE4BDC6-CB53-42c1-A9E4-616B8E012ABA}"
string _reg_contractid_ = "Python.TestComponent"

Detailed Description

Definition at line 45 of file py_test_component.py.


Constructor & Destructor Documentation

Definition at line 51 of file py_test_component.py.

00051 
00052     def __init__(self):
00053         self.boolean_value = 1
00054         self.octet_value = 2
00055         self.short_value = 3
00056         self.ushort_value = 4
00057         self.long_value = 5
00058         self.ulong_value = 6
00059         self.long_long_value = 7
00060         self.ulong_long_value = 8
00061         self.float_value = 9.0
00062         self.double_value = 10.0
00063         self.char_value = "a"
00064         self.wchar_value = "b"
00065         self.string_value = "cee"
00066         self.wstring_value = "dee"
00067         self.astring_value = "astring"
00068         self.acstring_value = "acstring"
00069         self.utf8string_value = "utf8string"
00070         self.iid_value = self._reg_clsid_
00071         self.interface_value = None
00072         self.isupports_value = None
00073         self.domstring_value = "dom"

Definition at line 74 of file py_test_component.py.

00074 
00075     def __del__(self):
00076         if verbose:
00077             print "Python.TestComponent: __del__ method called - object is destructing"


Member Function Documentation

def py_test_component.PythonTestComponent.do_boolean (   self,
  p1,
  p2 
)

Definition at line 78 of file py_test_component.py.

00078 
00079     def do_boolean(self, p1, p2):
00080         # boolean                  do_boolean(in boolean p1, inout boolean p2, out boolean p3);
00081         ret = p1 ^ p2
00082         return ret, not ret, ret

def py_test_component.PythonTestComponent.do_char (   self,
  p1,
  p2 
)

Definition at line 113 of file py_test_component.py.

00113 
00114     def do_char(self, p1, p2):
00115         # char                     do_char(in char p1, inout char p2, out char p3);
        return chr(ord(p1)+ord(p2)), p2, p1
def py_test_component.PythonTestComponent.do_double (   self,
  p1,
  p2 
)

Definition at line 110 of file py_test_component.py.

00110 
00111     def do_double(self, p1, p2):
00112         # double                   do_double(in double p1, inout double p2, out double p3);
        return p1+p2, p1-p2, p1*p2
def py_test_component.PythonTestComponent.do_float (   self,
  p1,
  p2 
)

Definition at line 107 of file py_test_component.py.

00107 
00108     def do_float(self, p1, p2):
00109         # float                    do_float(in float p1, inout float p2, out float p3);
        return p1+p2, p1-p2, p1*p2
def py_test_component.PythonTestComponent.do_long (   self,
  p1,
  p2 
)

Definition at line 94 of file py_test_component.py.

00094 
00095     def do_long(self, p1, p2):
00096         # long                     do_long(in long p1, inout long p2, out long p3);
00097         return p1+p2, p1-p2, p1*p2

def py_test_component.PythonTestComponent.do_long_long (   self,
  p1,
  p2 
)

Definition at line 101 of file py_test_component.py.

00101 
00102     def do_long_long(self, p1, p2):
00103         #  long long                do_long_long(in long long p1, inout long long p2, out long long p3);
        return p1+p2, p1-p2, p1*p2
def py_test_component.PythonTestComponent.do_nsIIDRef (   self,
  p1,
  p2 
)

Definition at line 131 of file py_test_component.py.

00131 
00132     def do_nsIIDRef(self, p1, p2):
00133         # nsIIDRef                 do_nsIIDRef(in nsIIDRef p1, inout nsIIDRef p2, out nsIIDRef p3);
        return p1, self._reg_clsid_, p2

Definition at line 134 of file py_test_component.py.

00134 
00135     def do_nsIPythonTestInterface(self, p1, p2):
00136         # nsIPythonTestInterface   do_nsIPythonTestInterface(in nsIPythonTestInterface p1, inout nsIPythonTestInterface p2, out nsIPythonTestInterface p3);
        return p2, p1, self

Definition at line 137 of file py_test_component.py.

00137 
00138     def do_nsISupports(self, p1, p2):
00139         # nsISupports              do_nsISupports(in nsISupports p1, inout nsISupports p2, out nsISupports p3);
        return self, p1, p2

Definition at line 140 of file py_test_component.py.

00140 
00141     def do_nsISupportsIs(self, iid):
00142         # void                     do_nsISupportsIs(in nsIIDRef iid, [iid_is(iid),retval] out nsQIResult result)
00143         # Note the framework does the QI etc on us, so there is no real point me doing it.
00144         # (However, user code _should_ do the QI - otherwise any errors are deemed "internal" (as they
00145         # are raised by the C++ framework), and therefore logged to the console, etc.
00146         # A user QI allows the user to fail gracefully, whatever gracefully means for them!
00147         return self
# Do I really need these??
def py_test_component.PythonTestComponent.do_octet (   self,
  p1,
  p2 
)

Definition at line 83 of file py_test_component.py.

00083 
00084     def do_octet(self, p1, p2):
00085         # octet                    do_octet(in octet p1, inout octet p2, out octet p3);
00086         return p1+p2, p1-p2, p1*p2

def py_test_component.PythonTestComponent.do_short (   self,
  p1,
  p2 
)

Definition at line 87 of file py_test_component.py.

00087 
00088     def do_short(self, p1, p2):
00089         # short                    do_short(in short p1, inout short p2, out short p3);
00090         return p1+p2, p1-p2, p1*p2

def py_test_component.PythonTestComponent.do_string (   self,
  p1,
  p2 
)

Definition at line 119 of file py_test_component.py.

00119 
00120     def do_string(self, p1, p2):
00121         # string                   do_string(in string p1, inout string p2, out string p3);
00122         ret = ""
00123         if p1 is not None: ret = ret + p1
00124         if p2 is not None: ret = ret + p2
        return ret, p1, p2

Definition at line 98 of file py_test_component.py.

00098 
00099     def do_unsigned_long(self, p1, p2):
00100         # unsigned long            do_unsigned_long(in unsigned long p1, inout unsigned long p2, out unsigned long p3);
        return p1+p2, p1-p2, p1*p2

Definition at line 104 of file py_test_component.py.

00104 
00105     def do_unsigned_long_long(self, p1, p2):
00106         # unsigned long long       do_unsigned_long_long(in unsigned long long p1, inout unsigned long long p2, out unsigned long long p3);
        return p1+p2, p1-p2, p1*p2

Definition at line 91 of file py_test_component.py.

00091 
00092     def do_unsigned_short(self, p1, p2):
00093         # unsigned short           do_unsigned_short(in unsigned short p1, inout unsigned short p2, out unsigned short p3);
        return p1+p2, p1-p2, p1*p2
def py_test_component.PythonTestComponent.do_wchar (   self,
  p1,
  p2 
)

Definition at line 116 of file py_test_component.py.

00116 
00117     def do_wchar(self, p1, p2):
00118         # wchar                    do_wchar(in wchar p1, inout wchar p2, out wchar p3);
        return chr(ord(p1)+ord(p2)), p2, p1
def py_test_component.PythonTestComponent.do_wstring (   self,
  p1,
  p2 
)

Definition at line 125 of file py_test_component.py.

00125 
00126     def do_wstring(self, p1, p2):
00127         # wstring                  do_wstring(in wstring p1, inout wstring p2, out wstring p3);
00128         ret = u""
00129         if p1 is not None: ret = ret + p1
00130         if p2 is not None: ret = ret + p2
        return ret, p1, p2

Member Data Documentation

py_test_component.PythonTestComponent._com_interfaces_ = components.interfaces.nsIPythonTestInterfaceDOMStrings [static, private]

Definition at line 48 of file py_test_component.py.

string py_test_component.PythonTestComponent._reg_clsid_ = "{7EE4BDC6-CB53-42c1-A9E4-616B8E012ABA}" [static, private]

Definition at line 49 of file py_test_component.py.

string py_test_component.PythonTestComponent._reg_contractid_ = "Python.TestComponent" [static, private]

Definition at line 50 of file py_test_component.py.

Definition at line 67 of file py_test_component.py.

Definition at line 66 of file py_test_component.py.

Definition at line 52 of file py_test_component.py.

Definition at line 62 of file py_test_component.py.

Definition at line 72 of file py_test_component.py.

Definition at line 61 of file py_test_component.py.

Definition at line 60 of file py_test_component.py.

Definition at line 69 of file py_test_component.py.

Definition at line 70 of file py_test_component.py.

Definition at line 71 of file py_test_component.py.

Definition at line 58 of file py_test_component.py.

Definition at line 56 of file py_test_component.py.

Definition at line 53 of file py_test_component.py.

Definition at line 54 of file py_test_component.py.

Definition at line 64 of file py_test_component.py.

Definition at line 59 of file py_test_component.py.

Definition at line 57 of file py_test_component.py.

Definition at line 55 of file py_test_component.py.

Definition at line 68 of file py_test_component.py.

Definition at line 63 of file py_test_component.py.

Definition at line 65 of file py_test_component.py.


The documentation for this class was generated from the following file: