diff -r e1b950c65cb4 -r 837f303aceeb epoc32/include/mmf/server/mmfdatapathproxy.h --- a/epoc32/include/mmf/server/mmfdatapathproxy.h Wed Mar 31 12:27:01 2010 +0100 +++ b/epoc32/include/mmf/server/mmfdatapathproxy.h Wed Mar 31 12:33:34 2010 +0100 @@ -1,9 +1,9 @@ // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available -// 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 +// under the terms of "Eclipse Public License v1.0" // which accompanies this distribution, and is available -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +// at the URL "http://www.eclipse.org/legal/epl-v10.html". // // Initial Contributors: // Nokia Corporation - initial contribution. @@ -154,62 +154,9 @@ IMPORT_C void Close(); }; -/** -@internalComponent - -The server running in the datapath subthread. -The subthread is owned by the main thread and shares the same heap. -*/ -class CMMFDataPathProxyServer : public CMMFSubThreadServer - { -public: - static CMMFDataPathProxyServer* NewL(); - ~CMMFDataPathProxyServer(); - static TInt StartThread(TAny* aAny); - static void DoStartThreadL(); -private: - CMmfIpcSession* NewSessionL(const TVersion& aVersion) const; - CMMFDataPathProxyServer(); - void ConstructL(); - }; - - -/** -@internalComponent - -The session used to transmit messages between the main thread and the subthread. -Only one session can be created with a datapath subthread. -Once this session is closed, the subthread will be killed. -*/ -class CMMFDataPathProxySession : public CMMFSubThreadSession - { -public: - static CMMFDataPathProxySession* NewL(); - ~CMMFDataPathProxySession(); - void ServiceL(const RMmfIpcMessage& aMessage); -private: - CMMFDataPathProxySession(); - TBool LoadDataPathByL(const RMmfIpcMessage& aMessage); - TBool LoadDataPathByMediaIdL(const RMmfIpcMessage& aMessage); - TBool LoadDataPathByCodecUidL(const RMmfIpcMessage& aMessage); - TBool LoadDataPathByMediaIdCodecUidL(const RMmfIpcMessage& aMessage); - TBool AddDataSourceL(const RMmfIpcMessage& aMessage); - TBool AddDataSinkL(const RMmfIpcMessage& aMessage); - TBool PrimeL(const RMmfIpcMessage& aMessage); - TBool PlayL(const RMmfIpcMessage& aMessage); - TBool PauseL(const RMmfIpcMessage& aMessage); - TBool StopL(const RMmfIpcMessage& aMessage); - TBool GetPositionL(const RMmfIpcMessage& aMessage) const; - TBool SetPositionL(const RMmfIpcMessage& aMessage); - TBool SetPlayWindowL(const RMmfIpcMessage& aMessage) ; - TBool ClearPlayWindowL(const RMmfIpcMessage& aMessage) ; - TBool StateL(const RMmfIpcMessage& aMessage) ; - - void CheckDataPathExistsL() const {if (!iDataPath) User::Leave(KErrNotReady);}; -private: - CMMFDataPath* iDataPath; - }; - - +#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS +#include +#endif #endif +