1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/devsound/devsoundrefplugin/src/server/MmfPolicyClientServer.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,85 @@
1.4 +// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef MMFPOLICYCLIENTSERVER_H
1.20 +#define MMFPOLICYCLIENTSERVER_H
1.21 +
1.22 +#include <mmf/common/mmfbase.h>
1.23 +
1.24 +// opcodes used in message passing between client and server
1.25 +enum TMMFPolicyServerRequest
1.26 + {
1.27 + EMMFPolicySetDevSoundInfo,
1.28 + EMMFPolicyMakeRequest,
1.29 + EMMFPolicyCancelMakeRequest,
1.30 + EMMFPolicyUpdateState,
1.31 + EMMFPolicyReceiveEvents,
1.32 + EMMFPolicyCancelReceiveEvents,
1.33 + EMMFPolicyGetPlayFormatsSupported,
1.34 + EMMFPolicyGetRecordFormatsSupported,
1.35 + EMMFPolicyGetPlayFormat,
1.36 + EMMFPolicyGetRecordFormat,
1.37 + EMMFPolicyLaunchRequests,
1.38 + EMMFPolicyRequestResourceNotification,
1.39 + EMMFPolicyCancelRequestResourceNotification,
1.40 + EMMFPolicyStopNotification,
1.41 + EMMFPolicyGetResourceNotificationEvent
1.42 + };
1.43 +
1.44 +// All the "play" states must be LOWER in value than EMMFStateStopped!
1.45 +enum TMMFAudioPolicyState
1.46 + {
1.47 + EMMFStatePlayData, // 0
1.48 + EMMFStateRecordData, // 1
1.49 + EMMFStatePlayTone, // 2
1.50 + EMMFStatePlayDTMFString, // 3
1.51 + EMMFStatePlayToneSequence, // 4
1.52 + EMMFStateStopped, // 5
1.53 + EMMFStateClosed, // 6
1.54 + EMMFStatePaused, // 7
1.55 + EMMFStatePlayDualTone, // 8
1.56 + EMMFStateNotified, // 9
1.57 + EMMFStateCompleted, // 10
1.58 + EMMFStateWaitingForResource,// 11
1.59 + EMMFStatePreempted, // 12
1.60 + };
1.61 +
1.62 +
1.63 +class TMMFAudioPolicyPrioritySettings
1.64 +/**
1.65 +*@internalTechnology
1.66 +*/
1.67 + {
1.68 +public:
1.69 + TInt iPriority;
1.70 + TMdaPriorityPreference iPref;
1.71 + TMMFAudioPolicyState iState;
1.72 + TBool iCapabilities;
1.73 + };
1.74 +
1.75 +class TMMFResourceNotificationSettings
1.76 +/**
1.77 +*@internalTechnology
1.78 +*/
1.79 + {
1.80 +public:
1.81 + TUid iNotificationUid;
1.82 + TBufC8<256> iNotificationDelay;
1.83 + };
1.84 +
1.85 +typedef TPckgBuf<TMMFAudioPolicyPrioritySettings> TMMFAudioPolicyPrioritySettingsPckg;
1.86 +typedef TPckgBuf<TMMFResourceNotificationSettings> TMMFAudioPolicyResourceNotificationSettingsPckg;
1.87 +
1.88 +#endif