diff -r 5aadd1120515 -r b57382753122 calendarui/multicaluidialog/inc/caldblistboxitemdrawer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/calendarui/multicaluidialog/inc/caldblistboxitemdrawer.h Wed Nov 03 17:12:22 2010 +0530 @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2009 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 : implementation class for multiple calendars list dialog. + */ + +#ifndef caldblistboxitemdrawer_H_ +#define caldblistboxitemdrawer_H_ + +//System include +#include +#include +#include +#include +#include + +//Forward declarations. +class CEikColumnListBox; +class TAknsItemID; +class CAknIconArray; +class CAknDoubleGraphicStyleListBox; +class CAknsBasicBackgroundControlContext; +class CAknNavigationControlContainer; +class CCalenDbListbox; +class CGulIcon; +class CCalEntry; +class CMultiCalUiDialogModel; + +enum TCalenListDbIcons + { + ECalenListDbIconUnMarked, // done To-do icon + ECalenListDbIconMarked, // Undone To-do icon + }; + + +NONSHARABLE_CLASS( CCalenDbListboxItemDrawer ) : public CFormattedCellListBoxItemDrawer + { + public: + /** + * constructor + */ + CCalenDbListboxItemDrawer( MTextListBoxModel* aTextListBoxModel, + const CFont* aFont, + CFormattedCellListBoxData* aFormattedCellData, + CEikListBox* aListBox , + const RArray& aColorUidArray); + + /** + * destructor + */ + ~CCalenDbListboxItemDrawer(); + + private: + /** + *Draws the item + */ + void DrawItem(TInt aItemIndex, + TPoint aItemRectPos, + TBool aItemIsSelected, + TBool aItemIsCurrent, + TBool aViewIsEmphasized, + TBool aViewIsDimmed) const; + + private: + CEikListBox* iListBox; //Not owns + const RArray& iColorUidArray; //Not owns + CGulIcon* iIcon; + }; + + +#endif //CMultiCalUiDialogImpl_H_