1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/devsound/sounddevbt/src/server/MmfBtAudioPolicyRequest.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,95 @@
1.4 +// Copyright (c) 2001-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 __MMFBTAUDIOPOLICYREQUEST_H__
1.20 +#define __MMFBTAUDIOPOLICYREQUEST_H__
1.21 +
1.22 +#include <e32base.h>
1.23 +#include "MmfBtPolicyClientServer.h"
1.24 +
1.25 +enum TPolicyResponse
1.26 +{
1.27 + EProceed,
1.28 + EDenied,
1.29 + EStopThenProceed,
1.30 + EResume,
1.31 + EMix
1.32 +};
1.33 +
1.34 +/******************************************************************************
1.35 +* Class Name: CMMFAudioPolicyRequest
1.36 +*
1.37 +* Description: This class carries request information from the client to the
1.38 +* server, upon making a request to proceed with a user's command.
1.39 +*
1.40 +******************************************************************************/
1.41 +
1.42 +
1.43 +class CMMFAudioPolicyRequest : public CBase
1.44 +/**
1.45 +*@internalTechnology
1.46 +*/
1.47 + {
1.48 +public:
1.49 + inline CMMFAudioPolicyRequest();
1.50 + ~CMMFAudioPolicyRequest(){};
1.51 +
1.52 + // Accessor methods:
1.53 +
1.54 + inline void SetPrioritySettings(const TMMFAudioPolicyPrioritySettings& aPrioritySettings);
1.55 +
1.56 + inline TInt Priority();
1.57 + inline void SetPriority(TInt aPriority);
1.58 +
1.59 + inline TMMFAudioPolicyState State();
1.60 + inline void SetState(TMMFAudioPolicyState aState);
1.61 +
1.62 + inline TMdaPriorityPreference Pref();
1.63 + inline void SetPref(TMdaPriorityPreference aPref);
1.64 +
1.65 + inline TInt PolicySessionId();
1.66 +
1.67 + inline TBool DeviceInUse();
1.68 + inline void SetDeviceInUse(TBool aDeviceInUse);
1.69 +
1.70 + inline TUid NotificationEvent() const;
1.71 + inline void SetNotificationEvent(TUid aNotificationEventUid);
1.72 + inline void ResetNotificationEvent(TUid aNotificationEventUid);
1.73 + inline void SetEventFlag(TBool aEventFlag);
1.74 + inline TBool IsEventNotified() const;
1.75 +
1.76 + inline TBool Capabilities();
1.77 + inline void SetCapabilities(TBool aCaps);
1.78 +
1.79 +private:
1.80 +
1.81 + TInt iPriority;
1.82 + TMdaPriorityPreference iPref;
1.83 + TMMFAudioPolicyState iState;
1.84 + TInt iPolicySessionId;
1.85 + TMMFAudioPolicyPrioritySettings iPrioritySettings;
1.86 + TBool iDeviceInUse;
1.87 + TUid iNotificationEventUid;
1.88 + TBool iEventNotified;
1.89 +
1.90 + TBool iCapabilities;
1.91 +
1.92 + friend class CMMFAudioPolicySession; // Allow this class to use SetSessionId()
1.93 + inline void SetPolicySessionId(TInt aPolicySessionId);
1.94 + };
1.95 +
1.96 +#include "MmfBtAudioPolicyRequest.inl"
1.97 +
1.98 +#endif //__MMFBTAUDIOPOLICYREQUEST_H__