windowing/windowserver/test/tcontaindrawer/wssimpledrawer.h
changeset 110 7f25ef56562d
equal deleted inserted replaced
98:bf7481649c98 110:7f25ef56562d
       
     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 __WSSIMPLEDRAWER_H__
       
    23 #define __WSSIMPLEDRAWER_H__
       
    24 
       
    25 
       
    26 #include <w32std.h>
       
    27 const TUid KSimpleDrawerInterfaceId = {0x1028351B};
       
    28 const TUid KSimpleDrawerImplId = {0x1028351C};
       
    29 
       
    30 /** Client representation of a window-server-side drawing owned by this Client
       
    31 @publishedAll
       
    32 @released
       
    33 */
       
    34 NONSHARABLE_CLASS(CWsSimpleGraphicBitmap): public CWsGraphic
       
    35 	{
       
    36 public:
       
    37 	IMPORT_C static CWsSimpleGraphicBitmap* NewL();
       
    38 	IMPORT_C static CWsSimpleGraphicBitmap* NewL(TUid aUid);
       
    39 	IMPORT_C static CWsSimpleGraphicBitmap* NewL(const TWsGraphicId& aReplace);
       
    40 
       
    41 	IMPORT_C ~CWsSimpleGraphicBitmap();
       
    42 public: // protected virtuals from CWsGraphic promoted to public
       
    43 	IMPORT_C TInt ShareGlobally();
       
    44 	IMPORT_C TInt UnShareGlobally();
       
    45 	IMPORT_C TInt Share(TSecureId aClientId);
       
    46 	IMPORT_C TInt UnShare(TSecureId aClientId);
       
    47 	
       
    48 	IMPORT_C TInt UpdateColor(TRgb aColor);
       
    49 
       
    50 public:
       
    51 	CWsSimpleGraphicBitmap();
       
    52 	void HandleMessage(const TDesC8& aData);
       
    53 	void OnReplace();
       
    54 public:
       
    55 	TBool iIsReady;
       
    56 };
       
    57 
       
    58 
       
    59 const TUid KInvisibleDrawerInterfaceId1 = {0x1028353A};
       
    60 const TUid KInvisibleDrawerImplId1 = {0x10283539};
       
    61 
       
    62 /** Client representation of a window-server-side drawing owned by this Client
       
    63 @publishedAll
       
    64 @released
       
    65 */
       
    66 NONSHARABLE_CLASS(CWsInvisibleGraphicBitmap1): public CWsSimpleGraphicBitmap
       
    67 	{
       
    68 public:
       
    69 	IMPORT_C static CWsInvisibleGraphicBitmap1* NewL();
       
    70 	IMPORT_C static CWsInvisibleGraphicBitmap1* NewL(TUid aUid);
       
    71 	IMPORT_C static CWsInvisibleGraphicBitmap1* NewL(const TWsGraphicId& aReplace);
       
    72 };
       
    73 
       
    74 
       
    75 const TUid KInvisibleDrawerInterfaceId2 = {0x1028353C};
       
    76 const TUid KInvisibleDrawerImplId2 = {0x1028353B};
       
    77 
       
    78 /** Client representation of a window-server-side drawing owned by this Client
       
    79 @publishedAll
       
    80 @released
       
    81 */
       
    82 NONSHARABLE_CLASS(CWsInvisibleGraphicBitmap2): public CWsSimpleGraphicBitmap
       
    83 	{
       
    84 public:
       
    85 	IMPORT_C static CWsInvisibleGraphicBitmap2* NewL();
       
    86 	IMPORT_C static CWsInvisibleGraphicBitmap2* NewL(TUid aUid);
       
    87 	IMPORT_C static CWsInvisibleGraphicBitmap2* NewL(const TWsGraphicId& aReplace);
       
    88 };
       
    89 
       
    90 
       
    91 
       
    92 #endif