|
1 /* |
|
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "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 * |
|
14 * Description: The MUS application's UI class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MUSUICLIPSHARINGVIEW_H |
|
21 #define MUSUICLIPSHARINGVIEW_H |
|
22 |
|
23 |
|
24 #include "musuisendview.h" // Base view class |
|
25 #include "musuiclipsharingobserver.h" |
|
26 |
|
27 #include <aknview.h> |
|
28 |
|
29 class CMusUiClipSharingViewContainer; |
|
30 class CMusUiClipSharingController; |
|
31 class CMusUiActivityManager; |
|
32 class CMusUiBackgroundViewContainer; |
|
33 class CAknToolbar; |
|
34 |
|
35 |
|
36 /** |
|
37 * The MUS application's clip sharing view. |
|
38 * |
|
39 * @lib musui.exe |
|
40 */ |
|
41 class CMusUiClipSharingView : public CMusUiSendView, |
|
42 public MMusUiClipSharingObserver |
|
43 { |
|
44 |
|
45 public: // constructors and destructor |
|
46 |
|
47 /** |
|
48 * EPOC 2nd phase constructor. |
|
49 */ |
|
50 void ConstructL(); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 virtual ~CMusUiClipSharingView(); |
|
56 |
|
57 |
|
58 public: // from base class CAknView |
|
59 |
|
60 /** |
|
61 * From CAknView returns Uid of View |
|
62 * @return TUid uid of the view |
|
63 */ |
|
64 virtual TUid Id() const; |
|
65 |
|
66 // From MEikMenuObserver, Called by framework before constructing menupane |
|
67 virtual void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
68 |
|
69 |
|
70 public: // from CMusUiGeneralView |
|
71 |
|
72 virtual void HandleToolbarCommandL( TInt aCommand ); |
|
73 |
|
74 virtual void HandleKeyUpEvent( TInt aKeyCode ); |
|
75 |
|
76 virtual void SetInitialFocusedItemL(); |
|
77 |
|
78 public: // from base class MAknToolbarObserver |
|
79 |
|
80 virtual void DynInitToolbarL( TInt aResourceId, CAknToolbar* aToolbar ); |
|
81 |
|
82 |
|
83 public: // from MMusUiClipSharingObserver |
|
84 |
|
85 virtual void RunFetchDialogL(); |
|
86 |
|
87 virtual void ShowTranscodingProgressDialogL(); |
|
88 |
|
89 virtual void UpdateClipTranscodingPercentageL( TInt aPercetage ); |
|
90 |
|
91 virtual void CancelTranscodingDialogL(); |
|
92 |
|
93 virtual void UpdateClipPositionL( TInt aPositionInSeconds, |
|
94 const TDesC& aFormattedPosition ); |
|
95 |
|
96 virtual void SetDurationValue( TInt aDurationValue ); |
|
97 |
|
98 virtual void SetPositionValueL( TInt aPositionValue ); |
|
99 |
|
100 virtual void SetDurationVisible(); |
|
101 |
|
102 virtual void ReplaceToolbarCommand( TInt aOldCommand, |
|
103 TInt aNewCommand, |
|
104 TBool aSetNewCommandFocused ); |
|
105 |
|
106 |
|
107 public: // new functions |
|
108 |
|
109 void RefreshView(); |
|
110 |
|
111 void CancelTranscodingL(); |
|
112 |
|
113 |
|
114 protected: // from CMusUiSendView |
|
115 |
|
116 virtual CMusUiSendController* SendController() const; |
|
117 |
|
118 virtual CMusUiSendViewContainer* SendContainer() const; |
|
119 |
|
120 |
|
121 private: |
|
122 |
|
123 /** |
|
124 * Gets called by the framework when it's activating this view. |
|
125 * |
|
126 * @param aPrevViewId Previous view id |
|
127 * @param aCustomMessageId Custom message's id |
|
128 * @param aCustomMessage Custom message |
|
129 */ |
|
130 void DoActivateL( const TVwsViewId& aPrevViewId, |
|
131 TUid aCustomMessageId, |
|
132 const TDesC8& aCustomMessage ); |
|
133 |
|
134 /** |
|
135 * Gets called by the framework when it's deactivating this view. |
|
136 */ |
|
137 void DoDeactivate(); |
|
138 |
|
139 |
|
140 private: // data |
|
141 |
|
142 /** Container for all controls in this view. Owns. */ |
|
143 CMusUiClipSharingViewContainer* iContainer; |
|
144 |
|
145 CMusUiClipSharingController* iController; |
|
146 |
|
147 }; |
|
148 |
|
149 #endif // MUSUICLIPSHARINGVIEW_H |
|
150 |
|
151 // end of file |