Back to index

lightning-sunbird  0.9+nobinonly
Functions
EmbedProgress.cpp File Reference
#include "EmbedProgress.h"
#include "qgeckoembed.h"
#include <nsXPIDLString.h>
#include <nsIChannel.h>
#include <nsIWebProgress.h>
#include <nsIDOMWindow.h>
#include "nsIURI.h"
#include "nsCRT.h"
#include "nsString.h"

Go to the source code of this file.

Functions

 NS_IMPL_ISUPPORTS2 (EmbedProgress, nsIWebProgressListener, nsISupportsWeakReference) NS_IMETHODIMP EmbedProgress

Function Documentation

Definition at line 64 of file EmbedProgress.cpp.

{
    // give the widget a chance to attach any listeners
    mOwner->contentStateChanged();
    // if we've got the start flag, emit the signal
    if ((aStateFlags & STATE_IS_NETWORK) &&
        (aStateFlags & STATE_START))
    {
        qDebug("net start");
        emit mOwner->netStart();
    }

    //XXX: emit state all here

    if ((aStateFlags & STATE_IS_NETWORK) &&
             (aStateFlags & STATE_STOP)) {
        //qDebug("progress: --stop");
        emit mOwner->netStop();
        mOwner->contentFinishedLoading();
    }

    return NS_OK;
}