27 CxeFakeVideoRecorderUtility(MVideoRecorderUtilityObserver& aObserver, |
27 CxeFakeVideoRecorderUtility(MVideoRecorderUtilityObserver& aObserver, |
28 TInt aPriority=EMdaPriorityNormal, |
28 TInt aPriority=EMdaPriorityNormal, |
29 TMdaPriorityPreference aPref=EMdaPriorityPreferenceTimeAndQuality); |
29 TMdaPriorityPreference aPref=EMdaPriorityPreferenceTimeAndQuality); |
30 |
30 |
31 ~CxeFakeVideoRecorderUtility(); |
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(); |
32 |
50 |
33 //CxeVideoRecorderUtility* NewL(MVideoRecorderUtilityObserver& aObserver, |
|
34 // TInt aPriority=EMdaPriorityNormal, |
|
35 // TMdaPriorityPreference aPref=EMdaPriorityPreferenceTimeAndQuality); |
|
36 TInt CustomCommandSync(const TMMFMessageDestinationPckg& aDestination, |
|
37 TInt aFunction, |
|
38 const TDesC8& aDataTo1, |
|
39 const TDesC8& aDataTo2); |
|
40 void OpenFileL(const TDesC& aFileName, |
|
41 TInt aCameraHandle, |
|
42 TUid aControllerUid, |
|
43 TUid aVideoFormat, |
|
44 const TDesC8& aVideoType = KNullDesC8, |
|
45 TFourCC aAudioType = KMMFFourCCCodeNULL); |
|
46 void SetVideoFrameSizeL(TSize aSize); |
|
47 void SetVideoFrameRateL(TInt aRate); |
|
48 void SetVideoBitRateL(TInt aRate); |
|
49 void SetAudioEnabledL(TBool aEnable); |
|
50 void SetMaxClipSizeL(TInt aClipSizeInBytes); |
|
51 void Close(); |
|
52 void Prepare(); |
|
53 void Record(); |
|
54 int Stop(); |
|
55 void PauseL(); |
|
56 TTimeIntervalMicroSeconds RecordTimeAvailable(); |
|
57 TTimeIntervalMicroSeconds DurationL(); |
|
58 private: |
51 private: |
59 CxeFakeVideoRecorderUtility(MVideoRecorderUtilityObserver& aObserver); |
52 CxeFakeVideoRecorderUtility(MVideoRecorderUtilityObserver& aObserver); |
60 |
53 |
61 MVideoRecorderUtilityObserver *mObserver; |
54 MVideoRecorderUtilityObserver *mObserver; |
62 }; |
55 }; |