windowing/windowserver/test/tbufferdrawer/wsbufferdrawer.h
author hgs
Tue, 22 Jun 2010 15:21:29 +0300
changeset 103 2717213c588a
permissions -rw-r--r--
201024
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
103
hgs
parents:
diff changeset
     1
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     2
// All rights reserved.
hgs
parents:
diff changeset
     3
// This component and the accompanying materials are made available
hgs
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     5
// which accompanies this distribution, and is available
hgs
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     7
//
hgs
parents:
diff changeset
     8
// Initial Contributors:
hgs
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    10
//
hgs
parents:
diff changeset
    11
// Contributors:
hgs
parents:
diff changeset
    12
//
hgs
parents:
diff changeset
    13
// Description:
hgs
parents:
diff changeset
    14
//
hgs
parents:
diff changeset
    15
hgs
parents:
diff changeset
    16
/**
hgs
parents:
diff changeset
    17
 @file
hgs
parents:
diff changeset
    18
 @test
hgs
parents:
diff changeset
    19
 @internalComponent - Internal Symbian test code
hgs
parents:
diff changeset
    20
*/
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
#ifndef WSBUFFERDRAWER_H_
hgs
parents:
diff changeset
    23
#define WSBUFFERDRAWER_H_
hgs
parents:
diff changeset
    24
hgs
parents:
diff changeset
    25
hgs
parents:
diff changeset
    26
#include <w32std.h>
hgs
parents:
diff changeset
    27
const TUid KBufferDrawerInterfaceId = {0x10285D53};
hgs
parents:
diff changeset
    28
const TUid KBufferDrawerImplId = {0x10285D54};
hgs
parents:
diff changeset
    29
hgs
parents:
diff changeset
    30
/** Client representation of a window-server-side drawing owned by this Client
hgs
parents:
diff changeset
    31
@publishedAll
hgs
parents:
diff changeset
    32
@released
hgs
parents:
diff changeset
    33
*/
hgs
parents:
diff changeset
    34
NONSHARABLE_CLASS(CWsBufferGraphic): public CWsGraphic
hgs
parents:
diff changeset
    35
	{
hgs
parents:
diff changeset
    36
public:
hgs
parents:
diff changeset
    37
	IMPORT_C static CWsBufferGraphic* NewL();
hgs
parents:
diff changeset
    38
	IMPORT_C static CWsBufferGraphic* NewL(TUid aUid);
hgs
parents:
diff changeset
    39
	IMPORT_C static CWsBufferGraphic* NewL(const TWsGraphicId& aReplace);
hgs
parents:
diff changeset
    40
	IMPORT_C ~CWsBufferGraphic();
hgs
parents:
diff changeset
    41
	IMPORT_C TInt UpdateWhiteLinePos(TInt aWhiteLinePos);
hgs
parents:
diff changeset
    42
	
hgs
parents:
diff changeset
    43
public: // protected virtuals from CWsGraphic promoted to public
hgs
parents:
diff changeset
    44
	IMPORT_C TInt ShareGlobally();
hgs
parents:
diff changeset
    45
	IMPORT_C TInt UnShareGlobally();
hgs
parents:
diff changeset
    46
	IMPORT_C TInt Share(TSecureId aClientId);
hgs
parents:
diff changeset
    47
	IMPORT_C TInt UnShare(TSecureId aClientId);
hgs
parents:
diff changeset
    48
	
hgs
parents:
diff changeset
    49
public:
hgs
parents:
diff changeset
    50
	CWsBufferGraphic();
hgs
parents:
diff changeset
    51
	void HandleMessage(const TDesC8& aData);
hgs
parents:
diff changeset
    52
	void OnReplace();
hgs
parents:
diff changeset
    53
};
hgs
parents:
diff changeset
    54
hgs
parents:
diff changeset
    55
#endif /*WSBUFFERDRAWER_H_*/