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 MMFBTPOLICYCLIENTSERVER_H
|
sl@0
|
17 |
#define MMFBTPOLICYCLIENTSERVER_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 |
enum TMMFAudioPolicyState
|
sl@0
|
42 |
{
|
sl@0
|
43 |
EMMFStatePlayData,
|
sl@0
|
44 |
EMMFStateRecordData,
|
sl@0
|
45 |
EMMFStatePlayTone,
|
sl@0
|
46 |
EMMFStatePlayDTMFString,
|
sl@0
|
47 |
EMMFStatePlayToneSequence,
|
sl@0
|
48 |
EMMFStateStopped,
|
sl@0
|
49 |
EMMFStateClosed,
|
sl@0
|
50 |
EMMFStatePaused,
|
sl@0
|
51 |
EMMFStatePlayDualTone,
|
sl@0
|
52 |
EMMFStateNotified,
|
sl@0
|
53 |
EMMFStateCompleted
|
sl@0
|
54 |
};
|
sl@0
|
55 |
|
sl@0
|
56 |
|
sl@0
|
57 |
class TMMFAudioPolicyPrioritySettings
|
sl@0
|
58 |
/**
|
sl@0
|
59 |
*@internalTechnology
|
sl@0
|
60 |
*/
|
sl@0
|
61 |
{
|
sl@0
|
62 |
public:
|
sl@0
|
63 |
TInt iPriority;
|
sl@0
|
64 |
TMdaPriorityPreference iPref;
|
sl@0
|
65 |
TMMFAudioPolicyState iState;
|
sl@0
|
66 |
TBool iCapabilities;
|
sl@0
|
67 |
};
|
sl@0
|
68 |
|
sl@0
|
69 |
class TMMFResourceNotificationSettings
|
sl@0
|
70 |
/**
|
sl@0
|
71 |
*@internalTechnology
|
sl@0
|
72 |
*/
|
sl@0
|
73 |
{
|
sl@0
|
74 |
public:
|
sl@0
|
75 |
TUid iNotificationUid;
|
sl@0
|
76 |
TBufC8<256> iNotificationDelay;
|
sl@0
|
77 |
};
|
sl@0
|
78 |
|
sl@0
|
79 |
typedef TPckgBuf<TMMFAudioPolicyPrioritySettings> TMMFAudioPolicyPrioritySettingsPckg;
|
sl@0
|
80 |
typedef TPckgBuf<TMMFResourceNotificationSettings> TMMFAudioPolicyResourceNotificationSettingsPckg;
|
sl@0
|
81 |
|
sl@0
|
82 |
#endif
|