windowing/windowserver/tbufferdrawer/wsbufferdrawer.h
changeset 116 171fae344dd4
parent 103 2717213c588a
equal deleted inserted replaced
103:2717213c588a 116:171fae344dd4
     1 // Copyright (c) 2008-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 WSBUFFERDRAWER_H_
       
    23 #define WSBUFFERDRAWER_H_
       
    24 
       
    25 
       
    26 #include <w32std.h>
       
    27 const TUid KBufferDrawerInterfaceId = {0x10285D53};
       
    28 const TUid KBufferDrawerImplId = {0x10285D54};
       
    29 
       
    30 /** Client representation of a window-server-side drawing owned by this Client
       
    31 @publishedAll
       
    32 @released
       
    33 */
       
    34 NONSHARABLE_CLASS(CWsBufferGraphic): public CWsGraphic
       
    35 	{
       
    36 public:
       
    37 	IMPORT_C static CWsBufferGraphic* NewL();
       
    38 	IMPORT_C static CWsBufferGraphic* NewL(TUid aUid);
       
    39 	IMPORT_C static CWsBufferGraphic* NewL(const TWsGraphicId& aReplace);
       
    40 	IMPORT_C ~CWsBufferGraphic();
       
    41 	IMPORT_C TInt UpdateWhiteLinePos(TInt aWhiteLinePos);
       
    42 	
       
    43 public: // protected virtuals from CWsGraphic promoted to public
       
    44 	IMPORT_C TInt ShareGlobally();
       
    45 	IMPORT_C TInt UnShareGlobally();
       
    46 	IMPORT_C TInt Share(TSecureId aClientId);
       
    47 	IMPORT_C TInt UnShare(TSecureId aClientId);
       
    48 	
       
    49 public:
       
    50 	CWsBufferGraphic();
       
    51 	void HandleMessage(const TDesC8& aData);
       
    52 	void OnReplace();
       
    53 };
       
    54 
       
    55 #endif /*WSBUFFERDRAWER_H_*/