1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Definition file for class CalenGridItem. |
|
15 * |
|
16 */ |
|
17 #ifndef CALENGRIDITEM_H |
|
18 #define CALENGRIDITEM_H |
|
19 |
|
20 // System includes |
|
21 #include <hbwidget.h> |
|
22 |
|
23 // Forward declarations |
|
24 class HbAbstractItem; |
|
25 class QString; |
|
26 class HbIconItem; |
|
27 class HbTextItem; |
|
28 class HbFrameItem; |
|
29 class CalenTodayIndicator; |
|
30 class QGraphicsWidget; |
|
31 |
|
32 class CalenGridItem : public HbWidget |
|
33 { |
|
34 Q_OBJECT |
|
35 |
|
36 public: |
|
37 CalenGridItem(QGraphicsWidget *parent = 0); |
|
38 virtual ~CalenGridItem(); |
|
39 |
|
40 public: |
|
41 void updateMonthDayInfo(QString monthDayText); |
|
42 void updateMonthDayInfoColor(QColor monthTextColor); |
|
43 void updateEventIndicator(QString eventIconPath); |
|
44 void updateFocusIndicator(QString focusIconPath); |
|
45 void drawUnderline(bool underlineEnabled); |
|
46 |
|
47 private: |
|
48 |
|
49 QString pluginPath(); |
|
50 void init(); |
|
51 |
|
52 private: |
|
53 HbIconItem *mEventIndicatorItem; |
|
54 HbTextItem *mMonthDayInfoItem; |
|
55 HbFrameItem *mFocusIndicatorItem; |
|
56 HbIconItem* mTodayIndicatorItem; |
|
57 }; |
|
58 |
|
59 #endif // CALENGRIDITEM_H |
|
60 |
|
61 // End of file --Don't remove this. |
|