|
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 //return new (ELeave) CxeFakeVideoRecorderUtility(aObserver); |
|
39 } |
|
40 |
|
41 /*CxeVideoRecorderUtility* CxeFakeVideoRecorderUtility::NewL(MVideoRecorderUtilityObserver& aObserver, |
|
42 TInt aPriority, |
|
43 TMdaPriorityPreference aPref) |
|
44 { |
|
45 CX_DEBUG_IN_FUNCTION(); |
|
46 return new (ELeave) CxeFakeVideoRecorderUtility(aObserver); |
|
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 { |
|
65 CX_DEBUG_ENTER_FUNCTION(); |
|
66 mObserver->MvruoOpenComplete(KErrNone); |
|
67 CX_DEBUG_EXIT_FUNCTION(); |
|
68 } |
|
69 |
|
70 void CxeFakeVideoRecorderUtility::SetVideoFrameSizeL(TSize aSize) |
|
71 { |
|
72 CX_DEBUG_IN_FUNCTION(); |
|
73 } |
|
74 |
|
75 void CxeFakeVideoRecorderUtility::SetVideoFrameRateL(TInt aRate) |
|
76 { |
|
77 CX_DEBUG_IN_FUNCTION(); |
|
78 } |
|
79 |
|
80 void CxeFakeVideoRecorderUtility::SetVideoBitRateL(TInt aRate) |
|
81 { |
|
82 CX_DEBUG_IN_FUNCTION(); |
|
83 } |
|
84 |
|
85 void CxeFakeVideoRecorderUtility::SetAudioEnabledL(TBool aEnable) |
|
86 { |
|
87 CX_DEBUG_IN_FUNCTION(); |
|
88 } |
|
89 |
|
90 void CxeFakeVideoRecorderUtility::SetMaxClipSizeL(TInt aClipSizeInBytes) |
|
91 { |
|
92 CX_DEBUG_IN_FUNCTION(); |
|
93 } |
|
94 |
|
95 void CxeFakeVideoRecorderUtility::Close() |
|
96 { |
|
97 CX_DEBUG_IN_FUNCTION(); |
|
98 } |
|
99 |
|
100 void CxeFakeVideoRecorderUtility::Prepare() |
|
101 { |
|
102 CX_DEBUG_ENTER_FUNCTION(); |
|
103 mObserver->MvruoPrepareComplete(KErrNone); |
|
104 CX_DEBUG_EXIT_FUNCTION(); |
|
105 } |
|
106 |
|
107 void CxeFakeVideoRecorderUtility::Record() |
|
108 { |
|
109 CX_DEBUG_IN_FUNCTION(); |
|
110 } |
|
111 |
|
112 int CxeFakeVideoRecorderUtility::Stop() |
|
113 { |
|
114 CX_DEBUG_IN_FUNCTION(); |
|
115 mObserver->MvruoRecordComplete(KErrNone); |
|
116 return KErrNone; |
|
117 } |
|
118 |
|
119 void CxeFakeVideoRecorderUtility::PauseL() |
|
120 { |
|
121 CX_DEBUG_IN_FUNCTION(); |
|
122 } |
|
123 |
|
124 TTimeIntervalMicroSeconds CxeFakeVideoRecorderUtility::RecordTimeAvailable() |
|
125 { |
|
126 CX_DEBUG_IN_FUNCTION(); |
|
127 // 100 s |
|
128 return TTimeIntervalMicroSeconds(100000000); |
|
129 } |
|
130 |
|
131 TTimeIntervalMicroSeconds CxeFakeVideoRecorderUtility::DurationL() |
|
132 { |
|
133 CX_DEBUG_IN_FUNCTION(); |
|
134 // 10 s |
|
135 return TTimeIntervalMicroSeconds(10000000); |
|
136 } |
|
137 |
|
138 |
|
139 |
|
140 // end of file |