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 CXEFAKEVIDEORECORDERUTILITY_H_ |
|
18 #define CXEFAKEVIDEORECORDERUTILITY_H_ |
|
19 |
|
20 #include <videorecorder.h> |
|
21 #include "cxevideorecorderutility.h" |
|
22 |
|
23 class CxeFakeVideoRecorderUtility : public CxeVideoRecorderUtility |
|
24 { |
|
25 public: |
|
26 |
|
27 CxeFakeVideoRecorderUtility(MVideoRecorderUtilityObserver& aObserver, |
|
28 TInt aPriority=EMdaPriorityNormal, |
|
29 TMdaPriorityPreference aPref=EMdaPriorityPreferenceTimeAndQuality); |
|
30 |
|
31 ~CxeFakeVideoRecorderUtility(); |
|
32 virtual void open(int cameraHandle, |
|
33 const QString &filename, |
|
34 const QString &fileMimeType, |
|
35 const QString &supplier, |
|
36 const QString &videoType, |
|
37 const QString &audioType); |
|
38 virtual void setVideoFrameSize(const QSize& size); |
|
39 virtual void setVideoFrameRate(int rate); |
|
40 virtual void setVideoBitRate(int rate); |
|
41 virtual void setAudioEnabled(bool enabled); |
|
42 virtual void setVideoMaxSize(int sizeInBytes); |
|
43 virtual void close(); |
|
44 virtual void prepare(); |
|
45 virtual void record(); |
|
46 virtual void stop(bool asynchronous = false); |
|
47 virtual void pause(); |
|
48 virtual int availableRecordingTime(); |
|
49 virtual int duration(); |
|
50 |
|
51 private: |
|
52 CxeFakeVideoRecorderUtility(MVideoRecorderUtilityObserver& aObserver); |
|
53 |
|
54 MVideoRecorderUtilityObserver *mObserver; |
|
55 }; |
|
56 |
|
57 |
|
58 #endif /*CXEFAKEVIDEORECORDERUTILITY_H_*/ |
|