Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Member Functions
xpcom.client._XPCOMBase Class Reference
Inheritance diagram for xpcom.client._XPCOMBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __cmp__
def __hash__
def __str__
def __int__
def __long__
def __float__

Private Member Functions

def _do_conversion

Detailed Description

Definition at line 168 of file __init__.py.


Member Function Documentation

def xpcom.client._XPCOMBase.__cmp__ (   self,
  other 
)

Definition at line 169 of file __init__.py.

00169 
00170     def __cmp__(self, other):
00171         try:
00172             other = other._comobj_
00173         except AttributeError:
00174             pass
00175         return cmp(self._comobj_, other)

Definition at line 205 of file __init__.py.

00205 
00206     def __float__(self):
        return self._do_conversion(_float_interfaces, float)

Here is the call graph for this function:

Definition at line 176 of file __init__.py.

00176 
00177     def __hash__(self):
00178         return hash(self._comobj_)

Here is the call graph for this function:

Definition at line 199 of file __init__.py.

00199 
00200     def __int__(self):
00201         return self._do_conversion(_int_interfaces, int)

Here is the call graph for this function:

Definition at line 202 of file __init__.py.

00202 
00203     def __long__(self):
00204         return self._do_conversion(_long_interfaces, long)

Here is the call graph for this function:

Definition at line 180 of file __init__.py.

00180 
00181     def __str__(self):
00182         try:
00183             self._comobj_.QueryInterface(IID_nsISupportsCString, 0)
00184             return str(self._comobj_)
00185         except COMException:
00186             return self.__repr__()

Here is the call graph for this function:

def xpcom.client._XPCOMBase._do_conversion (   self,
  interface_names,
  cvt 
) [private]

Definition at line 188 of file __init__.py.

00188 
00189     def _do_conversion(self, interface_names, cvt):
00190         iim = XPTI_GetInterfaceInfoManager()
00191         for interface_name in interface_names:
00192             iid = iim.GetInfoForName(interface_name).GetIID()
00193             try:
00194                 prim = self._comobj_.QueryInterface(iid)
00195                 return cvt(prim.data)
00196             except COMException:
00197                 pass
00198         raise ValueError, "This object does not support automatic numeric conversion to this type"

Here is the caller graph for this function:


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