33
|
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 MUSUICLIPSHARINGVIEWCONTAINER_H
|
|
21 |
#define MUSUICLIPSHARINGVIEWCONTAINER_H
|
|
22 |
|
|
23 |
#include "musuisendviewcontainer.h"
|
|
24 |
|
|
25 |
#include <MMGFetchVerifier.h> // Media Gallery fetcher verifier
|
|
26 |
#include <AknProgressDialog.h>
|
|
27 |
|
|
28 |
class CAknProgressDialog;
|
|
29 |
class CEikProgressInfo;
|
|
30 |
|
|
31 |
/**
|
|
32 |
*
|
|
33 |
*
|
|
34 |
*
|
|
35 |
*/
|
|
36 |
class CMusUiClipSharingViewContainer : public CMusUiSendViewContainer,
|
|
37 |
public MMGFetchVerifier,
|
|
38 |
public MProgressDialogCallback
|
|
39 |
|
|
40 |
{
|
|
41 |
|
|
42 |
public: // constructors and destructor
|
|
43 |
|
|
44 |
/**
|
|
45 |
* Symbian second-phase constructor.
|
|
46 |
*
|
|
47 |
* @param aView Parent view of container.
|
|
48 |
* @param aRect Frame rectangle for container.
|
|
49 |
* @param aInputParams Packaged data.
|
|
50 |
*/
|
|
51 |
void ConstructL( CMusUiGeneralView* aView, const TRect& aRect );
|
|
52 |
|
|
53 |
/**
|
|
54 |
* Destructor.
|
|
55 |
*/
|
|
56 |
~CMusUiClipSharingViewContainer();
|
|
57 |
|
|
58 |
|
|
59 |
public: // new functions
|
|
60 |
|
|
61 |
void ShowTranscodingProgressDialogL();
|
|
62 |
|
|
63 |
void UpdateClipTranscodingPercentageL( TInt aPercentage );
|
|
64 |
|
|
65 |
void CancelTranscodingL();
|
|
66 |
|
|
67 |
void RunFetchDialogL();
|
|
68 |
|
|
69 |
const TDesC& FetchedFileName();
|
|
70 |
|
|
71 |
TBool FileSelected();
|
|
72 |
|
|
73 |
void SetDurationValue( TInt aDurationValue );
|
|
74 |
|
|
75 |
void SetPositionValueL( TInt aPositionValue );
|
|
76 |
|
|
77 |
void SetDurationIndicatorVisible( TBool aVisible );
|
|
78 |
|
|
79 |
public: // from base class MMGFetchVerifier
|
|
80 |
|
|
81 |
/**
|
|
82 |
* Verifies the current user selection.
|
|
83 |
*
|
|
84 |
* @param aSelectedFiles Descriptor array of selected files.
|
|
85 |
* @return EFalse if selection can't be used. If ok, returns ETrue.
|
|
86 |
*/
|
|
87 |
TBool VerifySelectionL( const MDesCArray* aSelectedFiles );
|
|
88 |
|
|
89 |
public: // from MProgressDialogCallback
|
|
90 |
|
|
91 |
/**
|
|
92 |
* Callback method
|
|
93 |
* Get's called when a dialog is dismissed.
|
|
94 |
*/
|
|
95 |
void DialogDismissedL( TInt aButtonId );
|
|
96 |
|
|
97 |
|
|
98 |
private: // from base class CCoeControl
|
|
99 |
|
|
100 |
/**
|
|
101 |
* Returns the number of control contained by this class.
|
|
102 |
*
|
|
103 |
* @return Number of controls contained
|
|
104 |
*/
|
|
105 |
TInt CountComponentControls() const;
|
|
106 |
|
|
107 |
/**
|
|
108 |
* Returns handle to control pointed by aIndex.
|
|
109 |
*
|
|
110 |
* @param aIndex Wanted control's index [0..n]
|
|
111 |
* @return Handle to wanted control
|
|
112 |
*/
|
|
113 |
CCoeControl* ComponentControl( TInt aIndex ) const;
|
|
114 |
|
|
115 |
/**
|
|
116 |
* Gets called by the application framework when drawing is
|
|
117 |
* needed.
|
|
118 |
*
|
|
119 |
* @param aRect The rectangle that needs to be drawn.
|
|
120 |
*/
|
|
121 |
void Draw( const TRect& aRect ) const;
|
|
122 |
|
|
123 |
/**
|
|
124 |
* Handles key events.
|
|
125 |
*
|
|
126 |
* @param aEvent The event that occured.
|
|
127 |
* @param aType Type of key event: EEventKey, EEventKeyUp, or
|
|
128 |
* EEventKeyDown.
|
|
129 |
* @return The container's response to event: either
|
|
130 |
* EKeyWasNotConsumed or EKeyWasConsumed.
|
|
131 |
*/
|
|
132 |
TKeyResponse OfferKeyEventL( const TKeyEvent& aEvent, TEventCode aType );
|
|
133 |
|
|
134 |
protected: // data
|
|
135 |
|
|
136 |
/**
|
|
137 |
* ETrue if operator specific functionality is needed
|
|
138 |
*/
|
|
139 |
TBool iOperatorSpecificFunctionality;
|
|
140 |
private: // data
|
|
141 |
|
|
142 |
/**
|
|
143 |
* A progress dialog to show the transcoding progress. Own.
|
|
144 |
*/
|
|
145 |
CAknProgressDialog* iTranscodingDialog;
|
|
146 |
|
|
147 |
/**
|
|
148 |
* A progress dialog to show the transcoding progress. Own.
|
|
149 |
*/
|
|
150 |
CEikProgressInfo* iTranscodingProgress;
|
|
151 |
|
|
152 |
HBufC* iFileName;
|
|
153 |
|
|
154 |
TBool iFileSelected;
|
|
155 |
|
|
156 |
TBool iTranscodingOngoing;
|
|
157 |
|
|
158 |
};
|
|
159 |
|
|
160 |
|
|
161 |
#endif // MUSUICLIPSHARINGVIEWCONTAINER_H
|
|
162 |
|
|
163 |
// end of file
|