Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Member Functions | Static Private Attributes
xpcom.server.policy.SupportsPrimitive Class Reference

List of all members.

Public Member Functions

def __init__
def get_data
def set_data
def toString

Public Attributes


Private Member Functions

def _query_interface_

Static Private Attributes

list _com_interfaces_ = ["nsISupports"]

Detailed Description

Definition at line 332 of file

Constructor & Destructor Documentation

def xpcom.server.policy.SupportsPrimitive.__init__ (   self,

Definition at line 334 of file

00335     def __init__(self, iid, base_ob, attr_name, converter):
00336         self.iid = iid
00337         self.base_ob = base_ob
00338         self.attr_name = attr_name
        self.converter = converter

Member Function Documentation

def xpcom.server.policy.SupportsPrimitive._query_interface_ (   self,
) [private]

Definition at line 339 of file

00340     def _query_interface_(self, iid):
00341         if iid == self.iid:
00342             return 1
        return None

Definition at line 343 of file

00344     def get_data(self):
00345         method = getattr(self.base_ob, self.attr_name)
00346         val = method()
        return self.converter(val)

Here is the caller graph for this function:

Definition at line 347 of file

00348     def set_data(self, val):
        raise ServerException(nsError.NS_ERROR_NOT_IMPLEMENTED)

Definition at line 349 of file

00350     def toString(self):
00351         return str(self.get_data())

Here is the call graph for this function:

Member Data Documentation

list xpcom.server.policy.SupportsPrimitive._com_interfaces_ = ["nsISupports"] [static, private]

Definition at line 333 of file

Definition at line 337 of file

Definition at line 336 of file

Definition at line 338 of file

Definition at line 335 of file

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