33 TInt aPriority, |
33 TInt aPriority, |
34 TMdaPriorityPreference aPref) |
34 TMdaPriorityPreference aPref) |
35 : mObserver( &aObserver ) |
35 : mObserver( &aObserver ) |
36 { |
36 { |
37 CX_DEBUG_IN_FUNCTION(); |
37 CX_DEBUG_IN_FUNCTION(); |
38 //return new (ELeave) CxeFakeVideoRecorderUtility(aObserver); |
|
39 } |
38 } |
40 |
39 |
41 /*CxeVideoRecorderUtility* CxeFakeVideoRecorderUtility::NewL(MVideoRecorderUtilityObserver& aObserver, |
40 void CxeFakeVideoRecorderUtility::open(int cameraHandle, |
42 TInt aPriority, |
41 const QString &/*filename*/, |
43 TMdaPriorityPreference aPref) |
42 const QString &/*fileMimeType*/, |
44 { |
43 const QString &/*supplier*/, |
45 CX_DEBUG_IN_FUNCTION(); |
44 const QString &/*videoType*/, |
46 return new (ELeave) CxeFakeVideoRecorderUtility(aObserver); |
45 const QString &/*audioType*/) |
47 }*/ |
|
48 |
|
49 TInt CxeFakeVideoRecorderUtility::CustomCommandSync(const TMMFMessageDestinationPckg& aDestination, |
|
50 TInt aFunction, |
|
51 const TDesC8& aDataTo1, |
|
52 const TDesC8& aDataTo2) |
|
53 { |
|
54 CX_DEBUG_IN_FUNCTION(); |
|
55 return KErrNone; |
|
56 } |
|
57 |
|
58 void CxeFakeVideoRecorderUtility::OpenFileL(const TDesC& aFileName, |
|
59 TInt aCameraHandle, |
|
60 TUid aControllerUid, |
|
61 TUid aVideoFormat, |
|
62 const TDesC8& aVideoType, |
|
63 TFourCC aAudioType) |
|
64 { |
46 { |
65 CX_DEBUG_ENTER_FUNCTION(); |
47 CX_DEBUG_ENTER_FUNCTION(); |
66 mObserver->MvruoOpenComplete(KErrNone); |
48 mObserver->MvruoOpenComplete(KErrNone); |
67 CX_DEBUG_EXIT_FUNCTION(); |
49 CX_DEBUG_EXIT_FUNCTION(); |
68 } |
50 } |
69 |
51 |
70 void CxeFakeVideoRecorderUtility::SetVideoFrameSizeL(TSize aSize) |
52 void CxeFakeVideoRecorderUtility::setVideoFrameSize(const QSize &/*size*/) |
71 { |
53 { |
72 CX_DEBUG_IN_FUNCTION(); |
54 CX_DEBUG_IN_FUNCTION(); |
73 } |
55 } |
74 |
56 |
75 void CxeFakeVideoRecorderUtility::SetVideoFrameRateL(TInt aRate) |
57 void CxeFakeVideoRecorderUtility::setVideoFrameRate(int rate) |
76 { |
58 { |
77 CX_DEBUG_IN_FUNCTION(); |
59 CX_DEBUG_IN_FUNCTION(); |
78 } |
60 } |
79 |
61 |
80 void CxeFakeVideoRecorderUtility::SetVideoBitRateL(TInt aRate) |
62 void CxeFakeVideoRecorderUtility::setVideoBitRate(int rate) |
81 { |
63 { |
82 CX_DEBUG_IN_FUNCTION(); |
64 CX_DEBUG_IN_FUNCTION(); |
83 } |
65 } |
84 |
66 |
85 void CxeFakeVideoRecorderUtility::SetAudioEnabledL(TBool aEnable) |
67 void CxeFakeVideoRecorderUtility::setAudioEnabled(bool enabled) |
86 { |
68 { |
87 CX_DEBUG_IN_FUNCTION(); |
69 CX_DEBUG_IN_FUNCTION(); |
88 } |
70 } |
89 |
71 |
90 void CxeFakeVideoRecorderUtility::SetMaxClipSizeL(TInt aClipSizeInBytes) |
72 void CxeFakeVideoRecorderUtility::setVideoMaxSize(int sizeInBytes) |
91 { |
73 { |
92 CX_DEBUG_IN_FUNCTION(); |
74 CX_DEBUG_IN_FUNCTION(); |
93 } |
75 } |
94 |
76 |
95 void CxeFakeVideoRecorderUtility::Close() |
77 void CxeFakeVideoRecorderUtility::close() |
96 { |
78 { |
97 CX_DEBUG_IN_FUNCTION(); |
79 CX_DEBUG_IN_FUNCTION(); |
98 } |
80 } |
99 |
81 |
100 void CxeFakeVideoRecorderUtility::Prepare() |
82 void CxeFakeVideoRecorderUtility::prepare() |
101 { |
83 { |
102 CX_DEBUG_ENTER_FUNCTION(); |
84 CX_DEBUG_ENTER_FUNCTION(); |
103 mObserver->MvruoPrepareComplete(KErrNone); |
85 mObserver->MvruoPrepareComplete(KErrNone); |
104 CX_DEBUG_EXIT_FUNCTION(); |
86 CX_DEBUG_EXIT_FUNCTION(); |
105 } |
87 } |
106 |
88 |
107 void CxeFakeVideoRecorderUtility::Record() |
89 void CxeFakeVideoRecorderUtility::record() |
108 { |
90 { |
109 CX_DEBUG_IN_FUNCTION(); |
91 CX_DEBUG_IN_FUNCTION(); |
110 } |
92 } |
111 |
93 |
112 int CxeFakeVideoRecorderUtility::Stop() |
94 void CxeFakeVideoRecorderUtility::stop(bool asynchronous) |
113 { |
95 { |
114 CX_DEBUG_IN_FUNCTION(); |
96 CX_DEBUG_ENTER_FUNCTION(); |
115 mObserver->MvruoRecordComplete(KErrNone); |
97 mObserver->MvruoRecordComplete(KErrNone); |
116 return KErrNone; |
98 CX_DEBUG_EXIT_FUNCTION(); |
117 } |
99 } |
118 |
100 |
119 void CxeFakeVideoRecorderUtility::PauseL() |
101 void CxeFakeVideoRecorderUtility::pause() |
120 { |
102 { |
121 CX_DEBUG_IN_FUNCTION(); |
103 CX_DEBUG_IN_FUNCTION(); |
122 } |
104 } |
123 |
105 |
124 TTimeIntervalMicroSeconds CxeFakeVideoRecorderUtility::RecordTimeAvailable() |
106 int CxeFakeVideoRecorderUtility::availableRecordingTime() |
125 { |
107 { |
126 CX_DEBUG_IN_FUNCTION(); |
108 CX_DEBUG_IN_FUNCTION(); |
127 // 100 s |
109 // 100 s |
128 return TTimeIntervalMicroSeconds(100000000); |
110 return 100; |
129 } |
111 } |
130 |
112 |
131 TTimeIntervalMicroSeconds CxeFakeVideoRecorderUtility::DurationL() |
113 int CxeFakeVideoRecorderUtility::duration() |
132 { |
114 { |
133 CX_DEBUG_IN_FUNCTION(); |
115 CX_DEBUG_IN_FUNCTION(); |
134 // 10 s |
116 // 10 s |
135 return TTimeIntervalMicroSeconds(10000000); |
117 return 10; |
136 } |
118 } |
137 |
119 |
138 |
120 |
139 |
121 |
140 // end of file |
122 // end of file |