Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
ImportModuleDesc Class Reference

#include <nsImportService.h>

Collaboration diagram for ImportModuleDesc:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ImportModuleDesc ()
 ~ImportModuleDesc ()
void SetCID (const nsCID &cid)
void SetName (const PRUnichar *pName)
void SetDescription (const PRUnichar *pDesc)
void SetSupports (const char *pSupports)
nsCID GetCID (void)
const PRUnicharGetName (void)
const PRUnicharGetDescription (void)
const char * GetSupports (void)
nsIImportModuleGetModule (PRBool keepLoaded=PR_FALSE)
void ReleaseModule (void)
PRBool SupportsThings (const char *pThings)

Private Attributes

nsCID m_cid
nsString m_name
nsString m_description
nsCString m_supports
nsIImportModulem_pModule

Detailed Description

Definition at line 79 of file nsImportService.h.


Constructor & Destructor Documentation

Definition at line 81 of file nsImportService.h.

Definition at line 82 of file nsImportService.h.

Here is the call graph for this function:


Member Function Documentation

Definition at line 89 of file nsImportService.h.

{ return( m_cid);}

Definition at line 91 of file nsImportService.h.

{ return( m_description.get());}

Here is the call graph for this function:

Definition at line 570 of file nsImportService.cpp.

{
       if (m_pModule) {
              m_pModule->AddRef();
              return( m_pModule);
       }
       
       nsresult      rv;
       rv = CallCreateInstance( m_cid, &m_pModule);
       if (NS_FAILED(rv)) {
              m_pModule = nsnull;
              return nsnull;
       }
       
       if (keepLoaded) {
              m_pModule->AddRef();
              return( m_pModule);
       }
       else {
              nsIImportModule *pModule = m_pModule;
              m_pModule = nsnull;
              return( pModule);
       }
}

Here is the call graph for this function:

Definition at line 90 of file nsImportService.h.

{ return( m_name.get());}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 92 of file nsImportService.h.

{ return( m_supports.get());}

Here is the call graph for this function:

Definition at line 595 of file nsImportService.cpp.

{
       if (m_pModule) {
              m_pModule->Release();
              m_pModule = nsnull;
       }
}

Here is the caller graph for this function:

Definition at line 84 of file nsImportService.h.

{ m_cid = cid;}

Here is the caller graph for this function:

Definition at line 86 of file nsImportService.h.

{ m_description = pDesc;}

Here is the caller graph for this function:

Definition at line 85 of file nsImportService.h.

{ m_name = pName;}

Here is the caller graph for this function:

void ImportModuleDesc::SetSupports ( const char *  pSupports) [inline]

Definition at line 87 of file nsImportService.h.

{ m_supports = pSupports;}

Here is the caller graph for this function:

Definition at line 603 of file nsImportService.cpp.

{
       if (!pThings)
              return( PR_TRUE);
       if (!(*pThings))
              return( PR_TRUE);

       nsCString     thing(pThings);
       nsCString     item;
       PRInt32              idx;
       
       while ((idx = thing.FindChar( ',')) != -1) {
              thing.Left( item, idx);
              item.Trim( kWhitespace);
              ToLowerCase(item);
              if (item.Length() && (m_supports.Find( item) == -1))
                     return( PR_FALSE);
              thing.Right( item, thing.Length() - idx - 1);
              thing = item;
       }
       thing.Trim( kWhitespace);
       ToLowerCase(thing);
       if (thing.Length() && (m_supports.Find( thing) == -1))
              return( PR_FALSE);
       
       return( PR_TRUE);
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 100 of file nsImportService.h.

Definition at line 102 of file nsImportService.h.

Definition at line 101 of file nsImportService.h.

Definition at line 104 of file nsImportService.h.

Definition at line 103 of file nsImportService.h.


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