Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Protected Attributes
CRegTaskPATH Class Reference
Inheritance diagram for CRegTaskPATH:
Inheritance graph
Collaboration diagram for CRegTaskPATH:
Collaboration graph

List of all members.

Public Member Functions

 CRegTaskPATH (CRegTaskManager *pMgr)
CString GetDescription ()

Static Public Member Functions

static HRESULT PopulateTasks (CRegTaskManager &cMgr)

Protected Attributes

CString m_szDesc

Detailed Description

Definition at line 101 of file RegTask.cpp.

Constructor & Destructor Documentation

Definition at line 104 of file RegTask.cpp.

                                        : CRegTask(pMgr)
        m_szDesc = _T("Set PATH environment variable");

Member Function Documentation

Implements CRegTask.

Definition at line 112 of file RegTask.cpp.

    CString szBinDirPath;
    m_pTaskMgr->GetValue(c_szValueBinDirPath, szBinDirPath);

    osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO)

    if (osvi.dwPlatformId == VER_PLATFORM_WIN32_NT)
    else if (osvi.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS)
        FILE *f = fopen("c:\\autoexec.bat", "rw");
        if (f == NULL)
            return NULL;

        // TODO read autoexec.bat if necessary and add Mozilla bin path to it

        // READ whole thing into memory
        // grep for magic control tags
        // if there then replace section
        // else append new section


    return S_OK;

Here is the call graph for this function:

CString CRegTask::GetDescription ( ) [inline, inherited]

Definition at line 28 of file RegTask.h.

        return m_szDesc;

Here is the caller graph for this function:

HRESULT CRegTask::PopulateTasks ( CRegTaskManager cMgr) [static, inherited]

Definition at line 147 of file RegTask.cpp.

    cMgr.AddTask(new CRegTaskRegistry(&cMgr));
    cMgr.AddTask(new CRegTaskPATH(&cMgr));
    cMgr.AddTask(new CRegTaskRegSvr(&cMgr));
    return S_OK;

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

CRegTaskManager* CRegTask::m_pTaskMgr [protected, inherited]

Definition at line 17 of file RegTask.h.

CString CRegTask::m_szDesc [protected, inherited]

Definition at line 18 of file RegTask.h.

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