|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : BrCtlSampleAppStateChangeObserver.h 00004 * Part of : BrCtlSampleApp 00005 * Interface : Browser Control API 00006 * Description : Handle state changed 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 BRCTLSAMPLEAPPSTATECHANGEOBSERVER_H 00018 #define BRCTLSAMPLEAPPSTATECHANGEOBSERVER_H 00019 00020 // INCLUDES 00021 #include <BrCtlInterface.h> 00022 00023 // FORWARD DECLARATIONS 00024 class CBrCtlSampleAppContainer; 00025 00026 // CLASS DECLARATION 00027 00028 /** 00029 * CBrCtlSampleAppStateChangeObserver class. 00030 * This class inherits from the MBrCtlStateChangeObserver interface which is used to 00031 * receive state-changed events. 00032 */ 00033 class CBrCtlSampleAppStateChangeObserver : public CBase, public MBrCtlStateChangeObserver 00034 { 00035 public: // Constructors and destructor 00036 00037 /** 00038 * Two-phased constructor. 00039 */ 00040 static CBrCtlSampleAppStateChangeObserver* NewL(CBrCtlSampleAppContainer* aContainer); 00041 00042 /** 00043 * Destructor. 00044 */ 00045 ~CBrCtlSampleAppStateChangeObserver(); 00046 00047 /** 00048 * A state change events notification 00049 * @since 2.8 00050 * @param aState The state, currently the only state is EStateImageMapView 00051 * @param aValue This value will be true if we going to image map view and 00052 * it will be false if we are returning from image map view 00053 * @return void 00054 */ 00055 void StateChanged(TBrCtlDefs::TBrCtlState aState, TInt aValue); 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 // BRCTLSAMPLEAPPSTATECHANGEOBSERVER_H 00069 00070 // End of File 00071
|
© Nokia 2006 |