windowing/windowserver/tcontaindrawer/wssimpledrawer.h
author Faisal Memon <faisal.memon@nokia.com>
Thu, 06 May 2010 11:31:11 +0100
branchNewGraphicsArchitecture
changeset 47 48b924ae7197
parent 0 5d03bc08d59c
permissions -rw-r--r--
Applied patch 1, to provide a syborg specific minigui oby file. Need to compare this with the "stripped" version currently in the tree. This supplied version applies for Nokia builds, but need to repeat the test for SF builds to see if pruning is needed, or if the file needs to be device-specific.

// Copyright (c) 2007-2009 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".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

/**
 @file
 @test
 @internalComponent - Internal Symbian test code
*/

#ifndef __WSSIMPLEDRAWER_H__
#define __WSSIMPLEDRAWER_H__


#include <w32std.h>
const TUid KSimpleDrawerInterfaceId = {0x1028351B};
const TUid KSimpleDrawerImplId = {0x1028351C};

/** Client representation of a window-server-side drawing owned by this Client
@publishedAll
@released
*/
NONSHARABLE_CLASS(CWsSimpleGraphicBitmap): public CWsGraphic
	{
public:
	IMPORT_C static CWsSimpleGraphicBitmap* NewL();
	IMPORT_C static CWsSimpleGraphicBitmap* NewL(TUid aUid);
	IMPORT_C static CWsSimpleGraphicBitmap* NewL(const TWsGraphicId& aReplace);

	IMPORT_C ~CWsSimpleGraphicBitmap();
public: // protected virtuals from CWsGraphic promoted to public
	IMPORT_C TInt ShareGlobally();
	IMPORT_C TInt UnShareGlobally();
	IMPORT_C TInt Share(TSecureId aClientId);
	IMPORT_C TInt UnShare(TSecureId aClientId);
	
	IMPORT_C TInt UpdateColor(TRgb aColor);

public:
	CWsSimpleGraphicBitmap();
	void HandleMessage(const TDesC8& aData);
	void OnReplace();
public:
	TBool iIsReady;
};


const TUid KInvisibleDrawerInterfaceId1 = {0x1028353A};
const TUid KInvisibleDrawerImplId1 = {0x10283539};

/** Client representation of a window-server-side drawing owned by this Client
@publishedAll
@released
*/
NONSHARABLE_CLASS(CWsInvisibleGraphicBitmap1): public CWsSimpleGraphicBitmap
	{
public:
	IMPORT_C static CWsInvisibleGraphicBitmap1* NewL();
	IMPORT_C static CWsInvisibleGraphicBitmap1* NewL(TUid aUid);
	IMPORT_C static CWsInvisibleGraphicBitmap1* NewL(const TWsGraphicId& aReplace);
};


const TUid KInvisibleDrawerInterfaceId2 = {0x1028353C};
const TUid KInvisibleDrawerImplId2 = {0x1028353B};

/** Client representation of a window-server-side drawing owned by this Client
@publishedAll
@released
*/
NONSHARABLE_CLASS(CWsInvisibleGraphicBitmap2): public CWsSimpleGraphicBitmap
	{
public:
	IMPORT_C static CWsInvisibleGraphicBitmap2* NewL();
	IMPORT_C static CWsInvisibleGraphicBitmap2* NewL(TUid aUid);
	IMPORT_C static CWsInvisibleGraphicBitmap2* NewL(const TWsGraphicId& aReplace);
};



#endif