bluetoothengine/btmac/common/btmchandlerapi.h
changeset 0 f63038272f30
child 2 0b192a3a05a4
equal deleted inserted replaced
-1:000000000000 0:f63038272f30
       
     1 /*
       
     2 * Copyright (c) 2009 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 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BTMCHANDLERAPI_H
       
    20 #define BTMCHANDLERAPI_H
       
    21 
       
    22 #include "btmcprofileid.h"
       
    23 #include "btmcobserver.h"
       
    24 
       
    25 // forward declarations
       
    26 class CBtmcProtocol;
       
    27 
       
    28 NONSHARABLE_CLASS(CBtmcHandlerApi) : public CBase
       
    29       {
       
    30 public:
       
    31 
       
    32     IMPORT_C static CBtmcHandlerApi* NewL(
       
    33         MBtmcObserver& aObserver, TBtmcProfileId aProfile, const TDesC8& aBTDevAddr, TBool aAccessoryInitiated);
       
    34 
       
    35     IMPORT_C ~CBtmcHandlerApi();
       
    36     
       
    37     /**
       
    38     * Handle an AT command from HF or HS unit.
       
    39     *
       
    40     */
       
    41     IMPORT_C void HandleProtocolDataL(const TDesC8& aData);
       
    42     
       
    43     IMPORT_C void HandleNrecCompletedL(TInt aErr);
       
    44     
       
    45     IMPORT_C void ActivateRemoteVolumeControl();
       
    46 
       
    47     IMPORT_C void DeActivateRemoteVolumeControl();     
       
    48     
       
    49     IMPORT_C TInt GetRemoteSupportedFeature();
       
    50 
       
    51 private:
       
    52     CBtmcHandlerApi();
       
    53     
       
    54     // 2nd phase construction, called by NewL()
       
    55     void ConstructL(MBtmcObserver& aObserver, TBtmcProfileId aProfile, const TDesC8& aBTDevAddr, TBool aAccessoryInitiated);
       
    56 
       
    57 private:
       
    58     CBtmcProtocol* iHandler;
       
    59     };
       
    60 
       
    61 
       
    62 #endif // BTMCHANDLERAPI_H
       
    63 
       
    64 // End of File
       
    65