os/mm/devsoundextensions/telephonyaudiorouting/Server/inc/TelephonyAudioRoutingClientServer.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 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:   Defines all constants used by the TelephonyAudioRouting
    15 *                Server and its clients.
    16 *
    17 */
    18 
    19 
    20 
    21 #ifndef TELEPHONYAUDIOROUTNGCLIENTSERVER_H
    22 #define TELEPHONYAUDIOROUTNGCLIENTSERVER_H
    23 
    24 
    25 #include <e32base.h>
    26 #include <e32def.h>
    27 #include <e32svr.h>
    28 
    29 /**
    30 * Debug
    31 */
    32 #ifdef _DEBUG
    33 	#define TELAUDRTNG_RDEBUG(X)		  RDebug::Print(X)
    34     #define TELAUDRTNG_RDEBUG1(X,Y)       RDebug::Print(X,Y)
    35 #else
    36 	#define TELAUDRTNG_RDEBUG(X)
    37     #define TELAUDRTNG_RDEBUG1(X,Y)
    38 #endif
    39 
    40 // server name
    41 _LIT(KTelAudRtngServName,"telephonyaudioroutingserver");
    42 
    43 // A version must be specifyed when creating a session with the server
    44 const TUint KTelAudRtngServMajorVersionNumber=0;
    45 const TUint KTelAudRtngServMinorVersionNumber=0;
    46 const TUint KTelAudRtngServBuildVersionNumber=0;
    47 
    48 // opcodes used in message passing between client and server
    49 enum TTelAudRtngServRqst
    50 	{
    51 	ETelAudRtngServDoSetOutput,
    52 	ETelAudRtngServNotifyIfOutputChanged,
    53 	ETelAudRtngServNotifyIfAvailOutputsChanged,
    54 	ETelAudRtngServGetNoOutputs,
    55 	ETelAudRtngServGetAvailableOutputs,
    56 	ETelAudRtngServMonitorOutputChange,
    57 	ETelAudRtngServSetPolicySessionId,
    58 	ETelAudRtngServOutputChangeComplete,
    59 	ETelAudRtngDoAvailableOutputsChanged,
    60 	ETelAudRtngServCancelRequest,
    61 	ETelAudRtngServInitialize,
    62 	ETelAudRtngServOutputChangedByPolicy,
    63 	ETelAudRtngServOutputChangeRequested,
    64 	ETelAudRtngServGetDefaultValues
    65 	};
    66 	
    67 //opcodes used by server to indicate which asynchronous service
    68 //has completed
    69 enum TTelAudRtngServRqstComplete
    70     {
    71     ETelAudRtngServSetOutputComplete = 1,
    72     ETelAudRtngServOutputChanged,
    73     ETelAudRtngServAvailableOutputsChanged,
    74     EPolicyOutputChangeRequest
    75     };
    76 
    77 #endif // #ifndef TELEPHONYAUDIOROUTNGCLIENTSERVER_H
    78