Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Protected Member Functions
CInstallControlProgress Class Reference
Collaboration diagram for CInstallControlProgress:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CInstallControlProgress ()
HRESULT STDMETHODCALLTYPE OnStartBinding (DWORD dwReserved, IBinding __RPC_FAR *pib)
HRESULT STDMETHODCALLTYPE GetPriority (LONG __RPC_FAR *pnPriority)
HRESULT STDMETHODCALLTYPE OnLowResource (DWORD reserved)
HRESULT STDMETHODCALLTYPE OnProgress (ULONG ulProgress, ULONG ulProgressMax, ULONG ulStatusCode, LPCWSTR szStatusText)
HRESULT STDMETHODCALLTYPE OnStopBinding (HRESULT hresult, LPCWSTR szError)
HRESULT STDMETHODCALLTYPE GetBindInfo (DWORD __RPC_FAR *pgrfBINDF, BINDINFO __RPC_FAR *pbindInfo)
HRESULT STDMETHODCALLTYPE OnDataAvailable (DWORD grfBSCF, DWORD dwSize, FORMATETC __RPC_FAR *pformatetc, STGMEDIUM __RPC_FAR *pstgmed)
HRESULT STDMETHODCALLTYPE OnObjectAvailable (REFIID riid, IUnknown __RPC_FAR *punk)
virtual HRESULT STDMETHODCALLTYPE GetWindow (REFGUID rguidReason, HWND *phwnd)

Public Attributes

BOOL mBindingInProgress
HRESULT mResult
NPP mNPP

Protected Member Functions

virtual ~CInstallControlProgress ()

Detailed Description

Definition at line 90 of file LegacyPlugin.cpp.


Constructor & Destructor Documentation

Definition at line 96 of file LegacyPlugin.cpp.

    {
    }
virtual CInstallControlProgress::~CInstallControlProgress ( ) [inline, protected, virtual]

Definition at line 105 of file LegacyPlugin.cpp.

    {
    }

Member Function Documentation

HRESULT STDMETHODCALLTYPE CInstallControlProgress::GetBindInfo ( DWORD __RPC_FAR *  pgrfBINDF,
BINDINFO __RPC_FAR *  pbindInfo 
) [inline]

Definition at line 184 of file LegacyPlugin.cpp.

    {
        *pgrfBINDF = BINDF_ASYNCHRONOUS | BINDF_ASYNCSTORAGE |
                    BINDF_GETNEWESTVERSION | BINDF_NOWRITECACHE;
        pbindInfo->cbSize = sizeof(BINDINFO);
        pbindInfo->szExtraInfo = NULL;
        memset(&pbindInfo->stgmedData, 0, sizeof(STGMEDIUM));
        pbindInfo->grfBindInfoF = 0;
        pbindInfo->dwBindVerb = 0;
        pbindInfo->szCustomVerb = NULL;
        return S_OK;
    }

Here is the call graph for this function:

HRESULT STDMETHODCALLTYPE CInstallControlProgress::GetPriority ( LONG __RPC_FAR *  pnPriority) [inline]

Definition at line 121 of file LegacyPlugin.cpp.

    {
        return S_OK;
    }
virtual HRESULT STDMETHODCALLTYPE CInstallControlProgress::GetWindow ( REFGUID  rguidReason,
HWND phwnd 
) [inline, virtual]

Definition at line 213 of file LegacyPlugin.cpp.

    {
        HWND hwnd = NULL;
        NPN_GetValue(mNPP, NPNVnetscapeWindow, &hwnd);
        *phwnd = hwnd;
        return S_OK;
    }

Here is the call graph for this function:

HRESULT STDMETHODCALLTYPE CInstallControlProgress::OnDataAvailable ( DWORD  grfBSCF,
DWORD  dwSize,
FORMATETC __RPC_FAR *  pformatetc,
STGMEDIUM __RPC_FAR *  pstgmed 
) [inline]

Definition at line 198 of file LegacyPlugin.cpp.

    {
        return E_NOTIMPL;
    }
HRESULT STDMETHODCALLTYPE CInstallControlProgress::OnLowResource ( DWORD  reserved) [inline]

Definition at line 126 of file LegacyPlugin.cpp.

    {
        return S_OK;
    }
HRESULT STDMETHODCALLTYPE CInstallControlProgress::OnObjectAvailable ( REFIID  riid,
IUnknown __RPC_FAR *  punk 
) [inline]

Definition at line 206 of file LegacyPlugin.cpp.

    {
        return S_OK;
    }
HRESULT STDMETHODCALLTYPE CInstallControlProgress::OnProgress ( ULONG  ulProgress,
ULONG  ulProgressMax,
ULONG  ulStatusCode,
LPCWSTR  szStatusText 
) [inline]

Definition at line 131 of file LegacyPlugin.cpp.

    {
        switch (ulStatusCode)
        {
        case BINDSTATUS_BEGINDOWNLOADDATA:
        case BINDSTATUS_DOWNLOADINGDATA:
        case BINDSTATUS_ENDDOWNLOADDATA:
            {
                char szMsg[100];
                _snprintf(szMsg, sizeof(szMsg) - 1, "Downloading control (%lu of %lu)", ulProgress, ulProgressMax);
                szMsg[sizeof(szMsg) - 1] = '\0';
                NPN_Status(mNPP, szMsg);
            }
            break;
        case BINDSTATUS_FINDINGRESOURCE:
        case BINDSTATUS_CONNECTING:
        case BINDSTATUS_REDIRECTING:
        case BINDSTATUS_BEGINDOWNLOADCOMPONENTS:
        case BINDSTATUS_INSTALLINGCOMPONENTS:
        case BINDSTATUS_ENDDOWNLOADCOMPONENTS:
        case BINDSTATUS_USINGCACHEDCOPY:
        case BINDSTATUS_SENDINGREQUEST:
        case BINDSTATUS_CLASSIDAVAILABLE:
        case BINDSTATUS_MIMETYPEAVAILABLE:
        case BINDSTATUS_CACHEFILENAMEAVAILABLE:
        case BINDSTATUS_BEGINSYNCOPERATION:
        case BINDSTATUS_ENDSYNCOPERATION:
        case BINDSTATUS_BEGINUPLOADDATA:
        case BINDSTATUS_UPLOADINGDATA:
        case BINDSTATUS_ENDUPLOADDATA:
        case BINDSTATUS_PROTOCOLCLASSID:
        case BINDSTATUS_ENCODING:
        case BINDSTATUS_CLASSINSTALLLOCATION:
        case BINDSTATUS_DECODING:
        case BINDSTATUS_LOADINGMIMEHANDLER:
        default:
            /* do nothing */
            break;
        }
        return S_OK;
    }

Here is the call graph for this function:

HRESULT STDMETHODCALLTYPE CInstallControlProgress::OnStartBinding ( DWORD  dwReserved,
IBinding __RPC_FAR *  pib 
) [inline]

Definition at line 115 of file LegacyPlugin.cpp.

    {
        return S_OK;
    }
HRESULT STDMETHODCALLTYPE CInstallControlProgress::OnStopBinding ( HRESULT  hresult,
LPCWSTR  szError 
) [inline]

Definition at line 176 of file LegacyPlugin.cpp.

    {
        mBindingInProgress = FALSE;
        mResult = hresult;
        NPN_Status(mNPP, "");
        return S_OK;
    }

Here is the call graph for this function:


Member Data Documentation

Definition at line 100 of file LegacyPlugin.cpp.

Definition at line 102 of file LegacyPlugin.cpp.

Definition at line 101 of file LegacyPlugin.cpp.


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