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