1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/devsound/sounddevbt/src/server/MmfBtPolicyClientServer.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,82 @@
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 MMFBTPOLICYCLIENTSERVER_H
1.20 +#define MMFBTPOLICYCLIENTSERVER_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 +enum TMMFAudioPolicyState
1.45 + {
1.46 + EMMFStatePlayData,
1.47 + EMMFStateRecordData,
1.48 + EMMFStatePlayTone,
1.49 + EMMFStatePlayDTMFString,
1.50 + EMMFStatePlayToneSequence,
1.51 + EMMFStateStopped,
1.52 + EMMFStateClosed,
1.53 + EMMFStatePaused,
1.54 + EMMFStatePlayDualTone,
1.55 + EMMFStateNotified,
1.56 + EMMFStateCompleted
1.57 + };
1.58 +
1.59 +
1.60 +class TMMFAudioPolicyPrioritySettings
1.61 +/**
1.62 +*@internalTechnology
1.63 +*/
1.64 + {
1.65 +public:
1.66 + TInt iPriority;
1.67 + TMdaPriorityPreference iPref;
1.68 + TMMFAudioPolicyState iState;
1.69 + TBool iCapabilities;
1.70 + };
1.71 +
1.72 +class TMMFResourceNotificationSettings
1.73 +/**
1.74 +*@internalTechnology
1.75 +*/
1.76 + {
1.77 +public:
1.78 + TUid iNotificationUid;
1.79 + TBufC8<256> iNotificationDelay;
1.80 + };
1.81 +
1.82 +typedef TPckgBuf<TMMFAudioPolicyPrioritySettings> TMMFAudioPolicyPrioritySettingsPckg;
1.83 +typedef TPckgBuf<TMMFResourceNotificationSettings> TMMFAudioPolicyResourceNotificationSettingsPckg;
1.84 +
1.85 +#endif