|
1 /* |
|
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Handle state changed events |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef BRCTLBCTESTSTATECHANGEOBSERVER_H |
|
21 #define BRCTLBCTESTSTATECHANGEOBSERVER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <BrCtlInterface.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CBrCtlApiTestContainer; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * CBrCtlApiTestStateChangeObserver class. |
|
33 * This class inherits from the MBrCtlStateChangeObserver interface which is used to |
|
34 * receive state-changed events. |
|
35 */ |
|
36 class CBrCtlApiTestStateChangeObserver : public CBase, public MBrCtlStateChangeObserver |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 */ |
|
43 static CBrCtlApiTestStateChangeObserver* NewL(CBrCtlApiTestContainer* aContainer); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 ~CBrCtlApiTestStateChangeObserver(); |
|
49 |
|
50 /** |
|
51 * A state change events notification |
|
52 * @since 2.8 |
|
53 * @param aState The state, currently the only state is EStateImageMapView |
|
54 * @param aValue This value will be true if we going to image map view and |
|
55 * it will be false if we are returning from image map view |
|
56 * @return void |
|
57 */ |
|
58 void StateChanged(TBrCtlDefs::TBrCtlState aState, TInt aValue); |
|
59 |
|
60 private: |
|
61 /** |
|
62 * By default Symbian 2nd phase constructor is private. |
|
63 */ |
|
64 void ConstructL(CBrCtlApiTestContainer* aContainer); |
|
65 |
|
66 private: // data |
|
67 // Pointer to the container class associated with this observer |
|
68 CBrCtlApiTestContainer* iContainer; |
|
69 }; |
|
70 |
|
71 #endif // BRCTLBCTESTSTATECHANGEOBSERVER_H |
|
72 |
|
73 // End of File |
|
74 |