~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject-2.1.0/pjsip-apps/src/symbian_ua_gui/inc/symbian_ua_guiAppUi.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-07 14:51:16 UTC
  • mfrom: (4.3.5 sid)
  • Revision ID: package-import@ubuntu.com-20150107145116-yxnafinf4lrdvrmx
Tags: 1.4.1-0.1ubuntu1
* Merge with Debian, remaining changes:
 - Drop soprano, nepomuk build-dep
* Drop ubuntu patches, now upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: symbian_ua_guiAppUi.h 3550 2011-05-05 05:33:27Z nanang $ */
2
 
/* 
3
 
 * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
4
 
 *
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.
9
 
 *
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.
14
 
 *
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 
18
 
 */
19
 
#ifndef SYMBIAN_UA_GUIAPPUI_H
20
 
#define SYMBIAN_UA_GUIAPPUI_H
21
 
 
22
 
// [[[ begin generated region: do not modify [Generated Includes]
23
 
#include <aknviewappui.h>
24
 
#include <aknwaitdialog.h>
25
 
// ]]] end generated region [Generated Includes]
26
 
 
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]
31
 
 
32
 
/**
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.
36
 
 */
37
 
class Csymbian_ua_guiAppUi : public CAknViewAppUi, public CTimer
38
 
        {
39
 
public: 
40
 
        // constructor and destructor
41
 
        Csymbian_ua_guiAppUi();
42
 
        virtual ~Csymbian_ua_guiAppUi();
43
 
        void ConstructL();
44
 
 
45
 
public:
46
 
        // from CCoeAppUi
47
 
        TKeyResponse HandleKeyEventL(
48
 
                                const TKeyEvent& aKeyEvent,
49
 
                                TEventCode aType );
50
 
 
51
 
        // from CEikAppUi
52
 
        void HandleCommandL( TInt aCommand );
53
 
        void HandleResourceChangeL( TInt aType );
54
 
 
55
 
        // from CAknAppUi
56
 
        void HandleViewDeactivation( 
57
 
                        const TVwsViewId& aViewIdToBeDeactivated, 
58
 
                        const TVwsViewId& aNewlyActivatedViewId );
59
 
 
60
 
private:
61
 
        void InitializeContainersL();
62
 
        // [[[ begin generated region: do not modify [Generated Methods]
63
 
public: 
64
 
        void ExecuteDlg_wait_initLD( const TDesC* aOverrideText = NULL );
65
 
        void RemoveDlg_wait_initL();
66
 
        // ]]] end generated region [Generated Methods]
67
 
        
68
 
        // [[[ begin generated region: do not modify [Generated Instance Variables]
69
 
private: 
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]
76
 
        
77
 
        
78
 
        // [[[ begin [User Handlers]
79
 
protected: 
80
 
        void HandleSymbian_ua_guiAppUiApplicationSpecificEventL( 
81
 
                        TInt aType, 
82
 
                        const TWsEvent& anEvent );
83
 
        void HandleDlg_wait_initCanceledL( CAknProgressDialog* aDialog );
84
 
        // ]]] end [User Handlers]
85
 
        
86
 
        
87
 
        // [[[ begin [Overridden Methods]
88
 
protected: 
89
 
        void HandleApplicationSpecificEventL( 
90
 
                        TInt aType, 
91
 
                        const TWsEvent& anEvent );
92
 
        // ]]] end [Overridden Methods]
93
 
        
94
 
        virtual void RunL();
95
 
        
96
 
        // [[[ begin [MProgressDialogCallback support]
97
 
private: 
98
 
        typedef void ( Csymbian_ua_guiAppUi::*ProgressDialogEventHandler )( 
99
 
                        CAknProgressDialog* aProgressDialog );
100
 
        
101
 
        /**
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.
104
 
         */
105
 
        class CProgressDialogCallback : public CBase, public MProgressDialogCallback
106
 
                { 
107
 
                public:
108
 
                        CProgressDialogCallback( 
109
 
                                        Csymbian_ua_guiAppUi* aHandlerObj, 
110
 
                                        CAknProgressDialog* aDialog, 
111
 
                                        ProgressDialogEventHandler aHandler ) :
112
 
                                handlerObj( aHandlerObj ), dialog( aDialog ), handler( aHandler )
113
 
                                {}
114
 
                                
115
 
                        void DialogDismissedL( TInt aButtonId ) 
116
 
                                {
117
 
                                ( handlerObj->*handler )( dialog );
118
 
                                }
119
 
                private:
120
 
                        Csymbian_ua_guiAppUi* handlerObj;
121
 
                        CAknProgressDialog* dialog;
122
 
                        ProgressDialogEventHandler handler;
123
 
                };
124
 
                
125
 
        // ]]] end [MProgressDialogCallback support]
126
 
        
127
 
        };
128
 
 
129
 
#endif // SYMBIAN_UA_GUIAPPUI_H