|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : BrCtlSampleAppLoadEventObserver.h 00004 * Part of : BrCtlSampleApp 00005 * Interface : Browser Control API 00006 * Description : Handle load progress events 00007 * Version : 00008 * 00009 * Copyright (c) 2005-2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 00017 #ifndef BRCTLSAMPLEAPPLOADEVENTOBSERVER_H 00018 #define BRCTLSAMPLEAPPLOADEVENTOBSERVER_H 00019 00020 // INCLUDES 00021 #include <BrCtlInterface.h> 00022 00023 // FORWARD DECLARATIONS 00024 class CBrCtlSampleAppContainer; 00025 00026 // CLASS DECLARATION 00027 00028 /** 00029 * CBrCtlSampleAppLoadEventObserver class. 00030 * This class inherits from the MBrCtlLoadEventObserver interface. 00031 * This class is used to receive load progress events. 00032 */ 00033 class CBrCtlSampleAppLoadEventObserver : public CBase, public MBrCtlLoadEventObserver 00034 { 00035 public: // Constructors and destructor 00036 00037 /** 00038 * Two-phased constructor. 00039 */ 00040 static CBrCtlSampleAppLoadEventObserver* NewL(CBrCtlSampleAppContainer* aContainer); 00041 00042 /** 00043 * Destructor. 00044 */ 00045 ~CBrCtlSampleAppLoadEventObserver(); 00046 00047 /** 00048 * A load events notification 00049 * @since 2.8 00050 * @param aLoadEvent The load event 00051 * @param aSize Size depends on the event 00052 * @param aTransactionId The transaction id of the transaction that had this event 00053 * @return void 00054 */ 00055 void HandleBrowserLoadEventL(TBrCtlDefs::TBrCtlLoadEvent aLoadEvent, TUint aSize, TUint16 aTransactionId) ; 00056 00057 private: 00058 /** 00059 * By default Symbian 2nd phase constructor is private. 00060 */ 00061 void ConstructL(CBrCtlSampleAppContainer* aContainer); 00062 00063 private: // data 00064 // Pointer to the container class associated with this observer 00065 CBrCtlSampleAppContainer* iContainer; 00066 }; 00067 00068 #endif // BRCTLSAMPLEAPPLOADEVENTOBSERVER_H 00069 00070 // End of File 00071
|
© Nokia 2006 |