Back to index

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

#include <nsProfile.h>

Collaboration diagram for CProfile:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CProfile (nsIWebBrowser *mWebBrowser)
 ~CProfile ()
void OnStartTests (UINT nMenuID)
void RunAllTests ()
void GetProfileCount ()
void GetCurrentProfile ()
void SetCurrentProfile ()
void GetProfileList ()
void ProfileExists ()
void CreateNewProfile ()
void RenameProfile ()
void DeleteProfile ()
void CloneProfile ()
void ShutDownCurrentProfile ()

Public Attributes

nsCOMPtr< nsIWebBrowserqaWebBrowser

Detailed Description

Definition at line 43 of file nsProfile.h.


Constructor & Destructor Documentation

CProfile::CProfile ( nsIWebBrowser mWebBrowser)

Definition at line 48 of file nsProfile.cpp.

{
       qaWebBrowser = mWebBrowser;
}

Definition at line 54 of file nsProfile.cpp.

{
}

Member Function Documentation

Definition at line 318 of file nsProfile.cpp.

{
       nsCOMPtr<nsIProfile> oNsProfile (do_GetService(NS_PROFILE_CONTRACTID,&rv));

    RvTestResultDlg(rv, "do_GetService",true);
       if (!oNsProfile)
       {
           RvTestResultDlg(rv, "Cannot get the nsIprofile object");
           return ;
       }
 
       USES_CONVERSION ;

       nsXPIDLString   currProfileName;
    rv = oNsProfile->GetCurrentProfile(getter_Copies(currProfileName));
    RvTestResultDlg(rv, "nsIProfile::GetCurrentProfile() ");

    rv = oNsProfile->CloneProfile(currProfileName);
    RvTestResultDlg(rv, "oNsProfile->CloneProfile");
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 258 of file nsProfile.cpp.

{
       nsCOMPtr<nsIProfile> oNsProfile (do_GetService(NS_PROFILE_CONTRACTID,&rv));

    RvTestResultDlg(rv, "do_GetService",true);
       if (!oNsProfile)
       {
           RvTestResultDlg(rv, "Cannot get the nsIprofile object");
           return ;
       }

       USES_CONVERSION ;

       rv = oNsProfile->CreateNewProfile(T2W("New Test"), nsnull, nsnull, PR_TRUE);
    RvTestResultDlg(rv, "oNsProfile->CreateNewProfile");
   
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 297 of file nsProfile.cpp.

{
       nsCOMPtr<nsIProfile> oNsProfile (do_GetService(NS_PROFILE_CONTRACTID,&rv));

    RvTestResultDlg(rv, "do_GetService",true);
       if (!oNsProfile)
       {
           RvTestResultDlg(rv, "Cannot get the nsIprofile object");
           return ;
       }

       USES_CONVERSION ;

       nsXPIDLString   currProfileName;
    rv = oNsProfile->GetCurrentProfile(getter_Copies(currProfileName));
    RvTestResultDlg(rv, "nsIProfile::GetCurrentProfile() ");

    rv = oNsProfile->DeleteProfile(currProfileName, PR_TRUE);
    RvTestResultDlg(rv, "oNsProfile->DeleteProfile");
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 179 of file nsProfile.cpp.

{
       nsCOMPtr<nsIProfile> oNsProfile (do_GetService(NS_PROFILE_CONTRACTID,&rv));

    RvTestResultDlg(rv, "do_GetService",true);
       if (!oNsProfile)
       {
           RvTestResultDlg(rv, "Cannot get the nsIprofile object");
           return ;
       }

       nsXPIDLString   currProfileName;
    rv = oNsProfile->GetCurrentProfile(getter_Copies(currProfileName));
    RvTestResultDlg(rv, "nsIProfile::GetCurrentProfile() ");
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 162 of file nsProfile.cpp.

{
       nsCOMPtr<nsIProfile> oNsProfile (do_GetService(NS_PROFILE_CONTRACTID,&rv));

    RvTestResultDlg(rv, "do_GetService",true);

       if (!oNsProfile)
       {
           RvTestResultDlg(rv, "Cannot get the nsIprofile object");
           return ;
       }

       PRInt32 profileCount;
    rv = oNsProfile->GetProfileCount(&profileCount);
    RvTestResultDlg(rv, "nsIProfile::GetProfileCount() ");
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 214 of file nsProfile.cpp.

{
       nsCOMPtr<nsIProfile> oNsProfile (do_GetService(NS_PROFILE_CONTRACTID,&rv));

    RvTestResultDlg(rv, "do_GetService",true);
       if (!oNsProfile)
       {
           RvTestResultDlg(rv, "Cannot get the nsIprofile object");
           return ;
       }

       PRUint32    listLen;
    PRUnichar   **profileList;

    rv = oNsProfile->GetProfileList(&listLen, &profileList);
    RvTestResultDlg(rv, "oNsProfile->GetProfileList");

    for (PRUint32 index = 0; index < listLen; index++)
    {
        CString tmpStr(profileList[index]);
           RvTestResultDlg(rv, tmpStr);
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 238 of file nsProfile.cpp.

{
       nsCOMPtr<nsIProfile> oNsProfile (do_GetService(NS_PROFILE_CONTRACTID,&rv));

    RvTestResultDlg(rv, "do_GetService",true);
       if (!oNsProfile)
       {
           RvTestResultDlg(rv, "Cannot get the nsIprofile object");
           return ;
       }

       nsXPIDLString   currProfileName;
    rv = oNsProfile->GetCurrentProfile(getter_Copies(currProfileName));
    RvTestResultDlg(rv, "nsIProfile::GetCurrentProfile() ");

       PRBool exists = FALSE;
    rv = oNsProfile->ProfileExists(currProfileName, &exists);
    RvTestResultDlg(rv, "oNsProfile->ProfileExists");
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 276 of file nsProfile.cpp.

{
       nsCOMPtr<nsIProfile> oNsProfile (do_GetService(NS_PROFILE_CONTRACTID,&rv));

    RvTestResultDlg(rv, "do_GetService",true);
       if (!oNsProfile)
       {
           RvTestResultDlg(rv, "Cannot get the nsIprofile object");
           return ;
       }

       USES_CONVERSION ;

       nsXPIDLString   currProfileName;
    rv = oNsProfile->GetCurrentProfile(getter_Copies(currProfileName));
    RvTestResultDlg(rv, "nsIProfile::GetCurrentProfile() ");

       rv = oNsProfile->RenameProfile(currProfileName, T2W("New default"));
    RvTestResultDlg(rv, "oNsProfile->RenameProfile");
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 103 of file nsProfile.cpp.

{
    
       nsCOMPtr<nsIProfile> oNsProfile (do_GetService(NS_PROFILE_CONTRACTID,&rv));

    RvTestResultDlg(rv, "do_GetService",true);

       if (!oNsProfile)
       {
           RvTestResultDlg(rv, "Cannot get the nsIprofile object");
           return ;
       }

       PRInt32 profileCount;
    rv = oNsProfile->GetProfileCount(&profileCount);
    RvTestResultDlg(rv, "nsIProfile::GetProfileCount() ");

    nsXPIDLString   currProfileName;
    rv = oNsProfile->GetCurrentProfile(getter_Copies(currProfileName));
    RvTestResultDlg(rv, "nsIProfile::GetCurrentProfile() ");

    rv = oNsProfile->SetCurrentProfile(currProfileName);
    RvTestResultDlg(rv, "nsIProfile::SetCurrentProfile() ");


    PRUint32    listLen;
    PRUnichar   **profileList;

    rv = oNsProfile->GetProfileList(&listLen, &profileList);
    RvTestResultDlg(rv, "oNsProfile->GetProfileList");

    for (PRUint32 index = 0; index < listLen; index++)
    {
        CString tmpStr(profileList[index]);
           RvTestResultDlg(rv, tmpStr);
       }

    PRBool exists = FALSE;
    rv = oNsProfile->ProfileExists(currProfileName, &exists);
    RvTestResultDlg(rv, "oNsProfile->ProfileExists");

       USES_CONVERSION ;

       NS_NAMED_LITERAL_STRING(newProfileName, "nsIProfileTest");

    rv = oNsProfile->CreateNewProfile(newProfileName.get(), nsnull, nsnull, PR_TRUE);
    RvTestResultDlg(rv, "oNsProfile->CreateNewProfile");

    rv = oNsProfile->CloneProfile(currProfileName);
    RvTestResultDlg(rv, "oNsProfile->CloneProfile");

    rv = oNsProfile->RenameProfile(currProfileName, T2W("nsIProfileTestNew"));
    RvTestResultDlg(rv, "oNsProfile->RenameProfile");

    rv = oNsProfile->DeleteProfile(T2W("nsIProfileTestNew"), PR_TRUE);
    RvTestResultDlg(rv, "oNsProfile->DeleteProfile");
 
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 195 of file nsProfile.cpp.

{
       nsCOMPtr<nsIProfile> oNsProfile (do_GetService(NS_PROFILE_CONTRACTID,&rv));

    RvTestResultDlg(rv, "do_GetService",true);
       if (!oNsProfile)
       {
           RvTestResultDlg(rv, "Cannot get the nsIprofile object");
           return ;
       }

       nsXPIDLString   currProfileName;
    rv = oNsProfile->GetCurrentProfile(getter_Copies(currProfileName));
    RvTestResultDlg(rv, "nsIProfile::GetCurrentProfile() ");

    rv = oNsProfile->SetCurrentProfile(currProfileName);
    RvTestResultDlg(rv, "nsIProfile::SetCurrentProfile() ");
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 339 of file nsProfile.cpp.

{
       nsCOMPtr<nsIProfile> oNsProfile (do_GetService(NS_PROFILE_CONTRACTID,&rv));

    RvTestResultDlg(rv, "do_GetService",true);
       if (!oNsProfile)
       {
           RvTestResultDlg(rv, "Cannot get the nsIprofile object");
           return ;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 53 of file nsProfile.h.


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