bluetoothengine/btaudioman/expinc/BTAccPlugin.inl
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 21 Jun 2010 15:51:46 +0300
branchRCL_3
changeset 18 5a89845f78e2
parent 0 f63038272f30
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* Copyright (c) 2005-2006 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: 
*                 This is the interface implementation which is 
*                used by plugins. Server uses this implementation to create
*                plugins.
*  Version     : %version:  1.1.3.2.4 %
*
*/



// INCLUDE FILES

#include <ecom/ecom.h>       // declares E-com framework classes
#include <btaccParams.h>   // declares TPluginParams

inline CBTAccPlugin::~CBTAccPlugin()
    {
    REComSession::DestroyedImplementation(iInstanceId);
    }

inline CBTAccPlugin::CBTAccPlugin(TPluginParams& aParams)
:    iObserver(aParams.Observer()),
    iImplementationUid(aParams.ImplementationUid())
    {
    }

inline CBTAccPlugin* CBTAccPlugin::NewL(TPluginParams& aParams)
    {
    //TRACE_OPT(KPRINTFTRACE, DebugPrint(_L("[BTAccServer]\t CBTAccPlugin::NewL()")));

    CBTAccPlugin* self = reinterpret_cast<CBTAccPlugin*>(
        REComSession::CreateImplementationL(
            aParams.ImplementationUid(), 
            _FOFF(CBTAccPlugin, iInstanceId),
            (TAny*)&aParams)
        );

    return self;
    }

inline MBTAccObserver& CBTAccPlugin::Observer()
    {
    return iObserver;
    }

inline TUid CBTAccPlugin::Uid() const
    {
    return iImplementationUid;
    }
    
inline void CBTAccPlugin::AccOutOfUse()
    {  
    }

inline void CBTAccPlugin::StartRecording()
    {
        
    }

//
inline void CBTAccPlugin::ConnectToAccessory(const TBTDevAddr& /*aAddr*/, TRequestStatus& /*aStatus*/)
    {
        
    }

//
inline void CBTAccPlugin::CancelConnectToAccessory(const TBTDevAddr& /*aAddr*/)
    {
        
    }
    
//
inline void CBTAccPlugin::OpenAudioLink(const TBTDevAddr& /*aAddr*/, TRequestStatus& /*aStatus*/)
    {
        
    }

//    
inline void CBTAccPlugin::CancelOpenAudioLink(const TBTDevAddr& /*aAddr*/ )
    {
        
    }

//
inline void CBTAccPlugin::CloseAudioLink(const TBTDevAddr& /*aAddr*/, TRequestStatus& /*aStatus*/)
    {
        
    }
  
//    
inline void CBTAccPlugin::CancelCloseAudioLink(const TBTDevAddr& /*aAddr*/ )
    {
        
    }

inline void CBTAccPlugin::ActivateRemoteVolumeControl() {}

inline void CBTAccPlugin::DeActivateRemoteVolumeControl() {}

inline TInt CBTAccPlugin::GetRemoteSupportedFeature()
    {
    return 0;
    }
    
inline TInt CBTAccPlugin::AudioLinkLatency()
    {
    return KErrNotFound;
    }
//
// End of file