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 __CPROCTIMEESTIMATEAO_H__ |
|
22 #define __CPROCTIMEESTIMATEAO_H__ |
|
23 |
|
24 #include <e32base.h> |
|
25 #include "AudSong.h" |
|
26 #include "AudCommon.h" |
|
27 #include "ProcProcessAO.h" |
|
28 |
|
29 class CProcProcess; |
|
30 |
|
31 |
|
32 class CProcTimeEstimateAO : public CActive |
|
33 { |
|
34 |
|
35 public: |
|
36 |
|
37 static CProcTimeEstimateAO* NewL(); |
|
38 |
|
39 virtual ~CProcTimeEstimateAO(); |
|
40 |
|
41 /** |
|
42 * |
|
43 * Starts retrieving audio clip info |
|
44 * |
|
45 * @param aFilename filename of the input file |
|
46 * @param aObserver observer to be notified of progress |
|
47 * @param aProperties properties of the input file. |
|
48 * Needs to be allocated by the caller, |
|
49 * and will filled in as a result of calling |
|
50 * this function |
|
51 * @param aPriority priority of the operation |
|
52 * |
|
53 */ |
|
54 TBool StartL(const CAudSong* aSong, MAudTimeEstimateObserver& aTEObserver); |
|
55 void CancelTimeEstimate(); |
|
56 |
|
57 |
|
58 |
|
59 protected: |
|
60 virtual void RunL(); |
|
61 virtual void DoCancel(); |
|
62 |
|
63 private: |
|
64 |
|
65 void ConstructL(); |
|
66 |
|
67 private: |
|
68 |
|
69 |
|
70 // C++ constructor |
|
71 CProcTimeEstimateAO(); |
|
72 |
|
73 |
|
74 // processing AC for getting frames |
|
75 CProcProcess* iProcessingObject; |
|
76 |
|
77 // observer to notify |
|
78 MAudTimeEstimateObserver* iTEObserver; |
|
79 |
|
80 // song |
|
81 const CAudSong* iSong; |
|
82 |
|
83 }; |
|
84 |
|
85 |
|
86 #endif |
|