diff -r 12af337248b1 -r bd7edf625bdd calendarui/views/inc/calenweeklistboxitemdrawer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/calendarui/views/inc/calenweeklistboxitemdrawer.h Wed Sep 01 12:32:31 2010 +0100 @@ -0,0 +1,72 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Customized drawing of CCalenWeekLBData. + * DrawItemText() passes extended parameters to CCalenWeekLBData. + * +*/ + + + +#ifndef CALENWEEKLBITEMDRAWER_H +#define CALENWEEKLBITEMDRAWER_H + +// INCLUDES +#include + +// FORWARD DECLARATIONS +class CEikListBox; +struct SAknLayoutGfx; +class CFbsBitmap; +class TPoint; +class CCalenWeekListbox; + +// CLASS DEFINITIONS + +/** + * Customized drawing of CCalenWeekLBData. + * DrawItemText() passes extended parameter to CCalenWeekLBData + */ +NONSHARABLE_CLASS( CCalenWeekListBoxItemDrawer ) + : public CFormattedCellListBoxItemDrawer + { +public: // New function + /** + * C++ constructor. + * @param aTextListBoxModel Listbox data Listbox + * @param aFont Drawing font + * @param aFormattedCellData Data drawing class + * @param aListBox Listbox class + */ + CCalenWeekListBoxItemDrawer(MTextListBoxModel* aTextListBoxModel, + const CFont* aFont, + CFormattedCellListBoxData* aFormattedCellData); + /** + * Destructor. + */ + virtual ~CCalenWeekListBoxItemDrawer(); + +private: // from CTextListItemDrawer + /** + * From CTextListItemDrawer + * Passes a parameter to CFormattedCellListBoxData. + */ + void DrawItemText(TInt aItemIndex, const TRect& aItemTextRect, + TBool aItemIsCurrent, TBool aViewIsEmphasized, + TBool aItemIsSelected) const; + }; + +#endif // CALENWEEKLBITEMDRAWER_H + + +// End of File