mmlibs/mmfw/src/Client/Video/mediaclientwseventobserver.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 /**
       
    17  @file
       
    18  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef MEDIACLIENTWSEVENTOBSERVER_H
       
    22 #define MEDIACLIENTWSEVENTOBSERVER_H
       
    23 
       
    24 #include <e32base.h> 
       
    25 #include <w32std.h> 
       
    26 
       
    27 class MMediaClientWsEventObserverCallback
       
    28     {
       
    29 public:
       
    30     virtual void MmcweoFocusWindowGroupChanged() = 0;
       
    31     virtual TBool MmcweoIgnoreProcess(TSecureId aId) = 0;
       
    32     };
       
    33 
       
    34 NONSHARABLE_CLASS(CMediaClientWsEventObserver) : public CActive
       
    35     {
       
    36 public:
       
    37     static CMediaClientWsEventObserver* NewL(MMediaClientWsEventObserverCallback& aCallback);
       
    38     ~CMediaClientWsEventObserver();
       
    39     
       
    40     TInt FocusWindowGroupId(TInt& aFocusGroupId);
       
    41     
       
    42     // from CActive
       
    43     void RunL();
       
    44     void DoCancel();
       
    45     
       
    46 private:
       
    47     CMediaClientWsEventObserver(MMediaClientWsEventObserverCallback& aCallback);
       
    48     void ConstructL();
       
    49     void UpdateFocusWindowGroupId(TBool aConstruction);
       
    50     
       
    51 private:
       
    52     RWsSession iWs;
       
    53     RWindowGroup iWindowGroup;
       
    54     MMediaClientWsEventObserverCallback& iCallback;
       
    55     TWsEvent iEvent;
       
    56     TInt iWgId;
       
    57     TInt iWgIdError; 
       
    58     };
       
    59 
       
    60 #endif // MEDIACLIENTWSEVENTOBSERVER_H
       
    61