brctlsampleapploadeventobserver.h

来自「S60上实现嵌入式浏览器,可以在应用程序中嵌入浏览器,实现IE功能」· C头文件 代码 · 共 72 行

H
72
字号
/*
* ==============================================================================
*  Name        : BrCtlSampleAppLoadEventObserver.h
*  Part of     : BrCtlSampleApp
*  Interface   : Browser Control API
*  Description : Handle load progress events
*  Version     : 
*
*  Copyright (c) 2005-2006 Nokia Corporation.
*  This material, including documentation and any related 
*  computer programs, is protected by copyright controlled by 
*  Nokia Corporation.
* ==============================================================================
*/


#ifndef BRCTLSAMPLEAPPLOADEVENTOBSERVER_H
#define BRCTLSAMPLEAPPLOADEVENTOBSERVER_H

// INCLUDES
#include <BrCtlInterface.h>

// FORWARD DECLARATIONS
class CBrCtlSampleAppContainer;

// CLASS DECLARATION

/**
* CBrCtlSampleAppLoadEventObserver class.
* This class inherits from the MBrCtlLoadEventObserver interface. 
* This class is used to receive load progress events.
*/
class CBrCtlSampleAppLoadEventObserver : public CBase, public MBrCtlLoadEventObserver
    {
    public:  // Constructors and destructor

        /**
        * Two-phased constructor.
        */
        static CBrCtlSampleAppLoadEventObserver* NewL(CBrCtlSampleAppContainer* aContainer);

        /**
        * Destructor.
        */
        ~CBrCtlSampleAppLoadEventObserver();

        /**
        * A load events notification
        * @since 2.8
        * @param aLoadEvent The load event   
        * @param aSize Size depends on the event
        * @param aTransactionId The transaction id of the transaction that had this event
        * @return void
        */
        void HandleBrowserLoadEventL(TBrCtlDefs::TBrCtlLoadEvent aLoadEvent, TUint aSize, TUint16 aTransactionId) ;

    private:
	    /**
        * By default Symbian 2nd phase constructor is private.
        */
        void ConstructL(CBrCtlSampleAppContainer* aContainer);

    private:   // data
        // Pointer to the container class associated with this observer
        CBrCtlSampleAppContainer* iContainer;
    };

#endif      // BRCTLSAMPLEAPPLOADEVENTOBSERVER_H
            
// End of File

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?