bluetoothengine/btaudioman/inc/basrvrvc.h
changeset 0 f63038272f30
equal deleted inserted replaced
-1:000000000000 0:f63038272f30
       
     1 /*
       
     2 * Copyright (c) 2005-2007 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:  Remote Volume Control
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_BTASRVRVC_H
       
    20 #define C_BTASRVRVC_H
       
    21 
       
    22 #include <e32base.h> 
       
    23 #include "btaccTypes.h"
       
    24 
       
    25 class CBasrvAcc;
       
    26 
       
    27 /**
       
    28 * This class is responsible for deciding which profile should take care of remote volume control
       
    29 * based on the supported profiles in the remote side and the current audio path situation.
       
    30 */
       
    31 class CBasrvRvc : public CBase
       
    32     {
       
    33 public:
       
    34     static CBasrvRvc* New(CBasrvAcc& aAcc);
       
    35 
       
    36     ~CBasrvRvc();
       
    37 
       
    38     void Update(TInt aConnectedProfiles, TInt aProfileCarryingAudio);
       
    39     
       
    40 private:
       
    41 
       
    42     /**
       
    43     * Default constructor
       
    44     */
       
    45     CBasrvRvc(CBasrvAcc& aAcc);
       
    46 
       
    47     void DoUpdateRvcMaster();
       
    48 
       
    49 private:
       
    50     CBasrvAcc& iAcc;
       
    51     
       
    52     TInt iConnectedProfiles;
       
    53     
       
    54     TProfiles iRvcMaster; // the current profile which is mastering RVC
       
    55     TInt iProfileCarryingAudio; // The latest (last if no BT audio is opne) profile that carries BT audio
       
    56     
       
    57     };
       
    58 
       
    59 #endif      // C_BTASRVRVC_H
       
    60 
       
    61 // End of File