taskswitcher/contextengine/tsfswpreviewprovider/inc/tspreviewproviderclient.h
changeset 4 4d54b72983ae
equal deleted inserted replaced
3:fb3763350a08 4:4d54b72983ae
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 */
       
     9 
       
    10 #ifndef TSFASTSWAPPREVIEWPROVIDERCLIENT_H
       
    11 #define TSFASTSWAPPREVIEWPROVIDERCLIENT_H
       
    12 
       
    13 #include <e32base.h>
       
    14 #include <w32std.h>
       
    15 #include "tspreviewobserver.h"
       
    16 
       
    17 class CTsPropertyListener;
       
    18 
       
    19 /**
       
    20  * CTsFastSwapPreviewProviderClient
       
    21  */
       
    22 NONSHARABLE_CLASS( CTsFastSwapPreviewProviderClient ) : public CWsGraphic
       
    23     {
       
    24 public:
       
    25     CTsFastSwapPreviewProviderClient( MTsFastSwapPreviewObserver& aObs );
       
    26     void ConstructL();
       
    27     void Register( TInt aWgId );
       
    28     void Unregister( TInt aWgId );
       
    29     void ChangeScreen( TInt aScreenNo );
       
    30     void SetPreviewParam( const TSize& aSize, TDisplayMode aMode );
       
    31     void TakePreview();
       
    32     void AckPreview( TInt aPreviewId );
       
    33     virtual ~CTsFastSwapPreviewProviderClient();
       
    34 private:
       
    35     void HandleMessage( const TDesC8& aData );
       
    36     void OnReplace();
       
    37 private:
       
    38     void DoHandleMessageL( const TDesC8& aData );
       
    39     void SetProperties( TInt aHandle, TInt aWgId, TInt aOp );
       
    40 private:
       
    41     MTsFastSwapPreviewObserver& iObs;
       
    42     CTsPropertyListener* iListener;
       
    43     };
       
    44 
       
    45 #endif // TSPREVIEWPROVIDERCLIENT_H
       
    46 
       
    47 // End of file