os/mm/devsound/devsoundrefplugin/src/server/MmfPolicyClientServer.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef MMFPOLICYCLIENTSERVER_H
    17 #define MMFPOLICYCLIENTSERVER_H
    18 
    19 #include <mmf/common/mmfbase.h>
    20 
    21 // opcodes used in message passing between client and server
    22 enum TMMFPolicyServerRequest
    23 	{
    24 	EMMFPolicySetDevSoundInfo,
    25 	EMMFPolicyMakeRequest,
    26 	EMMFPolicyCancelMakeRequest,
    27 	EMMFPolicyUpdateState,
    28 	EMMFPolicyReceiveEvents,
    29 	EMMFPolicyCancelReceiveEvents,
    30 	EMMFPolicyGetPlayFormatsSupported,
    31 	EMMFPolicyGetRecordFormatsSupported,
    32 	EMMFPolicyGetPlayFormat,
    33 	EMMFPolicyGetRecordFormat,
    34 	EMMFPolicyLaunchRequests,
    35 	EMMFPolicyRequestResourceNotification,
    36 	EMMFPolicyCancelRequestResourceNotification,
    37 	EMMFPolicyStopNotification,
    38 	EMMFPolicyGetResourceNotificationEvent
    39 	};
    40 	
    41 // All the "play" states must be LOWER in value than EMMFStateStopped!
    42 enum TMMFAudioPolicyState
    43 	{
    44 	EMMFStatePlayData,			// 0
    45 	EMMFStateRecordData,		// 1
    46 	EMMFStatePlayTone,			// 2
    47 	EMMFStatePlayDTMFString,	// 3
    48 	EMMFStatePlayToneSequence,	// 4
    49 	EMMFStateStopped,			// 5
    50 	EMMFStateClosed,			// 6
    51 	EMMFStatePaused,			// 7
    52 	EMMFStatePlayDualTone,		// 8
    53 	EMMFStateNotified,			// 9
    54 	EMMFStateCompleted,			// 10
    55 	EMMFStateWaitingForResource,// 11
    56 	EMMFStatePreempted,			// 12
    57 	};
    58 	
    59 
    60 class TMMFAudioPolicyPrioritySettings
    61 /**
    62 *@internalTechnology
    63 */
    64 	{
    65 public:
    66 	TInt iPriority;
    67 	TMdaPriorityPreference iPref;
    68 	TMMFAudioPolicyState iState; 
    69 	TBool iCapabilities;
    70 	};
    71 	
    72 class TMMFResourceNotificationSettings
    73 /**
    74 *@internalTechnology
    75 */
    76 	{
    77 public:
    78 	TUid iNotificationUid;
    79 	TBufC8<256> iNotificationDelay;
    80 	};
    81 
    82 typedef TPckgBuf<TMMFAudioPolicyPrioritySettings> TMMFAudioPolicyPrioritySettingsPckg;
    83 typedef TPckgBuf<TMMFResourceNotificationSettings> TMMFAudioPolicyResourceNotificationSettingsPckg;
    84 
    85 #endif