|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 #ifndef CXEVIDEORECORDERUTILITYSYMBIAN_H_ |
|
18 #define CXEVIDEORECORDERUTILITYSYMBIAN_H_ |
|
19 |
|
20 #include <videorecorder.h> |
|
21 #include "cxevideorecorderutility.h" |
|
22 |
|
23 class CxeVideoRecorderUtilitySymbian : public CxeVideoRecorderUtility |
|
24 { |
|
25 public: |
|
26 |
|
27 CxeVideoRecorderUtilitySymbian(MVideoRecorderUtilityObserver& aObserver, |
|
28 TInt aPriority=EMdaPriorityNormal, |
|
29 TMdaPriorityPreference aPref=EMdaPriorityPreferenceTimeAndQuality); |
|
30 |
|
31 ~CxeVideoRecorderUtilitySymbian(); |
|
32 |
|
33 TInt CustomCommandSync(const TMMFMessageDestinationPckg& aDestination, |
|
34 TInt aFunction, |
|
35 const TDesC8& aDataTo1, |
|
36 const TDesC8& aDataTo2); |
|
37 void OpenFileL(const TDesC& aFileName, |
|
38 TInt aCameraHandle, |
|
39 TUid aControllerUid, |
|
40 TUid aVideoFormat, |
|
41 const TDesC8& aVideoType = KNullDesC8, |
|
42 TFourCC aAudioType = KMMFFourCCCodeNULL); |
|
43 void SetVideoFrameSizeL(TSize aSize); |
|
44 void SetVideoFrameRateL(TInt aRate); |
|
45 void SetVideoBitRateL(TInt aRate); |
|
46 void SetAudioEnabledL(TBool aEnable); |
|
47 void SetMaxClipSizeL(TInt aClipSizeInBytes); |
|
48 void Close(); |
|
49 void Prepare(); |
|
50 void Record(); |
|
51 int Stop(); |
|
52 void PauseL(); |
|
53 TTimeIntervalMicroSeconds RecordTimeAvailable(); |
|
54 TTimeIntervalMicroSeconds DurationL(); |
|
55 private: |
|
56 CVideoRecorderUtility *mVideoRecorder; |
|
57 int mStartuperror; |
|
58 }; |
|
59 |
|
60 |
|
61 #endif /*CXEVIDEORECORDERUTILITYSYMBIAN_H_*/ |