2 ========================================================================
3 Name : ComingNext_SkinFetcherAppUi.cpp
4 Author : Michael Prager
5 Copyright : Licensed under GPLv3
7 ========================================================================
9 // [[[ begin generated region: do not modify [Generated System Includes]
11 #include <akncontext.h>
13 #include <ComingNext_SkinFetcher.rsg>
14 // ]]] end generated region [Generated System Includes]
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]
22 // [[[ begin generated region: do not modify [Generated Constants]
23 // ]]] end generated region [Generated Constants]
26 * Construct the CComingNext_SkinFetcherAppUi instance
28 CComingNext_SkinFetcherAppUi::CComingNext_SkinFetcherAppUi()
30 // [[[ begin generated region: do not modify [Generated Contents]
31 // ]]] end generated region [Generated Contents]
36 * The appui's destructor removes the container from the control
37 * stack and destroys it.
39 CComingNext_SkinFetcherAppUi::~CComingNext_SkinFetcherAppUi()
41 // [[[ begin generated region: do not modify [Generated Contents]
42 // ]]] end generated region [Generated Contents]
46 // [[[ begin generated function: do not modify
47 void CComingNext_SkinFetcherAppUi::InitializeContainersL()
49 iComingNext_SkinFetcherContainerView
50 = CComingNext_SkinFetcherContainerView::NewL();
51 AddViewL(iComingNext_SkinFetcherContainerView
);
52 SetDefaultViewL(*iComingNext_SkinFetcherContainerView
);
54 // ]]] end generated function
57 * Handle a command for this appui (override)
58 * @param aCommand command id to be handled
60 void CComingNext_SkinFetcherAppUi::HandleCommandL(TInt aCommand
)
62 // [[[ begin generated region: do not modify [Generated Code]
63 TBool commandHandled
= EFalse
;
65 { // code to dispatch to the AppUi's menu and CBA commands is generated here
78 if (aCommand
== EAknSoftkeyExit
|| aCommand
== EEikCmdExit
)
83 // ]]] end generated region [Generated Code]
88 * Override of the HandleResourceChangeL virtual function
90 void CComingNext_SkinFetcherAppUi::HandleResourceChangeL(TInt aType
)
92 CAknViewAppUi::HandleResourceChangeL(aType
);
93 // [[[ begin generated region: do not modify [Generated Code]
94 // ]]] end generated region [Generated Code]
99 * Override of the HandleKeyEventL virtual function
100 * @return EKeyWasConsumed if event was handled, EKeyWasNotConsumed if not
104 TKeyResponse
CComingNext_SkinFetcherAppUi::HandleKeyEventL(
105 const TKeyEvent
& aKeyEvent
, TEventCode aType
)
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]
111 return EKeyWasNotConsumed
;
115 * Override of the HandleViewDeactivation virtual function
117 * @param aViewIdToBeDeactivated
118 * @param aNewlyActivatedViewId
120 void CComingNext_SkinFetcherAppUi::HandleViewDeactivation(
121 const TVwsViewId
& aViewIdToBeDeactivated
,
122 const TVwsViewId
& aNewlyActivatedViewId
)
124 CAknViewAppUi::HandleViewDeactivation(aViewIdToBeDeactivated
,
125 aNewlyActivatedViewId
);
126 // [[[ begin generated region: do not modify [Generated Contents]
127 // ]]] end generated region [Generated Contents]
132 * @brief Completes the second phase of Symbian object construction.
133 * Put initialization code that could leave here.
135 void CComingNext_SkinFetcherAppUi::ConstructL()
137 // [[[ begin generated region: do not modify [Generated Contents]
139 BaseConstructL(EAknEnableSkin
| EAknEnableMSK
);
140 InitializeContainersL();
141 // ]]] end generated region [Generated Contents]