bluetoothengine/btaudioman/expinc/BTAccPlugin.inl
changeset 0 f63038272f30
equal deleted inserted replaced
-1:000000000000 0:f63038272f30
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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: 
       
    15 *                 This is the interface implementation which is 
       
    16 *                used by plugins. Server uses this implementation to create
       
    17 *                plugins.
       
    18 *  Version     : %version:  1.1.3.2.4 %
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 
       
    24 // INCLUDE FILES
       
    25 
       
    26 #include <ecom/ecom.h>       // declares E-com framework classes
       
    27 #include <btaccParams.h>   // declares TPluginParams
       
    28 
       
    29 inline CBTAccPlugin::~CBTAccPlugin()
       
    30     {
       
    31     REComSession::DestroyedImplementation(iInstanceId);
       
    32     }
       
    33 
       
    34 inline CBTAccPlugin::CBTAccPlugin(TPluginParams& aParams)
       
    35 :    iObserver(aParams.Observer()),
       
    36     iImplementationUid(aParams.ImplementationUid())
       
    37     {
       
    38     }
       
    39 
       
    40 inline CBTAccPlugin* CBTAccPlugin::NewL(TPluginParams& aParams)
       
    41     {
       
    42     //TRACE_OPT(KPRINTFTRACE, DebugPrint(_L("[BTAccServer]\t CBTAccPlugin::NewL()")));
       
    43 
       
    44     CBTAccPlugin* self = reinterpret_cast<CBTAccPlugin*>(
       
    45         REComSession::CreateImplementationL(
       
    46             aParams.ImplementationUid(), 
       
    47             _FOFF(CBTAccPlugin, iInstanceId),
       
    48             (TAny*)&aParams)
       
    49         );
       
    50 
       
    51     return self;
       
    52     }
       
    53 
       
    54 inline MBTAccObserver& CBTAccPlugin::Observer()
       
    55     {
       
    56     return iObserver;
       
    57     }
       
    58 
       
    59 inline TUid CBTAccPlugin::Uid() const
       
    60     {
       
    61     return iImplementationUid;
       
    62     }
       
    63     
       
    64 inline void CBTAccPlugin::AccOutOfUse()
       
    65     {  
       
    66     }
       
    67 
       
    68 inline void CBTAccPlugin::StartRecording()
       
    69     {
       
    70         
       
    71     }
       
    72 
       
    73 //
       
    74 inline void CBTAccPlugin::ConnectToAccessory(const TBTDevAddr& /*aAddr*/, TRequestStatus& /*aStatus*/)
       
    75     {
       
    76         
       
    77     }
       
    78 
       
    79 //
       
    80 inline void CBTAccPlugin::CancelConnectToAccessory(const TBTDevAddr& /*aAddr*/)
       
    81     {
       
    82         
       
    83     }
       
    84     
       
    85 //
       
    86 inline void CBTAccPlugin::OpenAudioLink(const TBTDevAddr& /*aAddr*/, TRequestStatus& /*aStatus*/)
       
    87     {
       
    88         
       
    89     }
       
    90 
       
    91 //    
       
    92 inline void CBTAccPlugin::CancelOpenAudioLink(const TBTDevAddr& /*aAddr*/ )
       
    93     {
       
    94         
       
    95     }
       
    96 
       
    97 //
       
    98 inline void CBTAccPlugin::CloseAudioLink(const TBTDevAddr& /*aAddr*/, TRequestStatus& /*aStatus*/)
       
    99     {
       
   100         
       
   101     }
       
   102   
       
   103 //    
       
   104 inline void CBTAccPlugin::CancelCloseAudioLink(const TBTDevAddr& /*aAddr*/ )
       
   105     {
       
   106         
       
   107     }
       
   108 
       
   109 inline void CBTAccPlugin::ActivateRemoteVolumeControl() {}
       
   110 
       
   111 inline void CBTAccPlugin::DeActivateRemoteVolumeControl() {}
       
   112 
       
   113 inline TInt CBTAccPlugin::GetRemoteSupportedFeature()
       
   114     {
       
   115     return 0;
       
   116     }
       
   117     
       
   118 inline TInt CBTAccPlugin::AudioLinkLatency()
       
   119     {
       
   120     return KErrNotFound;
       
   121     }
       
   122 //
       
   123 // End of file