# HG changeset patch # User Dremov Kirill (Nokia-D-MSW/Tampere) # Date 1286968171 -10800 # Node ID 45254807acc4913743bc42a49e3d1296f4efb2c0 # Parent 37b610eb7fe3af6d77273a111b1c449107fc6b6c Revision: 201041 Kit: 201041 diff -r 37b610eb7fe3 -r 45254807acc4 audiostubs/devsoundextensions_stubs/audioinputcistub/Group/bld.inf --- a/audiostubs/devsoundextensions_stubs/audioinputcistub/Group/bld.inf Thu Aug 19 09:36:39 2010 +0300 +++ b/audiostubs/devsoundextensions_stubs/audioinputcistub/Group/bld.inf Wed Oct 13 14:09:31 2010 +0300 @@ -21,6 +21,6 @@ PRJ_EXPORTS PRJ_MMPFILES -//AudioInputCIStub.mmp +AudioInputCIStub.mmp // End of File \ No newline at end of file diff -r 37b610eb7fe3 -r 45254807acc4 audiostubs/devsoundextensions_stubs/audiooutputcistub/Group/bld.inf --- a/audiostubs/devsoundextensions_stubs/audiooutputcistub/Group/bld.inf Thu Aug 19 09:36:39 2010 +0300 +++ b/audiostubs/devsoundextensions_stubs/audiooutputcistub/Group/bld.inf Wed Oct 13 14:09:31 2010 +0300 @@ -22,6 +22,6 @@ PRJ_EXPORTS PRJ_MMPFILES -//AudioOutputCIStub.mmp +AudioOutputCIStub.mmp // End of File diff -r 37b610eb7fe3 -r 45254807acc4 audiostubs/devsoundextensions_stubs/cistubplugin/data/cistubplugin.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audiostubs/devsoundextensions_stubs/cistubplugin/data/cistubplugin.rss Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Stubplugin rss +* +*/ + + + +#include +#include +#include "cistubplugin.hrh" + + +RESOURCE REGISTRY_INFO theInfo + { + dll_uid = KUidCustomInterfacePluginDll; + interfaces = + { + INTERFACE_INFO + { + interface_uid = KMmfUidS60CustomInterfaceStub; + implementations = + { + IMPLEMENTATION_INFO + { + implementation_uid = KUidCustomInterfaceStubPlugin; + version_no = 1; + display_name = "Audio Play Routing Control Stub"; + default_data = "10207cab" ; + opaque_data = ""; + } + }; + } + }; + } + diff -r 37b610eb7fe3 -r 45254807acc4 audiostubs/devsoundextensions_stubs/cistubplugin/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audiostubs/devsoundextensions_stubs/cistubplugin/group/bld.inf Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,26 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + + +PRJ_PLATFORMS +DEFAULT + +PRJ_EXPORTS + +PRJ_MMPFILES +cistubplugin.mmp diff -r 37b610eb7fe3 -r 45254807acc4 audiostubs/devsoundextensions_stubs/cistubplugin/group/cistubplugin.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audiostubs/devsoundextensions_stubs/cistubplugin/group/cistubplugin.mmp Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,51 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: CI Stub plugin mmp +* +*/ + + +#include + +TARGET cistubplugin.dll +TARGETTYPE PLUGIN +UID 0x10009D8D 0x10207C70 +CAPABILITY ALL -TCB +VENDORID VID_DEFAULT + + +USERINCLUDE ../inc +USERINCLUDE ../../inc +OS_LAYER_SYSTEMINCLUDE +SYSTEMINCLUDE /epoc32/include/ecom +SYSTEMINCLUDE /epoc32/include/mmf/server +SYSTEMINCLUDE /epoc32/include/mmf/common + +LIBRARY euser.lib +LIBRARY ecom.lib +LIBRARY efsrv.lib +LIBRARY RestrictedAudioOutputCI.lib +LIBRARY AudioOutputCI.lib +LIBRARY AudioInputCI.lib + +SOURCEPATH ../src + +SOURCE cistubplugin.cpp +SOURCE cistubpluginMain.cpp + +SOURCEPATH ../data +START RESOURCE cistubplugin.rss +TARGET cistubplugin.rsc +END + diff -r 37b610eb7fe3 -r 45254807acc4 audiostubs/devsoundextensions_stubs/cistubplugin/inc/cistubplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audiostubs/devsoundextensions_stubs/cistubplugin/inc/cistubplugin.h Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,60 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: CI stub plugin +* +*/ + + + +// This file defines the API for AudiPlayRoutingControlCIStub.dll + +#ifndef CISTUBPLUGIN_H +#define CISTUBPLUGIN_H + +#include // CBase +#include // TBuf +#include +#include +#include "RestrictedAudioOutputCIStub.h" +#include "AudioOutputCI.h" +#include "AudioInputCI.h" +#include "AudioOutputMessageTypes.h" +#include "AudioInputMessageTypes.h" + +class MyMCustomInterface + { +public: + virtual TAny* CustomInterface(TUid aCustomeInterface) = 0; + virtual void Release() = 0; + virtual void PassDestructionKey(TUid aUid) = 0; + }; + +class CCIStubPlugin : public CBase,public MyMCustomInterface + { +public: + + static MyMCustomInterface* NewL(); + static CCIStubPlugin* NewLC(); + ~CCIStubPlugin(); + TAny* CustomInterface(TUid aInterfaceId); + void Release(); + void PassDestructionKey(TUid aUid); + +private: + TUid iDtor_ID_Key; + CCIStubPlugin(); + void ConstructL(); + }; + +#endif // __AUDIPLAYROUTINGCONTROLHWDEVICE_H__ diff -r 37b610eb7fe3 -r 45254807acc4 audiostubs/devsoundextensions_stubs/cistubplugin/inc/cistubplugin.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audiostubs/devsoundextensions_stubs/cistubplugin/inc/cistubplugin.hrh Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,27 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: ci stub plugin uids +* +*/ + + +#ifndef CISTUBPLUGIN_HRH +#define CISTUBPLUGIN_HRH + + +#define KMmfUidS60CustomInterfaceStub 0x10207C49 +#define KUidCustomInterfacePluginDll 0x10207C70 +#define KUidCustomInterfaceStubPlugin 0x10207C71 + +#endif diff -r 37b610eb7fe3 -r 45254807acc4 audiostubs/devsoundextensions_stubs/cistubplugin/src/cistubplugin.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audiostubs/devsoundextensions_stubs/cistubplugin/src/cistubplugin.cpp Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: Generic Stub plugin that load required CI stub in WINSCW + * + */ + + + +#include "cistubplugin.h" + +#ifdef _DEBUG +#define DEBPRN0 RDebug::Printf( "*CI STUB PLUGIN* %s", __PRETTY_FUNCTION__); +#define DEBPRN1(str) RDebug::Printf( "%s %s", __PRETTY_FUNCTION__, str ); +#else +#define DEBPRN0 +#define DEBPRN1(str) +#endif + +#define KTenSeconds 3000000 +// Member Functions + + +CCIStubPlugin* CCIStubPlugin::NewLC() + { + DEBPRN0; + CCIStubPlugin* self = new (ELeave) CCIStubPlugin; + CleanupStack::PushL(self); + self->ConstructL(); + return self; + } + +MyMCustomInterface* CCIStubPlugin::NewL() + { + DEBPRN0; + CCIStubPlugin* self = CCIStubPlugin::NewLC(); + CleanupStack::Pop(self); + return (MyMCustomInterface*) self; + } + +CCIStubPlugin::CCIStubPlugin() +// note, CBase initialises all member variables to zero + { + DEBPRN0; + } + +void CCIStubPlugin::ConstructL() + { + DEBPRN0; + } + +CCIStubPlugin::~CCIStubPlugin() + { + DEBPRN0; + } + +TAny* CCIStubPlugin::CustomInterface(TUid aInterfaceId) + { + DEBPRN0; + if (aInterfaceId == KUidRestrictedAudioOutput) + { + return (TAny*)CRestrictedAudioOutputCI::NewL(); + } + if(aInterfaceId == KUidAudioOutput) + { + return (TAny*)CAudioOutputCI::NewL(); + } + if(aInterfaceId == KUidAudioInput) + { + return (TAny*)CAudioInputCI::NewL(); + } + return NULL; + } + +void CCIStubPlugin::Release() + { + DEBPRN0; + REComSession::DestroyedImplementation(iDtor_ID_Key); + delete this; + } +void CCIStubPlugin::PassDestructionKey(TUid aUid) + { + DEBPRN0; + iDtor_ID_Key = aUid; + } diff -r 37b610eb7fe3 -r 45254807acc4 audiostubs/devsoundextensions_stubs/cistubplugin/src/cistubpluginMain.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audiostubs/devsoundextensions_stubs/cistubplugin/src/cistubpluginMain.cpp Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,42 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Stub plugin main +* +*/ + + + +#include +#include +#include "cistubplugin.h" +#include "cistubplugin.hrh" + + +// ImplementationTable + +const TImplementationProxy + ImplementationTable[] = + { + IMPLEMENTATION_PROXY_ENTRY(KUidCustomInterfaceStubPlugin, CCIStubPlugin::NewL), + }; + + +// ImplementationGroupProxy + +EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) + { + aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); + return ImplementationTable; + } + diff -r 37b610eb7fe3 -r 45254807acc4 audiostubs/devsoundextensions_stubs/mmfdevsoundadaptation_stub/group/MmfDevSoundAdaptation.mmp --- a/audiostubs/devsoundextensions_stubs/mmfdevsoundadaptation_stub/group/MmfDevSoundAdaptation.mmp Thu Aug 19 09:36:39 2010 +0300 +++ b/audiostubs/devsoundextensions_stubs/mmfdevsoundadaptation_stub/group/MmfDevSoundAdaptation.mmp Wed Oct 13 14:09:31 2010 +0300 @@ -12,7 +12,7 @@ * Contributors: * * Description: Audio Stubs - Project specification file for MmfDevSoundAdaptation_Stub -* Version : %version: bh1mmcf#33 % +* Version : %version: bh1mmcf#32 % * */ @@ -27,13 +27,12 @@ VENDORID VID_DEFAULT SOURCEPATH ../src -#if defined(WINS) - SOURCE MmfDevSoundAdaptation.cpp - SOURCE MmfDevSoundAdaptationBody.cpp - SOURCE MmfHwDeviceStub.cpp - SOURCE ToneGenerator.cpp - SOURCE DevSoundUtility.cpp - SOURCE TonePlayCompleteTimer.cpp +SOURCE MmfDevSoundAdaptation.cpp +SOURCE MmfDevSoundAdaptationBody.cpp +SOURCE MmfHwDeviceStub.cpp +SOURCE ToneGenerator.cpp +SOURCE DevSoundUtility.cpp +SOURCE TonePlayCompleteTimer.cpp USERINCLUDE ../inc USERINCLUDE ../../inc @@ -67,7 +66,6 @@ LIBRARY SpeechEncoderConfigCI.lib deffile MmfDevSoundAdaptation.def -#endif nostrictdef // End of File diff -r 37b610eb7fe3 -r 45254807acc4 audiostubs/devsoundextensions_stubs/mmfdevsoundadaptation_stub/group/bld.inf --- a/audiostubs/devsoundextensions_stubs/mmfdevsoundadaptation_stub/group/bld.inf Thu Aug 19 09:36:39 2010 +0300 +++ b/audiostubs/devsoundextensions_stubs/mmfdevsoundadaptation_stub/group/bld.inf Wed Oct 13 14:09:31 2010 +0300 @@ -25,6 +25,4 @@ ../data/sample1.wav /Epoc32/winscw/c/sample1.wav PRJ_MMPFILES -#ifdef WINS ./MmfDevSoundAdaptation.mmp -#endif diff -r 37b610eb7fe3 -r 45254807acc4 audiostubs/devsoundextensions_stubs/restrictedaudiooutputcistub/Group/bld.inf --- a/audiostubs/devsoundextensions_stubs/restrictedaudiooutputcistub/Group/bld.inf Thu Aug 19 09:36:39 2010 +0300 +++ b/audiostubs/devsoundextensions_stubs/restrictedaudiooutputcistub/Group/bld.inf Wed Oct 13 14:09:31 2010 +0300 @@ -22,6 +22,6 @@ PRJ_EXPORTS PRJ_MMPFILES -//RestrictedAudioOutputCIStub.mmp +RestrictedAudioOutputCIStub.mmp // End of File \ No newline at end of file diff -r 37b610eb7fe3 -r 45254807acc4 audiostubs/package_definition.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audiostubs/package_definition.xml Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff -r 37b610eb7fe3 -r 45254807acc4 audiostubs/package_map.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audiostubs/package_map.xml Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,1 @@ + diff -r 37b610eb7fe3 -r 45254807acc4 drm_stubs/package_definition.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/drm_stubs/package_definition.xml Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,10 @@ + + + + + + + + + + diff -r 37b610eb7fe3 -r 45254807acc4 drm_stubs/package_map.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/drm_stubs/package_map.xml Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,1 @@ + diff -r 37b610eb7fe3 -r 45254807acc4 drm_stubs/sysdef_1_5_1.dtd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/drm_stubs/sysdef_1_5_1.dtd Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 37b610eb7fe3 -r 45254807acc4 ocrsrv_stub/package_definition.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ocrsrv_stub/package_definition.xml Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,10 @@ + + + + + + + + + + diff -r 37b610eb7fe3 -r 45254807acc4 ocrsrv_stub/package_map.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ocrsrv_stub/package_map.xml Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,1 @@ + diff -r 37b610eb7fe3 -r 45254807acc4 ocrsrv_stub/sysdef_1_5_1.dtd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ocrsrv_stub/sysdef_1_5_1.dtd Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 37b610eb7fe3 -r 45254807acc4 omasuplasnconverterstubimpl/package_definition.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omasuplasnconverterstubimpl/package_definition.xml Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,10 @@ + + + + + + + + + + diff -r 37b610eb7fe3 -r 45254807acc4 omasuplasnconverterstubimpl/package_map.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omasuplasnconverterstubimpl/package_map.xml Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,1 @@ + diff -r 37b610eb7fe3 -r 45254807acc4 power_save_display_mode_stub/package_definition.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/power_save_display_mode_stub/package_definition.xml Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,10 @@ + + + + + + + + + + diff -r 37b610eb7fe3 -r 45254807acc4 power_save_display_mode_stub/package_map.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/power_save_display_mode_stub/package_map.xml Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,1 @@ + diff -r 37b610eb7fe3 -r 45254807acc4 power_save_display_mode_stub/sysdef_1_5_1.dtd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/power_save_display_mode_stub/sysdef_1_5_1.dtd Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 37b610eb7fe3 -r 45254807acc4 systemswstubs/package_definition.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/systemswstubs/package_definition.xml Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff -r 37b610eb7fe3 -r 45254807acc4 systemswstubs/package_map.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/systemswstubs/package_map.xml Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,1 @@ + \ No newline at end of file diff -r 37b610eb7fe3 -r 45254807acc4 tactileclickplugin_stub/package_definition.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tactileclickplugin_stub/package_definition.xml Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff -r 37b610eb7fe3 -r 45254807acc4 tactileclickplugin_stub/package_map.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tactileclickplugin_stub/package_map.xml Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,1 @@ + diff -r 37b610eb7fe3 -r 45254807acc4 tactileclickplugin_stub/sysdef_1_5_1.dtd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tactileclickplugin_stub/sysdef_1_5_1.dtd Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 37b610eb7fe3 -r 45254807acc4 wlanhwinit_stub/package_definition.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wlanhwinit_stub/package_definition.xml Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,10 @@ + + + + + + + + + + diff -r 37b610eb7fe3 -r 45254807acc4 wlanhwinit_stub/package_map.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wlanhwinit_stub/package_map.xml Wed Oct 13 14:09:31 2010 +0300 @@ -0,0 +1,1 @@ +