29 /** |
29 /** |
30 * The controller handles events from the rest of Calendar and delegates |
30 * The controller handles events from the rest of Calendar and delegates |
31 * them to the appropriate place (i.e. the action ui classes). |
31 * them to the appropriate place (i.e. the action ui classes). |
32 */ |
32 */ |
33 class MCalenContext |
33 class MCalenContext |
34 { |
34 { |
35 public: |
35 public: |
36 QDateTime focusDateAndTime() |
36 QDateTime focusDateAndTime() |
37 { |
37 { |
38 return QDateTime(QDate(2000, 10, 10)); |
38 return mFocusedDate; |
39 } |
39 } |
40 |
40 |
41 void setFocusDate(const QDateTime& focusDateTime) |
41 void setFocusDate(const QDateTime& focusDateTime) |
42 { |
42 { |
43 Q_UNUSED(focusDateTime); |
43 mFocusedDate = focusDateTime;; |
44 } |
44 } |
45 |
45 |
46 void setFocusDateAndTime(const QDateTime& focusDateTime) |
46 void setFocusDateAndTime(const QDateTime& focusDateTime) |
47 { |
47 { |
48 Q_UNUSED(focusDateTime); |
48 mFocusedDate = focusDateTime; |
49 } |
49 } |
50 |
50 |
51 QDateTime defaultCalTimeForViewsL() |
51 QDateTime defaultCalTimeForViewsL() |
52 { |
52 { |
53 return QDateTime(QDate(2000, 10, 10)); |
53 return QDateTime(QDate(2000, 10, 10)); |
54 } |
54 } |
55 |
55 |
56 void setFocusDateAndTimeAndInstance( const QDateTime& focusDateTime, |
56 void setFocusDateAndTimeAndInstance( const QDateTime& focusDateTime, |
57 const TCalenInstanceId& aInstanceId ) |
57 const TCalenInstanceId& aInstanceId ) |
58 { |
58 { |
59 Q_UNUSED(focusDateTime); |
|
60 Q_UNUSED(aInstanceId); |
59 Q_UNUSED(aInstanceId); |
|
60 mFocusedDate = focusDateTime; |
61 } |
61 } |
62 |
62 |
63 }; |
63 private: |
|
64 QDateTime mFocusedDate; |
|
65 |
|
66 }; |
|
67 |
|
68 |
64 |
69 |
65 #endif // CALENCONTEXT_H |
70 #endif // CALENCONTEXT_H |
66 // End of file |
71 // End of file |