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 ~CxeVideoRecorderUtilitySymbian(); |
|
29 |
|
30 virtual void open(int cameraHandle, |
|
31 const QString &filename, |
|
32 const QString &fileMimeType, |
|
33 const QString &supplier, |
|
34 const QString &videoType, |
|
35 const QString &audioType); |
|
36 virtual void setVideoFrameSize(const QSize& size); |
|
37 virtual void setVideoFrameRate(int rate); |
|
38 virtual void setVideoBitRate(int rate); |
|
39 virtual void setAudioEnabled(bool enabled); |
|
40 virtual void setVideoMaxSize(int sizeInBytes); |
|
41 virtual void close(); |
|
42 virtual void prepare(); |
|
43 virtual void record(); |
|
44 virtual void stop(bool asynchronous = false); |
|
45 virtual void pause(); |
|
46 virtual int availableRecordingTime(); |
|
47 virtual int duration(); |
|
48 |
|
49 private: |
|
50 void findControllerL(const QString& fileMimeType, |
|
51 const QString& supplier, |
|
52 TUid& controllerId, |
|
53 TUid& formatId); |
|
54 |
|
55 TFourCC audioFourCC(const QString& str); |
|
56 |
|
57 private: |
|
58 CVideoRecorderUtility *mVideoRecorder; |
|
59 }; |
|
60 |
|
61 |
|
62 #endif /*CXEVIDEORECORDERUTILITYSYMBIAN_H_*/ |
|