|
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 #include <QTest> |
|
18 #include "cxetestutils.h" |
|
19 #include "cxefakevideorecorderutility.h" |
|
20 |
|
21 CxeFakeVideoRecorderUtility::CxeFakeVideoRecorderUtility(MVideoRecorderUtilityObserver& aObserver) |
|
22 : mObserver( &aObserver ) |
|
23 { |
|
24 CX_DEBUG_IN_FUNCTION(); |
|
25 } |
|
26 |
|
27 CxeFakeVideoRecorderUtility::~CxeFakeVideoRecorderUtility() |
|
28 { |
|
29 CX_DEBUG_IN_FUNCTION(); |
|
30 } |
|
31 |
|
32 CxeFakeVideoRecorderUtility::CxeFakeVideoRecorderUtility(MVideoRecorderUtilityObserver& aObserver, |
|
33 TInt aPriority, |
|
34 TMdaPriorityPreference aPref) |
|
35 : mObserver( &aObserver ) |
|
36 { |
|
37 CX_DEBUG_IN_FUNCTION(); |
|
38 Q_UNUSED(aPriority); |
|
39 Q_UNUSED(aPref); |
|
40 } |
|
41 |
|
42 void CxeFakeVideoRecorderUtility::open(int cameraHandle, |
|
43 const QString &/*filename*/, |
|
44 const QString &/*fileMimeType*/, |
|
45 const QString &/*supplier*/, |
|
46 const QString &/*videoType*/, |
|
47 const QString &/*audioType*/) |
|
48 { |
|
49 CX_DEBUG_ENTER_FUNCTION(); |
|
50 Q_UNUSED(cameraHandle); |
|
51 mObserver->MvruoOpenComplete(KErrNone); |
|
52 CX_DEBUG_EXIT_FUNCTION(); |
|
53 } |
|
54 |
|
55 void CxeFakeVideoRecorderUtility::setVideoFrameSize(const QSize &/*size*/) |
|
56 { |
|
57 CX_DEBUG_IN_FUNCTION(); |
|
58 } |
|
59 |
|
60 void CxeFakeVideoRecorderUtility::setVideoFrameRate(int rate) |
|
61 { |
|
62 CX_DEBUG_IN_FUNCTION(); |
|
63 Q_UNUSED(rate); |
|
64 } |
|
65 |
|
66 void CxeFakeVideoRecorderUtility::setVideoBitRate(int rate) |
|
67 { |
|
68 CX_DEBUG_IN_FUNCTION(); |
|
69 Q_UNUSED(rate); |
|
70 } |
|
71 |
|
72 void CxeFakeVideoRecorderUtility::setAudioEnabled(bool enabled) |
|
73 { |
|
74 CX_DEBUG_IN_FUNCTION(); |
|
75 Q_UNUSED(enabled); |
|
76 } |
|
77 |
|
78 void CxeFakeVideoRecorderUtility::setVideoMaxSize(int sizeInBytes) |
|
79 { |
|
80 CX_DEBUG_IN_FUNCTION(); |
|
81 Q_UNUSED(sizeInBytes); |
|
82 } |
|
83 |
|
84 void CxeFakeVideoRecorderUtility::close() |
|
85 { |
|
86 CX_DEBUG_IN_FUNCTION(); |
|
87 } |
|
88 |
|
89 void CxeFakeVideoRecorderUtility::prepare() |
|
90 { |
|
91 CX_DEBUG_ENTER_FUNCTION(); |
|
92 mObserver->MvruoPrepareComplete(KErrNone); |
|
93 CX_DEBUG_EXIT_FUNCTION(); |
|
94 } |
|
95 |
|
96 void CxeFakeVideoRecorderUtility::record() |
|
97 { |
|
98 CX_DEBUG_IN_FUNCTION(); |
|
99 } |
|
100 |
|
101 void CxeFakeVideoRecorderUtility::stop(bool asynchronous) |
|
102 { |
|
103 CX_DEBUG_ENTER_FUNCTION(); |
|
104 Q_UNUSED(asynchronous); |
|
105 mObserver->MvruoRecordComplete(KErrNone); |
|
106 CX_DEBUG_EXIT_FUNCTION(); |
|
107 } |
|
108 |
|
109 void CxeFakeVideoRecorderUtility::pause() |
|
110 { |
|
111 CX_DEBUG_IN_FUNCTION(); |
|
112 } |
|
113 |
|
114 int CxeFakeVideoRecorderUtility::availableRecordingTime() |
|
115 { |
|
116 CX_DEBUG_IN_FUNCTION(); |
|
117 // 100 s |
|
118 return 100; |
|
119 } |
|
120 |
|
121 int CxeFakeVideoRecorderUtility::duration() |
|
122 { |
|
123 CX_DEBUG_IN_FUNCTION(); |
|
124 // 10 s |
|
125 return 10; |
|
126 } |
|
127 |
|
128 |
|
129 |
|
130 // end of file |