1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
152 IMPORT_C TInt State( TInt& aState ) ; |
152 IMPORT_C TInt State( TInt& aState ) ; |
153 |
153 |
154 IMPORT_C void Close(); |
154 IMPORT_C void Close(); |
155 }; |
155 }; |
156 |
156 |
157 /** |
157 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS |
158 @internalComponent |
158 #include <mmf/server/mmfdatapathproxyserver.h> |
159 |
159 #endif |
160 The server running in the datapath subthread. |
|
161 The subthread is owned by the main thread and shares the same heap. |
|
162 */ |
|
163 class CMMFDataPathProxyServer : public CMMFSubThreadServer |
|
164 { |
|
165 public: |
|
166 static CMMFDataPathProxyServer* NewL(); |
|
167 ~CMMFDataPathProxyServer(); |
|
168 static TInt StartThread(TAny* aAny); |
|
169 static void DoStartThreadL(); |
|
170 private: |
|
171 CMmfIpcSession* NewSessionL(const TVersion& aVersion) const; |
|
172 CMMFDataPathProxyServer(); |
|
173 void ConstructL(); |
|
174 }; |
|
175 |
|
176 |
|
177 /** |
|
178 @internalComponent |
|
179 |
|
180 The session used to transmit messages between the main thread and the subthread. |
|
181 Only one session can be created with a datapath subthread. |
|
182 Once this session is closed, the subthread will be killed. |
|
183 */ |
|
184 class CMMFDataPathProxySession : public CMMFSubThreadSession |
|
185 { |
|
186 public: |
|
187 static CMMFDataPathProxySession* NewL(); |
|
188 ~CMMFDataPathProxySession(); |
|
189 void ServiceL(const RMmfIpcMessage& aMessage); |
|
190 private: |
|
191 CMMFDataPathProxySession(); |
|
192 TBool LoadDataPathByL(const RMmfIpcMessage& aMessage); |
|
193 TBool LoadDataPathByMediaIdL(const RMmfIpcMessage& aMessage); |
|
194 TBool LoadDataPathByCodecUidL(const RMmfIpcMessage& aMessage); |
|
195 TBool LoadDataPathByMediaIdCodecUidL(const RMmfIpcMessage& aMessage); |
|
196 TBool AddDataSourceL(const RMmfIpcMessage& aMessage); |
|
197 TBool AddDataSinkL(const RMmfIpcMessage& aMessage); |
|
198 TBool PrimeL(const RMmfIpcMessage& aMessage); |
|
199 TBool PlayL(const RMmfIpcMessage& aMessage); |
|
200 TBool PauseL(const RMmfIpcMessage& aMessage); |
|
201 TBool StopL(const RMmfIpcMessage& aMessage); |
|
202 TBool GetPositionL(const RMmfIpcMessage& aMessage) const; |
|
203 TBool SetPositionL(const RMmfIpcMessage& aMessage); |
|
204 TBool SetPlayWindowL(const RMmfIpcMessage& aMessage) ; |
|
205 TBool ClearPlayWindowL(const RMmfIpcMessage& aMessage) ; |
|
206 TBool StateL(const RMmfIpcMessage& aMessage) ; |
|
207 |
|
208 void CheckDataPathExistsL() const {if (!iDataPath) User::Leave(KErrNotReady);}; |
|
209 private: |
|
210 CMMFDataPath* iDataPath; |
|
211 }; |
|
212 |
|
213 |
|
214 |
160 |
215 #endif |
161 #endif |
|
162 |