bluetoothengine/btaudioman/inc/basrvpluginman.h
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 *  Version     : %version:  1.1.1.2.5 %
       
    12 *
       
    13 * Contributors:
       
    14 *
       
    15 * Description: 
       
    16 *     Loads/unloads plugins and handles messaging between plugins and server class.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef BTACCMANAGER_H
       
    22 #define BTACCMANAGER_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <ecom/ecom.h>        // RImplInfoPtrArray
       
    26 
       
    27 #include "BTAccClientSrv.h" // TBTAccCmd
       
    28 #include "btaccTypes.h"     // BT Acc Server defines type of audio accessories
       
    29 
       
    30 
       
    31 // CLASS DECLARATION
       
    32 class CBTAccPlugin;
       
    33 class MBTAccObserver;
       
    34 
       
    35 /**
       
    36 *  CBTSession class represent session on server side
       
    37 *
       
    38 */
       
    39 NONSHARABLE_CLASS(CBasrvPluginMan) : public CBase
       
    40                                     
       
    41     {
       
    42 public:  // Constructors and destructor
       
    43 
       
    44     /**
       
    45     * Constructor.
       
    46     */
       
    47     static CBasrvPluginMan* NewL();
       
    48 
       
    49     /**
       
    50     * Destructor.
       
    51     */
       
    52     ~CBasrvPluginMan();
       
    53 
       
    54     void AccInUse();
       
    55     
       
    56 	TInt AudioLinkLatency();
       
    57     void AccOutOfUse();
       
    58     
       
    59     TInt AvailablePlugins();
       
    60     
       
    61 public:
       
    62 
       
    63     /**
       
    64     * 
       
    65     * 
       
    66     * 
       
    67     * @param    
       
    68     * @return   None
       
    69     */
       
    70     void LoadPluginsL(MBTAccObserver& aObserver);
       
    71     
       
    72     /**
       
    73     * 
       
    74     * 
       
    75     * 
       
    76     * @param    
       
    77     * @return   None
       
    78     */
       
    79     void UnloadPlugins();
       
    80 
       
    81     CBTAccPlugin* Plugin(TProfiles aProfile);
       
    82 
       
    83 private: // New Functions
       
    84     CBasrvPluginMan();
       
    85     
       
    86 private:    // Data
       
    87      RPointerArray<CBTAccPlugin> iPlugins;
       
    88     };
       
    89 
       
    90 #endif      // BTACCMANAGER_H
       
    91 
       
    92 // End of File