17 |
17 |
18 #ifndef CALENDAYHOURSCROLLAREA_H_ |
18 #ifndef CALENDAYHOURSCROLLAREA_H_ |
19 #define CALENDAYHOURSCROLLAREA_H_ |
19 #define CALENDAYHOURSCROLLAREA_H_ |
20 |
20 |
21 // System includes |
21 // System includes |
22 #include <hbscrollarea.h> |
|
23 #include <QDateTime> |
22 #include <QDateTime> |
|
23 #include <HbScrollArea> |
24 |
24 |
25 // User includes |
25 // User includes |
26 #include "calendaycommonheaders.h" |
26 #include "calendaycommonheaders.h" |
27 |
27 |
28 //forward declarations |
28 // Forward declarations |
29 class CalenDayHourElement; |
29 class CalenDayHourElement; |
30 |
30 |
31 #ifdef CALENVIEWS_DLL |
31 #ifdef CALENVIEWS_DLL |
32 #define CALENDAYHOURSCROLLAREA_EXPORT Q_DECL_EXPORT |
32 #define CALENDAYHOURSCROLLAREA_EXPORT Q_DECL_EXPORT |
33 #else |
33 #else |
34 #define CALENDAYHOURSCROLLAREA_EXPORT Q_DECL_IMPORT |
34 #define CALENDAYHOURSCROLLAREA_EXPORT Q_DECL_IMPORT |
35 #endif |
35 #endif |
36 |
36 |
37 // Class declaration |
37 // Class declaration |
38 class CALENDAYHOURSCROLLAREA_EXPORT CalenDayHourScrollArea : public HbScrollArea |
38 class CALENDAYHOURSCROLLAREA_EXPORT CalenDayHourScrollArea : public HbScrollArea |
39 { |
39 { |
40 Q_OBJECT |
40 Q_OBJECT |
41 |
41 |
42 public: |
42 public: |
43 CalenDayHourScrollArea(QGraphicsItem *parent = 0); |
43 CalenDayHourScrollArea(QGraphicsItem *parent = 0); |
44 virtual ~CalenDayHourScrollArea(); |
44 virtual ~CalenDayHourScrollArea(); |
|
45 |
45 void setDateTime(const QDateTime &dateTime); |
46 void setDateTime(const QDateTime &dateTime); |
46 QDateTime dateTime() const; |
47 QDateTime dateTime() const; |
47 |
48 |
48 void scrollToHour(int hour); |
49 void scrollToHour(int hour); |
49 |
50 |