clock/clockui/clockviews/inc/clockmainview.h
changeset 26 a949c2543c15
parent 18 c198609911f9
child 49 5de72ea7a065
equal deleted inserted replaced
23:fd30d51f876b 26:a949c2543c15
    36 class ClockDocLoader;
    36 class ClockDocLoader;
    37 class ClockAppControllerIf;
    37 class ClockAppControllerIf;
    38 class AlarmClient;
    38 class AlarmClient;
    39 class TimezoneClient;
    39 class TimezoneClient;
    40 class SettingsUtility;
    40 class SettingsUtility;
    41 class SkinnableClock;
       
    42 class ClockAlarmListModel;
    41 class ClockAlarmListModel;
       
    42 class ClockWidget;
    43 
    43 
    44 class ClockMainView : public HbView
    44 class ClockMainView : public HbView
    45 {
    45 {
    46 	Q_OBJECT
    46 	Q_OBJECT
    47 
    47 
    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;
    95 	ClockAppControllerIf *mAppControllerIf;
    99 	ClockAppControllerIf *mAppControllerIf;
    96 	ClockAlarmListModel *mAlarmListModel;
   100 	ClockAlarmListModel *mAlarmListModel;
    97 
   101 
    98 	int mSelectedItem;
   102 	int mSelectedItem;
    99 	bool mHideAlarmList;
   103 	bool mHideAlarmList;
       
   104 	bool mIsLongTop;
   100 };
   105 };
   101 
   106 
   102 #endif // CLOCKMAINVIEW_H
   107 #endif // CLOCKMAINVIEW_H
   103 
   108 
   104 // End of file	--Don't remove this.
   109 // End of file	--Don't remove this.