os/mm/devsoundextensions/telephonyaudiorouting/Server/inc/TelephonyAudioRoutingClientServer.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/devsoundextensions/telephonyaudiorouting/Server/inc/TelephonyAudioRoutingClientServer.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,78 @@
1.4 +/*
1.5 +* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description: Defines all constants used by the TelephonyAudioRouting
1.18 +* Server and its clients.
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +
1.24 +#ifndef TELEPHONYAUDIOROUTNGCLIENTSERVER_H
1.25 +#define TELEPHONYAUDIOROUTNGCLIENTSERVER_H
1.26 +
1.27 +
1.28 +#include <e32base.h>
1.29 +#include <e32def.h>
1.30 +#include <e32svr.h>
1.31 +
1.32 +/**
1.33 +* Debug
1.34 +*/
1.35 +#ifdef _DEBUG
1.36 + #define TELAUDRTNG_RDEBUG(X) RDebug::Print(X)
1.37 + #define TELAUDRTNG_RDEBUG1(X,Y) RDebug::Print(X,Y)
1.38 +#else
1.39 + #define TELAUDRTNG_RDEBUG(X)
1.40 + #define TELAUDRTNG_RDEBUG1(X,Y)
1.41 +#endif
1.42 +
1.43 +// server name
1.44 +_LIT(KTelAudRtngServName,"telephonyaudioroutingserver");
1.45 +
1.46 +// A version must be specifyed when creating a session with the server
1.47 +const TUint KTelAudRtngServMajorVersionNumber=0;
1.48 +const TUint KTelAudRtngServMinorVersionNumber=0;
1.49 +const TUint KTelAudRtngServBuildVersionNumber=0;
1.50 +
1.51 +// opcodes used in message passing between client and server
1.52 +enum TTelAudRtngServRqst
1.53 + {
1.54 + ETelAudRtngServDoSetOutput,
1.55 + ETelAudRtngServNotifyIfOutputChanged,
1.56 + ETelAudRtngServNotifyIfAvailOutputsChanged,
1.57 + ETelAudRtngServGetNoOutputs,
1.58 + ETelAudRtngServGetAvailableOutputs,
1.59 + ETelAudRtngServMonitorOutputChange,
1.60 + ETelAudRtngServSetPolicySessionId,
1.61 + ETelAudRtngServOutputChangeComplete,
1.62 + ETelAudRtngDoAvailableOutputsChanged,
1.63 + ETelAudRtngServCancelRequest,
1.64 + ETelAudRtngServInitialize,
1.65 + ETelAudRtngServOutputChangedByPolicy,
1.66 + ETelAudRtngServOutputChangeRequested,
1.67 + ETelAudRtngServGetDefaultValues
1.68 + };
1.69 +
1.70 +//opcodes used by server to indicate which asynchronous service
1.71 +//has completed
1.72 +enum TTelAudRtngServRqstComplete
1.73 + {
1.74 + ETelAudRtngServSetOutputComplete = 1,
1.75 + ETelAudRtngServOutputChanged,
1.76 + ETelAudRtngServAvailableOutputsChanged,
1.77 + EPolicyOutputChangeRequest
1.78 + };
1.79 +
1.80 +#endif // #ifndef TELEPHONYAUDIOROUTNGCLIENTSERVER_H
1.81 +