22 |
22 |
23 class CxeVideoRecorderUtilitySymbian : public CxeVideoRecorderUtility |
23 class CxeVideoRecorderUtilitySymbian : public CxeVideoRecorderUtility |
24 { |
24 { |
25 public: |
25 public: |
26 |
26 |
27 CxeVideoRecorderUtilitySymbian(MVideoRecorderUtilityObserver& aObserver, |
27 CxeVideoRecorderUtilitySymbian(MVideoRecorderUtilityObserver& aObserver); |
28 TInt aPriority=EMdaPriorityNormal, |
|
29 TMdaPriorityPreference aPref=EMdaPriorityPreferenceTimeAndQuality); |
|
30 |
|
31 ~CxeVideoRecorderUtilitySymbian(); |
28 ~CxeVideoRecorderUtilitySymbian(); |
32 |
29 |
33 TInt CustomCommandSync(const TMMFMessageDestinationPckg& aDestination, |
30 virtual void open(int cameraHandle, |
34 TInt aFunction, |
31 const QString &filename, |
35 const TDesC8& aDataTo1, |
32 const QString &fileMimeType, |
36 const TDesC8& aDataTo2); |
33 const QString &supplier, |
37 void OpenFileL(const TDesC& aFileName, |
34 const QString &videoType, |
38 TInt aCameraHandle, |
35 const QString &audioType); |
39 TUid aControllerUid, |
36 virtual void setVideoFrameSize(const QSize& size); |
40 TUid aVideoFormat, |
37 virtual void setVideoFrameRate(int rate); |
41 const TDesC8& aVideoType = KNullDesC8, |
38 virtual void setVideoBitRate(int rate); |
42 TFourCC aAudioType = KMMFFourCCCodeNULL); |
39 virtual void setAudioEnabled(bool enabled); |
43 void SetVideoFrameSizeL(TSize aSize); |
40 virtual void setVideoMaxSize(int sizeInBytes); |
44 void SetVideoFrameRateL(TInt aRate); |
41 virtual void close(); |
45 void SetVideoBitRateL(TInt aRate); |
42 virtual void prepare(); |
46 void SetAudioEnabledL(TBool aEnable); |
43 virtual void record(); |
47 void SetMaxClipSizeL(TInt aClipSizeInBytes); |
44 virtual void stop(bool asynchronous = false); |
48 void Close(); |
45 virtual void pause(); |
49 void Prepare(); |
46 virtual int availableRecordingTime(); |
50 void Record(); |
47 virtual int duration(); |
51 int Stop(); |
48 |
52 void PauseL(); |
49 private: |
53 TTimeIntervalMicroSeconds RecordTimeAvailable(); |
50 void findControllerL(const QString& fileMimeType, |
54 TTimeIntervalMicroSeconds DurationL(); |
51 const QString& supplier, |
|
52 TUid& controllerId, |
|
53 TUid& formatId); |
|
54 |
|
55 TFourCC audioFourCC(const QString& str); |
|
56 |
55 private: |
57 private: |
56 CVideoRecorderUtility *mVideoRecorder; |
58 CVideoRecorderUtility *mVideoRecorder; |
57 int mStartuperror; |
|
58 }; |
59 }; |
59 |
60 |
60 |
61 |
61 #endif /*CXEVIDEORECORDERUTILITYSYMBIAN_H_*/ |
62 #endif /*CXEVIDEORECORDERUTILITYSYMBIAN_H_*/ |