|
1 /* |
|
2 * Copyright (c) 2007 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 "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: Declares main satellite view for Blid application. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CBLIDSATELLITEVIEW_H |
|
19 #define CBLIDSATELLITEVIEW_H |
|
20 |
|
21 // INCLUDES |
|
22 #include "CBlidBaseView.h" |
|
23 #include "CBlidLocSettingLauncher.h" |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CBlidSatelliteControl; |
|
27 class CAlfEnv; |
|
28 class CAlfControlGroup; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * CBlidSatelliteView view class. |
|
34 * |
|
35 */ |
|
36 class CBlidSatelliteView : public CBlidBaseView |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 /** |
|
40 * C++ default constructor. |
|
41 * @param aKeyProcessor |
|
42 * @return Created CBlidSatelliteView object |
|
43 */ |
|
44 static CBlidSatelliteView* NewLC( MKeyProcessor& aKeyProcessor,CAlfEnv& aEnv ); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 ~CBlidSatelliteView(); |
|
50 |
|
51 /** |
|
52 * Control Getter |
|
53 */ |
|
54 CBlidSatelliteControl* GetControl(); |
|
55 |
|
56 private: // constructor |
|
57 /** |
|
58 * C++ constructor |
|
59 * @param aKeyProcessor |
|
60 */ |
|
61 CBlidSatelliteView( MKeyProcessor& aKeyProcessor,CAlfEnv& aEnv ); |
|
62 |
|
63 /** |
|
64 * By default Symbian 2nd phase constructor is private. |
|
65 */ |
|
66 void ConstructL(); |
|
67 |
|
68 public: // From MKeyProcessor |
|
69 TBool ProcessKeyEventL( const TKeyEvent& aKeyEvent, |
|
70 TEventCode aType ); |
|
71 |
|
72 public: // CAknView |
|
73 TUid Id() const; |
|
74 void HandleCommandL(TInt aCommand); |
|
75 void HandleResourceChangeL( TInt aType ); |
|
76 |
|
77 #ifdef RD_SCALABLE_UI_V2 |
|
78 void HandleListBoxSelectionL(); |
|
79 #endif //RD_SCALABLE_UI_V2 |
|
80 |
|
81 public: //From MBlidEngObserver |
|
82 void NotifyL( const TBool aOnlineMode ); |
|
83 void NotifyErrorL( TInt aErrorCode ); |
|
84 |
|
85 |
|
86 private: //From CAknView |
|
87 void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, |
|
88 const TDesC8& aCustomMessage); |
|
89 void DoDeactivate(); |
|
90 |
|
91 private: // Data |
|
92 //own:navigationcontrol class |
|
93 CBlidSatelliteControl* iMainSatelliteCtrl; |
|
94 |
|
95 CAlfEnv& iEnv; |
|
96 |
|
97 CAlfControlGroup* iMainSatelliteCtrlGroup; |
|
98 }; |
|
99 |
|
100 #endif // CBLIDSATELLITEVIEW_H |
|
101 |
|
102 // End of File |