sl@0: /* sl@0: * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: Defines all constants used by the TelephonyAudioRouting sl@0: * Server and its clients. sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: #ifndef TELEPHONYAUDIOROUTNGCLIENTSERVER_H sl@0: #define TELEPHONYAUDIOROUTNGCLIENTSERVER_H sl@0: sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: /** sl@0: * Debug sl@0: */ sl@0: #ifdef _DEBUG sl@0: #define TELAUDRTNG_RDEBUG(X) RDebug::Print(X) sl@0: #define TELAUDRTNG_RDEBUG1(X,Y) RDebug::Print(X,Y) sl@0: #else sl@0: #define TELAUDRTNG_RDEBUG(X) sl@0: #define TELAUDRTNG_RDEBUG1(X,Y) sl@0: #endif sl@0: sl@0: // server name sl@0: _LIT(KTelAudRtngServName,"telephonyaudioroutingserver"); sl@0: sl@0: // A version must be specifyed when creating a session with the server sl@0: const TUint KTelAudRtngServMajorVersionNumber=0; sl@0: const TUint KTelAudRtngServMinorVersionNumber=0; sl@0: const TUint KTelAudRtngServBuildVersionNumber=0; sl@0: sl@0: // opcodes used in message passing between client and server sl@0: enum TTelAudRtngServRqst sl@0: { sl@0: ETelAudRtngServDoSetOutput, sl@0: ETelAudRtngServNotifyIfOutputChanged, sl@0: ETelAudRtngServNotifyIfAvailOutputsChanged, sl@0: ETelAudRtngServGetNoOutputs, sl@0: ETelAudRtngServGetAvailableOutputs, sl@0: ETelAudRtngServMonitorOutputChange, sl@0: ETelAudRtngServSetPolicySessionId, sl@0: ETelAudRtngServOutputChangeComplete, sl@0: ETelAudRtngDoAvailableOutputsChanged, sl@0: ETelAudRtngServCancelRequest, sl@0: ETelAudRtngServInitialize, sl@0: ETelAudRtngServOutputChangedByPolicy, sl@0: ETelAudRtngServOutputChangeRequested, sl@0: ETelAudRtngServGetDefaultValues sl@0: }; sl@0: sl@0: //opcodes used by server to indicate which asynchronous service sl@0: //has completed sl@0: enum TTelAudRtngServRqstComplete sl@0: { sl@0: ETelAudRtngServSetOutputComplete = 1, sl@0: ETelAudRtngServOutputChanged, sl@0: ETelAudRtngServAvailableOutputsChanged, sl@0: EPolicyOutputChangeRequest sl@0: }; sl@0: sl@0: #endif // #ifndef TELEPHONYAUDIOROUTNGCLIENTSERVER_H sl@0: