windowing/windowserver/test/tcontaindrawer/wscontaindrawer.h
changeset 103 2717213c588a
parent 0 5d03bc08d59c
equal deleted inserted replaced
98:bf7481649c98 103:2717213c588a
       
     1 // Copyright (c) 2007-2009 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  @test
       
    19  @internalComponent - Internal Symbian test code
       
    20 */
       
    21 
       
    22 #ifndef __WSCONTAINDRAWER_H__
       
    23 #define __WSCONTAINDRAWER_H__
       
    24 
       
    25 #include <w32std.h>
       
    26 
       
    27 const TUid KContainDrawerInterfaceId = {0x10283522};
       
    28 const TUid KContainDrawerImplId = {0x10283521};
       
    29 /** Client representation of a window-server-side drawing owned by this Client
       
    30 @publishedAll
       
    31 @released
       
    32 */
       
    33 NONSHARABLE_CLASS(CWsContainGraphicBitmap): public CWsGraphic
       
    34 	{
       
    35 public:
       
    36 	IMPORT_C static CWsContainGraphicBitmap* NewL();
       
    37 	IMPORT_C static CWsContainGraphicBitmap* NewL(TUid aUid);
       
    38 	IMPORT_C static CWsContainGraphicBitmap* NewL(const TWsGraphicId& aReplace);
       
    39 	IMPORT_C ~CWsContainGraphicBitmap();
       
    40 public: 
       
    41 	IMPORT_C TInt ShareGlobally();
       
    42 	IMPORT_C TInt UnShareGlobally();
       
    43 	IMPORT_C TInt Share(TSecureId aClientId);
       
    44 	IMPORT_C TInt UnShare(TSecureId aClientId);
       
    45 	
       
    46 	IMPORT_C TInt UpdateColor(TRgb aColor);
       
    47 public:
       
    48 	CWsContainGraphicBitmap();
       
    49 	void HandleMessage(const TDesC8& aData);
       
    50 	void OnReplace();
       
    51 private:
       
    52 	TBool iIsReady;
       
    53 };
       
    54 
       
    55 #endif