mmlibs/mmfw/src/Client/Video/mediaclientpolicyserverclient.h
branchRCL_3
changeset 8 bc06d8566074
equal deleted inserted replaced
7:94dbab0a2133 8:bc06d8566074
       
     1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef MEDIACLIENTPOLICYSERVERCLIENT_H
       
    17 #define MEDIACLIENTPOLICYSERVERCLIENT_H
       
    18 
       
    19 #include "mediaclientpolicyserversession.h"
       
    20 #include <e32base.h>
       
    21 #include <graphics/surface.h>
       
    22 
       
    23 const TInt KFocusSurfaceChanged = 9; // taken from Policy Server
       
    24 
       
    25 NONSHARABLE_CLASS(CMediaClientPolicyServerClient) : public CBase
       
    26     {
       
    27 private:
       
    28     class TFocusSurfaceChangedEvent
       
    29         {
       
    30         public:
       
    31             TSurfaceId iSurfaceId;
       
    32             TBool iForeground;        
       
    33         };
       
    34 
       
    35 public:
       
    36     static CMediaClientPolicyServerClient* NewL();
       
    37     virtual ~CMediaClientPolicyServerClient();
       
    38 
       
    39 public:
       
    40     TInt Connect();
       
    41     void Close();
       
    42     void SetSurface(const TSurfaceId& aSurfaceId);
       
    43     void FocusChanged(TBool aForeground);  
       
    44     TBool IgnoreProcess(TSecureId aId);
       
    45     
       
    46 private:
       
    47     CMediaClientPolicyServerClient();
       
    48 
       
    49 private:
       
    50     RMediaClientPolicyServerSession iSession;
       
    51     TSurfaceId iSurfaceId;
       
    52     };
       
    53 
       
    54 #endif // MEDIACLIENTPOLICYSERVERCLIENT_H