1
/* $Id: symbian_ua_guiAppUi.h 3550 2011-05-05 05:33:27Z nanang $ */
3
* Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
#ifndef SYMBIAN_UA_GUIAPPUI_H
20
#define SYMBIAN_UA_GUIAPPUI_H
22
// [[[ begin generated region: do not modify [Generated Includes]
23
#include <aknviewappui.h>
24
#include <aknwaitdialog.h>
25
// ]]] end generated region [Generated Includes]
27
// [[[ begin generated region: do not modify [Generated Forward Declarations]
28
class Csymbian_ua_guiContainerView;
29
class Csymbian_ua_guiSettingItemListView;
30
// ]]] end generated region [Generated Forward Declarations]
33
* @class Csymbian_ua_guiAppUi symbian_ua_guiAppUi.h
34
* @brief The AppUi class handles application-wide aspects of the user interface, including
35
* view management and the default menu, control pane, and status pane.
37
class Csymbian_ua_guiAppUi : public CAknViewAppUi, public CTimer
40
// constructor and destructor
41
Csymbian_ua_guiAppUi();
42
virtual ~Csymbian_ua_guiAppUi();
47
TKeyResponse HandleKeyEventL(
48
const TKeyEvent& aKeyEvent,
52
void HandleCommandL( TInt aCommand );
53
void HandleResourceChangeL( TInt aType );
56
void HandleViewDeactivation(
57
const TVwsViewId& aViewIdToBeDeactivated,
58
const TVwsViewId& aNewlyActivatedViewId );
61
void InitializeContainersL();
62
// [[[ begin generated region: do not modify [Generated Methods]
64
void ExecuteDlg_wait_initLD( const TDesC* aOverrideText = NULL );
65
void RemoveDlg_wait_initL();
66
// ]]] end generated region [Generated Methods]
68
// [[[ begin generated region: do not modify [Generated Instance Variables]
70
CAknWaitDialog* iDlg_wait_init;
71
class CProgressDialogCallback;
72
CProgressDialogCallback* iDlg_wait_initCallback;
73
Csymbian_ua_guiContainerView* iSymbian_ua_guiContainerView;
74
Csymbian_ua_guiSettingItemListView* iSymbian_ua_guiSettingItemListView;
75
// ]]] end generated region [Generated Instance Variables]
78
// [[[ begin [User Handlers]
80
void HandleSymbian_ua_guiAppUiApplicationSpecificEventL(
82
const TWsEvent& anEvent );
83
void HandleDlg_wait_initCanceledL( CAknProgressDialog* aDialog );
84
// ]]] end [User Handlers]
87
// [[[ begin [Overridden Methods]
89
void HandleApplicationSpecificEventL(
91
const TWsEvent& anEvent );
92
// ]]] end [Overridden Methods]
96
// [[[ begin [MProgressDialogCallback support]
98
typedef void ( Csymbian_ua_guiAppUi::*ProgressDialogEventHandler )(
99
CAknProgressDialog* aProgressDialog );
102
* This is a helper class for progress/wait dialog callbacks. It routes the dialog's
103
* cancel notification to the handler function for the cancel event.
105
class CProgressDialogCallback : public CBase, public MProgressDialogCallback
108
CProgressDialogCallback(
109
Csymbian_ua_guiAppUi* aHandlerObj,
110
CAknProgressDialog* aDialog,
111
ProgressDialogEventHandler aHandler ) :
112
handlerObj( aHandlerObj ), dialog( aDialog ), handler( aHandler )
115
void DialogDismissedL( TInt aButtonId )
117
( handlerObj->*handler )( dialog );
120
Csymbian_ua_guiAppUi* handlerObj;
121
CAknProgressDialog* dialog;
122
ProgressDialogEventHandler handler;
125
// ]]] end [MProgressDialogCallback support]
129
#endif // SYMBIAN_UA_GUIAPPUI_H