Back to index

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

#include <nsBrowserStatusFilter.h>

Collaboration diagram for nsBrowserStatusFilter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsBrowserStatusFilter ()
virtual ~nsBrowserStatusFilter ()

Private Member Functions

nsresult StartDelayTimer ()
void ProcessTimeout ()
PRBool DelayInEffect ()

Static Private Member Functions

static void TimeoutHandler (nsITimer *aTimer, void *aClosure)

Private Attributes

nsCOMPtr< nsIWebProgressListenermListener
nsCOMPtr< nsITimermTimer
nsString mStatusMsg
PRInt32 mCurProgress
PRInt32 mMaxProgress
PRInt32 mTotalRequests
PRInt32 mFinishedRequests
PRPackedBool mUseRealProgressFlag
PRPackedBool mDelayedStatus
PRPackedBool mDelayedProgress

Detailed Description

Definition at line 54 of file nsBrowserStatusFilter.h.


Constructor & Destructor Documentation

Definition at line 61 of file nsBrowserStatusFilter.cpp.

{
    if (mTimer) {
        mTimer->Cancel();
    }
}

Member Function Documentation

Definition at line 69 of file nsBrowserStatusFilter.h.

Here is the caller graph for this function:

Definition at line 286 of file nsBrowserStatusFilter.cpp.

{
    mTimer = nsnull;

    if (!mListener)
        return;

    if (mDelayedStatus) {
        mDelayedStatus = PR_FALSE;
        mListener->OnStatusChange(nsnull, nsnull, 0, mStatusMsg.get());
    }

    if (mDelayedProgress) {
        mDelayedProgress = PR_FALSE;
        mListener->OnProgressChange(nsnull, nsnull, 0, 0, mCurProgress, mMaxProgress);
    }
}

Here is the call graph for this function:

Definition at line 273 of file nsBrowserStatusFilter.cpp.

{
    NS_ASSERTION(!DelayInEffect(), "delay should not be in effect");

    mTimer = do_CreateInstance("@mozilla.org/timer;1");
    if (!mTimer)
      return NS_ERROR_FAILURE;

    return mTimer->InitWithFuncCallback(TimeoutHandler, this, 40, 
                                        nsITimer::TYPE_ONE_SHOT);
}

Here is the call graph for this function:

void nsBrowserStatusFilter::TimeoutHandler ( nsITimer aTimer,
void aClosure 
) [static, private]

Definition at line 305 of file nsBrowserStatusFilter.cpp.

{
    nsBrowserStatusFilter *self = NS_REINTERPRET_CAST(nsBrowserStatusFilter *, aClosure);
    if (!self) {
        NS_ERROR("no self");
        return;
    }

    self->ProcessTimeout();
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 79 of file nsBrowserStatusFilter.h.

Definition at line 89 of file nsBrowserStatusFilter.h.

Definition at line 88 of file nsBrowserStatusFilter.h.

Definition at line 84 of file nsBrowserStatusFilter.h.

Definition at line 74 of file nsBrowserStatusFilter.h.

Definition at line 80 of file nsBrowserStatusFilter.h.

Definition at line 78 of file nsBrowserStatusFilter.h.

Definition at line 75 of file nsBrowserStatusFilter.h.

Definition at line 83 of file nsBrowserStatusFilter.h.

Definition at line 85 of file nsBrowserStatusFilter.h.


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