]> code.delx.au - comingnext/blob - ComingNext_SkinFetcher/src/ComingNext_SkinFetcherAppUi.cpp
added first implementation of ComingNext Skin Fetcher app
[comingnext] / ComingNext_SkinFetcher / src / ComingNext_SkinFetcherAppUi.cpp
1 /*
2 ========================================================================
3 Name : ComingNext_SkinFetcherAppUi.cpp
4 Author : Michael Prager
5 Copyright : Licensed under GPLv3
6 Description :
7 ========================================================================
8 */
9 // [[[ begin generated region: do not modify [Generated System Includes]
10 #include <eikmenub.h>
11 #include <akncontext.h>
12 #include <akntitle.h>
13 #include <ComingNext_SkinFetcher.rsg>
14 // ]]] end generated region [Generated System Includes]
15
16 // [[[ begin generated region: do not modify [Generated User Includes]
17 #include "ComingNext_SkinFetcherAppUi.h"
18 #include "ComingNext_SkinFetcher.hrh"
19 #include "ComingNext_SkinFetcherContainerView.h"
20 // ]]] end generated region [Generated User Includes]
21
22 // [[[ begin generated region: do not modify [Generated Constants]
23 // ]]] end generated region [Generated Constants]
24
25 /**
26 * Construct the CComingNext_SkinFetcherAppUi instance
27 */
28 CComingNext_SkinFetcherAppUi::CComingNext_SkinFetcherAppUi()
29 {
30 // [[[ begin generated region: do not modify [Generated Contents]
31 // ]]] end generated region [Generated Contents]
32
33 }
34
35 /**
36 * The appui's destructor removes the container from the control
37 * stack and destroys it.
38 */
39 CComingNext_SkinFetcherAppUi::~CComingNext_SkinFetcherAppUi()
40 {
41 // [[[ begin generated region: do not modify [Generated Contents]
42 // ]]] end generated region [Generated Contents]
43
44 }
45
46 // [[[ begin generated function: do not modify
47 void CComingNext_SkinFetcherAppUi::InitializeContainersL()
48 {
49 iComingNext_SkinFetcherContainerView
50 = CComingNext_SkinFetcherContainerView::NewL();
51 AddViewL(iComingNext_SkinFetcherContainerView);
52 SetDefaultViewL(*iComingNext_SkinFetcherContainerView);
53 }
54 // ]]] end generated function
55
56 /**
57 * Handle a command for this appui (override)
58 * @param aCommand command id to be handled
59 */
60 void CComingNext_SkinFetcherAppUi::HandleCommandL(TInt aCommand)
61 {
62 // [[[ begin generated region: do not modify [Generated Code]
63 TBool commandHandled = EFalse;
64 switch (aCommand)
65 { // code to dispatch to the AppUi's menu and CBA commands is generated here
66
67 case EAknSoftkeyOk:
68 break;
69
70 case EAknSoftkeyExit:
71 break;
72 default:
73 break;
74 }
75
76 if (!commandHandled)
77 {
78 if (aCommand == EAknSoftkeyExit || aCommand == EEikCmdExit)
79 {
80 Exit();
81 }
82 }
83 // ]]] end generated region [Generated Code]
84
85 }
86
87 /**
88 * Override of the HandleResourceChangeL virtual function
89 */
90 void CComingNext_SkinFetcherAppUi::HandleResourceChangeL(TInt aType)
91 {
92 CAknViewAppUi::HandleResourceChangeL(aType);
93 // [[[ begin generated region: do not modify [Generated Code]
94 // ]]] end generated region [Generated Code]
95
96 }
97
98 /**
99 * Override of the HandleKeyEventL virtual function
100 * @return EKeyWasConsumed if event was handled, EKeyWasNotConsumed if not
101 * @param aKeyEvent
102 * @param aType
103 */
104 TKeyResponse CComingNext_SkinFetcherAppUi::HandleKeyEventL(
105 const TKeyEvent& aKeyEvent, TEventCode aType)
106 {
107 // The inherited HandleKeyEventL is private and cannot be called
108 // [[[ begin generated region: do not modify [Generated Contents]
109 // ]]] end generated region [Generated Contents]
110
111 return EKeyWasNotConsumed;
112 }
113
114 /**
115 * Override of the HandleViewDeactivation virtual function
116 *
117 * @param aViewIdToBeDeactivated
118 * @param aNewlyActivatedViewId
119 */
120 void CComingNext_SkinFetcherAppUi::HandleViewDeactivation(
121 const TVwsViewId& aViewIdToBeDeactivated,
122 const TVwsViewId& aNewlyActivatedViewId)
123 {
124 CAknViewAppUi::HandleViewDeactivation(aViewIdToBeDeactivated,
125 aNewlyActivatedViewId);
126 // [[[ begin generated region: do not modify [Generated Contents]
127 // ]]] end generated region [Generated Contents]
128
129 }
130
131 /**
132 * @brief Completes the second phase of Symbian object construction.
133 * Put initialization code that could leave here.
134 */
135 void CComingNext_SkinFetcherAppUi::ConstructL()
136 {
137 // [[[ begin generated region: do not modify [Generated Contents]
138
139 BaseConstructL(EAknEnableSkin | EAknEnableMSK);
140 InitializeContainersL();
141 // ]]] end generated region [Generated Contents]
142
143 }