1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "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 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef VEDAPPUI_H |
|
22 #define VEDAPPUI_H |
|
23 |
|
24 // INCLUDES |
|
25 // System includes |
|
26 #include <eikapp.h> |
|
27 #include <eikdoc.h> |
|
28 #include <e32std.h> |
|
29 #include <coeccntx.h> |
|
30 #include <aknviewappui.h> |
|
31 #include <akntabgrp.h> |
|
32 #include <aknnavide.h> |
|
33 #include <MMGXFileNotificationObserver.h> |
|
34 // User includes |
|
35 #include "VeiSettingsView.h" |
|
36 #include "VideoEditorDebugUtils.h" |
|
37 |
|
38 // FORWARD DECLARATIONS |
|
39 class CVeiSettingsView; |
|
40 class CVeiEditVideoView; |
|
41 class CVeiCutVideoView; |
|
42 class CVeiSettingsView; |
|
43 class CVeiCutAudioView; |
|
44 class CVeiTrimForMmsView; |
|
45 class CSendUi; |
|
46 class CEikAppUi; |
|
47 class CMGXFileNotificationHandler; |
|
48 |
|
49 /** |
|
50 * Application UI class. |
|
51 * Provides support for the following features: |
|
52 * - EIKON control architecture |
|
53 * - view architecture |
|
54 * - status pane |
|
55 * |
|
56 */ |
|
57 class CVeiAppUi: public CAknViewAppUi, |
|
58 public MMGXFileNotificationObserver |
|
59 { |
|
60 public: |
|
61 // // Constructors and destructor |
|
62 |
|
63 /** |
|
64 * Default constructor. |
|
65 */ |
|
66 void ConstructL(); |
|
67 |
|
68 /** |
|
69 * Destructor. |
|
70 */ |
|
71 ~CVeiAppUi(); |
|
72 |
|
73 public: |
|
74 // New functions |
|
75 inline TInt GetVolumeLevel() { return iVolume; }; |
|
76 |
|
77 inline void SetVolumeLevel( TInt aVolume ) { iVolume=aVolume; }; |
|
78 |
|
79 void InsertVideoClipToMovieL( TBool aDoOpen, const TDesC& aFilename ); |
|
80 |
|
81 CVeiAppUi(); |
|
82 |
|
83 /** HandleError |
|
84 * |
|
85 * @CAknAppUi |
|
86 */ |
|
87 virtual TErrorHandlerResponse HandleError( TInt aError, |
|
88 const SExtendedError& aExtErr, |
|
89 TDes& aErrorText, |
|
90 TDes& aContextText ); |
|
91 |
|
92 /** |
|
93 * Reads application settings data from ini-file. |
|
94 * |
|
95 * @param aSettings Settings data where values are read. |
|
96 */ |
|
97 void ReadSettingsL( TVeiSettings& aSettings )const; |
|
98 |
|
99 /** |
|
100 * Writes application settings data to ini-file. |
|
101 * |
|
102 * @param aSettings Settings data where values are written. |
|
103 */ |
|
104 void WriteSettingsL( const TVeiSettings& aSettings )const; |
|
105 |
|
106 inline TBool AppIsOnTheWayToDestruction() { return iOnTheWayToDestruction; }; |
|
107 |
|
108 private: |
|
109 /** |
|
110 * From CEikAppUi, takes care of command handling. |
|
111 * @param aCommand command to be handled |
|
112 */ |
|
113 void HandleCommandL( TInt aCommand ); |
|
114 |
|
115 /** |
|
116 * From CEikAppUi, handles key events. |
|
117 * @param aKeyEvent Event to handled. |
|
118 * @param aType Type of the key event. |
|
119 * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). |
|
120 */ |
|
121 virtual TKeyResponse HandleKeyEventL( const TKeyEvent& aKeyEvent, |
|
122 TEventCode aType ); |
|
123 |
|
124 /** |
|
125 * From CAknAppUiBase. |
|
126 * Calls CAknViewAppUi::HandleScreenDeviceChangedL(). |
|
127 */ |
|
128 virtual void HandleScreenDeviceChangedL(); |
|
129 |
|
130 /** |
|
131 * From @c CEikAppUi. Handles a change to the application's resources which |
|
132 * are shared across the environment. This function calls |
|
133 * @param aType The type of resources that have changed. |
|
134 */ |
|
135 virtual void HandleResourceChangeL( TInt aType ); |
|
136 |
|
137 /** |
|
138 * From CAknAppUi, HandleForegroundEventL( TBool aForeground ) |
|
139 * @param aForeground |
|
140 */ |
|
141 virtual void HandleForegroundEventL( TBool aForeground ); |
|
142 |
|
143 // From MMGXFileNotificationObserver |
|
144 virtual void HandleFileNotificationEventL(); |
|
145 |
|
146 private: |
|
147 //Data |
|
148 |
|
149 CVeiEditVideoView* iEditVideoView; |
|
150 |
|
151 CVeiSettingsView* iSettingsView; |
|
152 |
|
153 CVeiCutVideoView* iCutVideoView; |
|
154 |
|
155 CVeiCutAudioView* iCutAudioView; |
|
156 |
|
157 CMGXFileNotificationHandler* iFileNotificationHandler; |
|
158 |
|
159 /** |
|
160 * Trim for MMS view. |
|
161 */ |
|
162 CVeiTrimForMmsView* iTrimForMmsView; |
|
163 |
|
164 /** |
|
165 * Common volume setting. |
|
166 */ |
|
167 TInt iVolume; |
|
168 |
|
169 /** |
|
170 * Send UI, MMS/Infrared/BT |
|
171 */ |
|
172 CSendUi* iSendAppUi; |
|
173 |
|
174 TProcessPriority iOriginalProcessPriority; |
|
175 TBool iProcessPriorityAltered; |
|
176 |
|
177 TBool iOnTheWayToDestruction; |
|
178 }; |
|
179 |
|
180 #endif |
|
181 |
|
182 // End of File |
|