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.
sl@0
     1
/*
sl@0
     2
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
sl@0
     3
* All rights reserved.
sl@0
     4
* This component and the accompanying materials are made available
sl@0
     5
* under the terms of "Eclipse Public License v1.0"
sl@0
     6
* which accompanies this distribution, and is available
sl@0
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
*
sl@0
     9
* Initial Contributors:
sl@0
    10
* Nokia Corporation - initial contribution.
sl@0
    11
*
sl@0
    12
* Contributors:
sl@0
    13
*
sl@0
    14
* Description:   Defines all constants used by the TelephonyAudioRouting
sl@0
    15
*                Server and its clients.
sl@0
    16
*
sl@0
    17
*/
sl@0
    18
sl@0
    19
sl@0
    20
sl@0
    21
#ifndef TELEPHONYAUDIOROUTNGCLIENTSERVER_H
sl@0
    22
#define TELEPHONYAUDIOROUTNGCLIENTSERVER_H
sl@0
    23
sl@0
    24
sl@0
    25
#include <e32base.h>
sl@0
    26
#include <e32def.h>
sl@0
    27
#include <e32svr.h>
sl@0
    28
sl@0
    29
/**
sl@0
    30
* Debug
sl@0
    31
*/
sl@0
    32
#ifdef _DEBUG
sl@0
    33
	#define TELAUDRTNG_RDEBUG(X)		  RDebug::Print(X)
sl@0
    34
    #define TELAUDRTNG_RDEBUG1(X,Y)       RDebug::Print(X,Y)
sl@0
    35
#else
sl@0
    36
	#define TELAUDRTNG_RDEBUG(X)
sl@0
    37
    #define TELAUDRTNG_RDEBUG1(X,Y)
sl@0
    38
#endif
sl@0
    39
sl@0
    40
// server name
sl@0
    41
_LIT(KTelAudRtngServName,"telephonyaudioroutingserver");
sl@0
    42
sl@0
    43
// A version must be specifyed when creating a session with the server
sl@0
    44
const TUint KTelAudRtngServMajorVersionNumber=0;
sl@0
    45
const TUint KTelAudRtngServMinorVersionNumber=0;
sl@0
    46
const TUint KTelAudRtngServBuildVersionNumber=0;
sl@0
    47
sl@0
    48
// opcodes used in message passing between client and server
sl@0
    49
enum TTelAudRtngServRqst
sl@0
    50
	{
sl@0
    51
	ETelAudRtngServDoSetOutput,
sl@0
    52
	ETelAudRtngServNotifyIfOutputChanged,
sl@0
    53
	ETelAudRtngServNotifyIfAvailOutputsChanged,
sl@0
    54
	ETelAudRtngServGetNoOutputs,
sl@0
    55
	ETelAudRtngServGetAvailableOutputs,
sl@0
    56
	ETelAudRtngServMonitorOutputChange,
sl@0
    57
	ETelAudRtngServSetPolicySessionId,
sl@0
    58
	ETelAudRtngServOutputChangeComplete,
sl@0
    59
	ETelAudRtngDoAvailableOutputsChanged,
sl@0
    60
	ETelAudRtngServCancelRequest,
sl@0
    61
	ETelAudRtngServInitialize,
sl@0
    62
	ETelAudRtngServOutputChangedByPolicy,
sl@0
    63
	ETelAudRtngServOutputChangeRequested,
sl@0
    64
	ETelAudRtngServGetDefaultValues
sl@0
    65
	};
sl@0
    66
	
sl@0
    67
//opcodes used by server to indicate which asynchronous service
sl@0
    68
//has completed
sl@0
    69
enum TTelAudRtngServRqstComplete
sl@0
    70
    {
sl@0
    71
    ETelAudRtngServSetOutputComplete = 1,
sl@0
    72
    ETelAudRtngServOutputChanged,
sl@0
    73
    ETelAudRtngServAvailableOutputsChanged,
sl@0
    74
    EPolicyOutputChangeRequest
sl@0
    75
    };
sl@0
    76
sl@0
    77
#endif // #ifndef TELEPHONYAUDIOROUTNGCLIENTSERVER_H
sl@0
    78