bluetoothengine/btaudioman/inc/BTAccClientSrv.h
changeset 0 f63038272f30
child 6 6a29d5ad0713
equal deleted inserted replaced
-1:000000000000 0:f63038272f30
       
     1 /*
       
     2 * Copyright (c) 2005 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 *     BT Acc Server op-codes, panic enumerations and other definitions.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __BTACCCLIENTSRV_H
       
    21 #define __BTACCCLIENTSRV_H
       
    22 
       
    23 //  INCLUDES
       
    24 
       
    25 // CONSTANTS
       
    26 
       
    27 // Panic definitions
       
    28 _LIT(KBTAudioManPanic,"BTAudioMan panic");
       
    29 
       
    30 // reasons for server panic
       
    31 enum TBTAccSrvPanic
       
    32     {
       
    33     EBTAccNoPluginsAvailable,
       
    34     EBTAccPluginImplementationNotAccessable, 
       
    35     EBTAccBadRequest
       
    36     };
       
    37 
       
    38 // Opcodes used in message passing between client and server
       
    39 enum TBTAccSrvServRequest
       
    40     {
       
    41     EBTAccSrvConnectToAccessory,
       
    42     EBTAccSrvCancelConnectToAccessory,
       
    43     EBTAccSrvDisconnectAccessory,
       
    44     EBTAccSrvGetConnections,
       
    45     EBTAccSrvDisconnectAllGracefully,
       
    46     EBTAccSrvNotifyConnectionStatus,
       
    47     EBTAccSrvCancelNotifyConnectionStatus,
       
    48     EBTAccSrvConnectionStatus,
       
    49     EBTAccSrvGetInfoOfConnectedAcc,
       
    50     EBTAccSrvAudioToPhone,
       
    51     EBTAccSrvAudioToAccessory,
       
    52     EBTAccSrvCancelAudioToAccessory,
       
    53     EBTAccSrvInvalidIpc,
       
    54     };
       
    55 
       
    56 // server name
       
    57 _LIT(KBTAudioManName,"btaudioman");
       
    58 
       
    59 // A version must be specifyed when creating a session with the server
       
    60 const TUint KBTAccServerMajorVersionNumber=1;
       
    61 const TUint KBTAccServerMinorVersionNumber=0;
       
    62 const TUint KBTAccServerBuildVersionNumber=1;
       
    63 
       
    64 /**
       
    65 * Utility to panic the client.
       
    66 */
       
    67 void PanicClient(const RMessage2& aMessage, TInt aPanic);
       
    68 
       
    69 /**
       
    70 * Utility to panic server.
       
    71 */
       
    72 void PanicServer(TInt aPanic);
       
    73 
       
    74 #endif // _BTACCCLIENTSRV_H
       
    75