sl@0: // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef MEDIACLIENTPOLICYSERVERCLIENT_H sl@0: #define MEDIACLIENTPOLICYSERVERCLIENT_H sl@0: sl@0: #include "mediaclientpolicyserversession.h" sl@0: #include sl@0: #include sl@0: sl@0: const TInt KFocusSurfaceChanged = 9; // taken from Policy Server sl@0: sl@0: NONSHARABLE_CLASS(CMediaClientPolicyServerClient) : public CBase sl@0: { sl@0: private: sl@0: class TFocusSurfaceChangedEvent sl@0: { sl@0: public: sl@0: TSurfaceId iSurfaceId; sl@0: TBool iForeground; sl@0: }; sl@0: sl@0: public: sl@0: static CMediaClientPolicyServerClient* NewL(); sl@0: virtual ~CMediaClientPolicyServerClient(); sl@0: sl@0: public: sl@0: TInt Connect(); sl@0: void Close(); sl@0: void SetSurface(const TSurfaceId& aSurfaceId); sl@0: void FocusChanged(TBool aForeground); sl@0: TBool IgnoreProcess(TSecureId aId); sl@0: sl@0: private: sl@0: CMediaClientPolicyServerClient(); sl@0: sl@0: private: sl@0: RMediaClientPolicyServerSession iSession; sl@0: TSurfaceId iSurfaceId; sl@0: }; sl@0: sl@0: #endif // MEDIACLIENTPOLICYSERVERCLIENT_H