|
1 /* |
|
2 * Copyright (c) 2002-2004 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: Interface proxy for speech encoder configuration. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include "SpeechEncoderConfigProxy_STUB.h" |
|
23 //#include "SpeechEncoderConfigMsgs.h" |
|
24 #include <CustomCommandUtility.h> |
|
25 #include <CustomInterfaceUtility.h> |
|
26 |
|
27 // EXTERNAL DATA STRUCTURES |
|
28 |
|
29 // EXTERNAL FUNCTION PROTOTYPES |
|
30 |
|
31 // CONSTANTS |
|
32 |
|
33 // MACROS |
|
34 |
|
35 // LOCAL CONSTANTS AND MACROS |
|
36 |
|
37 // MODULE DATA STRUCTURES |
|
38 |
|
39 // LOCAL FUNCTION PROTOTYPES |
|
40 |
|
41 // FORWARD DECLARATIONS |
|
42 |
|
43 // ============================= LOCAL FUNCTIONS =============================== |
|
44 |
|
45 // ================= MEMBER FUNCTIONS ======================= |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // CSpeechEncoderConfigProxy_STUB::CSpeechEncoderConfigProxy_STUB |
|
49 // C++ default constructor can NOT contain any code, that |
|
50 // might leave. |
|
51 // ----------------------------------------------------------------------------- |
|
52 // |
|
53 CSpeechEncoderConfigProxy_STUB::CSpeechEncoderConfigProxy_STUB() |
|
54 { |
|
55 } |
|
56 |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // CSpeechEncoderConfigProxy_STUB::ConstructL |
|
60 // Symbian 2nd phase constructor can leave. |
|
61 // ----------------------------------------------------------------------------- |
|
62 // |
|
63 void CSpeechEncoderConfigProxy_STUB::ConstructL() |
|
64 { |
|
65 } |
|
66 |
|
67 // ----------------------------------------------------------------------------- |
|
68 // CSpeechEncoderConfigProxy_STUB::NewL |
|
69 // Two-phased constructor. |
|
70 // ----------------------------------------------------------------------------- |
|
71 // |
|
72 EXPORT_C CSpeechEncoderConfigProxy_STUB* CSpeechEncoderConfigProxy_STUB::NewL() |
|
73 { |
|
74 CSpeechEncoderConfigProxy_STUB* self = new(ELeave) CSpeechEncoderConfigProxy_STUB(); |
|
75 CleanupStack::PushL( self ); |
|
76 self->ConstructL(); |
|
77 CleanupStack::Pop( self ); |
|
78 return self; |
|
79 } |
|
80 |
|
81 // Destructor |
|
82 EXPORT_C CSpeechEncoderConfigProxy_STUB::~CSpeechEncoderConfigProxy_STUB() |
|
83 { |
|
84 } |
|
85 |
|
86 // --------------------------------------------------------- |
|
87 // CSpeechEncoderConfigProxy_STUB::GetSupportedBitrates |
|
88 // Calls a subfunction which sends the appropriate custom command for this |
|
89 // function to its message handler. A subfunction is used |
|
90 // to contain multiple leaving functions for a single trap. |
|
91 // (other items were commented in a header). |
|
92 // --------------------------------------------------------- |
|
93 // |
|
94 EXPORT_C TInt CSpeechEncoderConfigProxy_STUB::GetSupportedBitrates( |
|
95 RArray<TUint>& aSupportedBitrates) |
|
96 { |
|
97 TInt status; |
|
98 TRAP(status, GetSupportedBitratesL(aSupportedBitrates)); |
|
99 return status; |
|
100 } |
|
101 |
|
102 // --------------------------------------------------------- |
|
103 // CSpeechEncoderConfigProxy_STUB::GetSupportedBitratesL |
|
104 // Sends the custom command for this function to its message handler. |
|
105 // This requires two commands. The first is a request for the number of |
|
106 // supported bitrates. A buffer is allocated locally to hold this number of |
|
107 // bitrates that will be returned. A pointer to this buffer is sent with the |
|
108 // next command which is a request for the bitrates. This buffer will be filled |
|
109 // with the bitrate values. These bitrates are then copied into the array |
|
110 // provided to this function and the local buffer is deleted. |
|
111 // (other items were commented in a header). |
|
112 // --------------------------------------------------------- |
|
113 // |
|
114 void CSpeechEncoderConfigProxy_STUB::GetSupportedBitratesL( |
|
115 RArray<TUint>& /*aSupportedBitrates*/) |
|
116 { |
|
117 } |
|
118 |
|
119 // --------------------------------------------------------- |
|
120 // CSpeechEncoderConfigProxy_STUB::SetBitrate |
|
121 // Sends the custom command for this function to its message handler. |
|
122 // (other items were commented in a header). |
|
123 // --------------------------------------------------------- |
|
124 // |
|
125 EXPORT_C TInt CSpeechEncoderConfigProxy_STUB::SetBitrate(TUint /*aBitrate*/) |
|
126 { |
|
127 return KErrNone; |
|
128 } |
|
129 |
|
130 // --------------------------------------------------------- |
|
131 // CSpeechEncoderConfigProxy_STUB::GetBitrate |
|
132 // Sends the custom command for this function to its message handler. |
|
133 // (other items were commented in a header). |
|
134 // --------------------------------------------------------- |
|
135 // |
|
136 EXPORT_C TInt CSpeechEncoderConfigProxy_STUB::GetBitrate(TUint& /*aBitrate*/) |
|
137 { |
|
138 return KErrNone; |
|
139 } |
|
140 |
|
141 // --------------------------------------------------------- |
|
142 // CSpeechEncoderConfigProxy_STUB::SetVadMode |
|
143 // Sends the custom command for this function to its message handler. |
|
144 // (other items were commented in a header). |
|
145 // --------------------------------------------------------- |
|
146 // |
|
147 EXPORT_C TInt CSpeechEncoderConfigProxy_STUB::SetVadMode(TBool /*aVadMode*/) |
|
148 { |
|
149 return KErrNone; |
|
150 } |
|
151 |
|
152 // --------------------------------------------------------- |
|
153 // CSpeechEncoderConfigProxy_STUB::GetVadMode |
|
154 // Sends the custom command for this function to its message handler. |
|
155 // (other items were commented in a header). |
|
156 // --------------------------------------------------------- |
|
157 // |
|
158 EXPORT_C TInt CSpeechEncoderConfigProxy_STUB::GetVadMode(TBool& /*aVadMode*/) |
|
159 { |
|
160 return KErrNone; |
|
161 } |
|
162 |
|
163 |
|
164 // End of File |