Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
CNsIDirectoryService Class Reference

#include <nsiDirServ.h>

List of all members.

Public Member Functions

 CNsIDirectoryService ()
virtual ~CNsIDirectoryService ()
void StartTests (UINT nMenuID)
void Init ()
void RegisterProvider ()
void UnRegisterProvider ()

Detailed Description

Definition at line 48 of file nsiDirServ.h.


Constructor & Destructor Documentation

Definition at line 60 of file nsiDirServ.cpp.

{

}

Definition at line 74 of file nsiDirServ.cpp.

{
}

Member Function Documentation

Definition at line 123 of file nsiDirServ.cpp.

{
   nsCOMPtr<nsIDirectoryService> theDirService(do_CreateInstance(NS_DIRECTORY_SERVICE_CONTRACTID));

    if (!theDirService)
       {
              QAOutput("Directory Service object doesn't exist.", 0);
              return;
       }

       rv = theDirService->Init();
       RvTestResult(rv, "rv Init() test", 1);
       RvTestResultDlg(rv, "rv Init() test", true);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 137 of file nsiDirServ.cpp.

{
   nsCOMPtr<nsIDirectoryService> theDirService(do_CreateInstance(NS_DIRECTORY_SERVICE_CONTRACTID));
   winEmbedFileLocProvider *provider = new winEmbedFileLocProvider("TestEmbed");
    if (!theDirService)
       {
              QAOutput("Directory Service object doesn't exist.", 0);
              return;
       }
    if (!provider)
       {
              QAOutput("Directory Service Provider object doesn't exist.", 0);
              return;
       }
       rv= theDirService->RegisterProvider(provider);
       RvTestResult(rv, "rv RegisterProvider() test", 1);
       RvTestResultDlg(rv, "rv RegisterProvider() test");
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 92 of file nsiDirServ.cpp.

{

    QAOutput("------------------------------------------------",1);
    QAOutput("Start DirectoryService Test",1);
       
       // Calls  all or indivdual test cases on the basis of the 
       // option selected from menu.

       switch(nMenuID)
       {
       case ID_INTERFACES_NSIDIRECTORYSERVICE_RUNALLTESTS :
                       Init(); 
                       RegisterProvider();       
                       UnRegisterProvider();     
                       break ;
       case ID_INTERFACES_NSIDIRECTORYSERVICE_INIT :
                       Init(); 
                       break ;
       case ID_INTERFACES_NSIDIRECTORYSERVICE_REGISTERPROVIDER :
                       RegisterProvider();       
                       break ;
       case ID_INTERFACES_NSIDIRECTORYSERVICE_UNREGISTERPROVIDER :
                       UnRegisterProvider();     
                       break ;
       default :  
                     AfxMessageBox("Menu handler not added for this menu item");
                     break ;
       }      
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 155 of file nsiDirServ.cpp.

{
   nsCOMPtr<nsIDirectoryService> theDirService(do_CreateInstance(NS_DIRECTORY_SERVICE_CONTRACTID));
   winEmbedFileLocProvider *provider = new winEmbedFileLocProvider("TestEmbed");
    if (!theDirService)
       {
              QAOutput("Directory Service object doesn't exist.", 0);
              return;
       }
    if (!provider)
       {
              QAOutput("Directory Service Provider object doesn't exist.", 0);
              return;
       }
       rv= theDirService->RegisterProvider(provider);
       rv= theDirService->UnregisterProvider(provider);
       RvTestResult(rv, "rv UnRegisterProvider() test", 1);
       RvTestResultDlg(rv, "rv UnRegisterProvider() test");
}

Here is the call graph for this function:

Here is the caller graph for this function:


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