50 CLOCKVIEWS_EXPORT virtual ~ClockMainView(); |
50 CLOCKVIEWS_EXPORT virtual ~ClockMainView(); |
51 |
51 |
52 public: |
52 public: |
53 CLOCKVIEWS_EXPORT void setupView( |
53 CLOCKVIEWS_EXPORT void setupView( |
54 ClockAppControllerIf &controllerIf, ClockDocLoader *docLoader); |
54 ClockAppControllerIf &controllerIf, ClockDocLoader *docLoader); |
55 |
55 CLOCKVIEWS_EXPORT void setupAfterViewReady(); |
56 public slots: |
|
57 void handleAlarmStatusChanged(int row); |
|
58 |
56 |
59 private slots: |
57 private slots: |
|
58 void handleAlarmStatusChanged(int row); |
60 void refreshMainView(); |
59 void refreshMainView(); |
61 void displayWorldClockView(); |
60 void displayWorldClockView(); |
62 void addNewAlarm(); |
61 void addNewAlarm(); |
63 void openSettings(); |
62 void openSettings(); |
64 void handleActivated(const QModelIndex &index); |
63 void handleActivated(const QModelIndex &index); |
65 void handleLongPress(HbAbstractViewItem *item, const QPointF &coords); |
64 void handleLongPress(HbAbstractViewItem *item, const QPointF &coords); |
66 void deleteAlarm(); |
65 void deleteAlarm(); |
67 void updateDateLabel(); |
66 void updateView(); |
68 void updatePlaceLabel(); |
67 void updatePlaceLabel(int autoTimeUpdate = -1); |
69 void updateClockWidget(); |
|
70 void handleAlarmListDisplay(); |
68 void handleAlarmListDisplay(); |
71 void checkOrientationAndLoadSection(Qt::Orientation orientation); |
69 void checkOrientationAndLoadSection(Qt::Orientation orientation); |
|
70 void selectedMenuAction(HbAction *action); |
|
71 void handleMenuClosed(); |
72 |
72 |
73 private: |
73 private: |
74 void setmodel(); |
74 void setmodel(); |
75 void hideAlarmList(bool show); |
75 void hideAlarmList(bool show); |
|
76 void removeSnoozedAlarm(); |
|
77 void updateDateLabel(); |
|
78 void updateClockWidget(); |
76 |
79 |
77 private: |
80 private: |
78 QTimer *mTickTimer; |
81 QTimer *mTickTimer; |
79 |
82 |
80 HbAction *mRefreshMainView; |
83 HbAction *mRefreshMainView; |
81 HbAction *mDisplayWorldClockView; |
84 HbAction *mDisplayWorldClockView; |
82 HbAction *mAddNewAlarm; |
85 HbAction *mAddNewAlarm; |
83 HbAction *mSettingsAction; |
86 HbAction *mSettingsAction; |
|
87 HbAction *mDeleteAction; |
84 |
88 |
85 HbLabel *mDayLabel; |
89 HbLabel *mDayLabel; |
86 HbLabel *mPlaceLabel; |
90 HbLabel *mPlaceLabel; |
87 SkinnableClock *mClockWidget; |
91 ClockWidget *mClockWidget; |
88 HbLabel *mNoAlarmLabel; |
92 HbLabel *mNoAlarmLabel; |
89 HbListView *mAlarmList; |
93 HbListView *mAlarmList; |
90 |
94 |
91 TimezoneClient *mTimezoneClient; |
95 TimezoneClient *mTimezoneClient; |
92 AlarmClient *mAlarmClient; |
96 AlarmClient *mAlarmClient; |