Back to index

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

List of all members.

Public Member Functions

def __init__
def get_classID
def getInterfaces
def getHelperForLanguage

Public Attributes

 klass
 contractID
 classDescription
 classID
 implementationLanguage
 flags
 interfaces

Static Private Attributes

 _com_interfaces_ = _xpcom.IID_nsIClassInfo

Detailed Description

Definition at line 112 of file policy.py.


Constructor & Destructor Documentation

def xpcom.server.policy.DefaultClassInfo.__init__ (   self,
  klass 
)

Definition at line 114 of file policy.py.

00114 
00115     def __init__(self, klass):
00116         self.klass = klass
00117         self.contractID = getattr(klass, "_reg_contractid_", None)
00118         self.classDescription = getattr(klass, "_reg_desc_", None)
00119         self.classID = getattr(klass, "_reg_clsid_", None)
00120         self.implementationLanguage = 3 # Python - avoid lookups just for this
00121         self.flags = 0 # what to do here??
00122         self.interfaces = None


Member Function Documentation

Definition at line 123 of file policy.py.

00123 
00124     def get_classID(self):
00125         if self.classID is None:
00126             raise ServerException(nsError.NS_ERROR_NOT_IMPLEMENTED, "Class '%r' has no class ID" % (self.klass,))
00127         return self.classID

Definition at line 133 of file policy.py.

00133 
00134     def getHelperForLanguage(self, language):
00135         return None # Not sure what to do here.

Definition at line 128 of file policy.py.

00128 
00129     def getInterfaces(self):
00130         if self.interfaces is None:
00131             self.interfaces = _GetNominatedInterfaces(self.klass)
00132         return self.interfaces

Here is the call graph for this function:


Member Data Documentation

xpcom.server.policy.DefaultClassInfo._com_interfaces_ = _xpcom.IID_nsIClassInfo [static, private]

Definition at line 113 of file policy.py.

Definition at line 117 of file policy.py.

Definition at line 118 of file policy.py.

Definition at line 116 of file policy.py.

Definition at line 120 of file policy.py.

Definition at line 119 of file policy.py.

Definition at line 121 of file policy.py.

Definition at line 115 of file policy.py.


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