taskswitcher/contextengine/tsfswpreviewprovider/inc/tspreviewproviderclient.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 26 Jan 2010 11:48:23 +0200
changeset 4 4d54b72983ae
permissions -rw-r--r--
Revision: 201001 Kit: 201004

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*/

#ifndef TSFASTSWAPPREVIEWPROVIDERCLIENT_H
#define TSFASTSWAPPREVIEWPROVIDERCLIENT_H

#include <e32base.h>
#include <w32std.h>
#include "tspreviewobserver.h"

class CTsPropertyListener;

/**
 * CTsFastSwapPreviewProviderClient
 */
NONSHARABLE_CLASS( CTsFastSwapPreviewProviderClient ) : public CWsGraphic
    {
public:
    CTsFastSwapPreviewProviderClient( MTsFastSwapPreviewObserver& aObs );
    void ConstructL();
    void Register( TInt aWgId );
    void Unregister( TInt aWgId );
    void ChangeScreen( TInt aScreenNo );
    void SetPreviewParam( const TSize& aSize, TDisplayMode aMode );
    void TakePreview();
    void AckPreview( TInt aPreviewId );
    virtual ~CTsFastSwapPreviewProviderClient();
private:
    void HandleMessage( const TDesC8& aData );
    void OnReplace();
private:
    void DoHandleMessageL( const TDesC8& aData );
    void SetProperties( TInt aHandle, TInt aWgId, TInt aOp );
private:
    MTsFastSwapPreviewObserver& iObs;
    CTsPropertyListener* iListener;
    };

#endif // TSPREVIEWPROVIDERCLIENT_H

// End of file