First public contribution.
1 // Copyright (c) 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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #include "tredrawhandler.h"
20 CTRedrawHandler::CTRedrawHandler(RWsSession& aWs) : CActive(EPriorityStandard),
25 CTRedrawHandler::~CTRedrawHandler()
30 void CTRedrawHandler::Start()
32 CActiveScheduler::Add(this);
33 iWs.RedrawReady(&iStatus);
37 void CTRedrawHandler::RunL()
39 TWsRedrawEvent redraw;
40 iWs.GetRedraw(redraw);
44 if(redraw.Rect().IsEmpty())
46 User::Leave(KErrGeneral);
48 CTWindowTreeNode* node = reinterpret_cast<CTWindowTreeNode *>(redraw.Handle());
52 iWs.RedrawReady(&iStatus);
56 void CTRedrawHandler::DoCancel()
58 iWs.RedrawReadyCancel();
61 TInt CTRedrawHandler::RunError(TInt aError)