clock/clockui/clockviews/inc/clockmainview.h
branchGCC_SURGE
changeset 54 e6894b852bc6
parent 50 579cc610882e
child 58 ef813d54df51
equal deleted inserted replaced
40:4b686cfad39d 54:e6894b852bc6
    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 	CLOCKVIEWS_EXPORT void setupAfterViewReady();
    55 	CLOCKVIEWS_EXPORT void setupAfterViewReady();
       
    56 	CLOCKVIEWS_EXPORT void captureScreenShot(bool captureScreenShot = false);
    56 
    57 
    57 private slots:
    58 private slots:
    58 	void handleAlarmStatusChanged(int row);
    59 	void handleAlarmStatusChanged(int row);
    59 	void refreshMainView();
    60 	void refreshMainView();
    60 	void displayWorldClockView();
    61 	void displayWorldClockView();
    67 	void updatePlaceLabel(int autoTimeUpdate = -1);
    68 	void updatePlaceLabel(int autoTimeUpdate = -1);
    68 	void handleAlarmListDisplay();
    69 	void handleAlarmListDisplay();
    69 	void checkOrientationAndLoadSection(Qt::Orientation orientation);
    70 	void checkOrientationAndLoadSection(Qt::Orientation orientation);
    70 	void selectedMenuAction(HbAction *action);
    71 	void selectedMenuAction(HbAction *action);
    71 	void handleMenuClosed();
    72 	void handleMenuClosed();
       
    73     void saveActivity();
    72 
    74 
    73 private:
    75 private:
    74 	void setmodel();
    76 	void setmodel();
    75 	void hideAlarmList(bool show);
    77 	void hideAlarmList(bool show);
    76 	void removeSnoozedAlarm();
    78 	void removeSnoozedAlarm();
    86 	HbAction *mSettingsAction;
    88 	HbAction *mSettingsAction;
    87 	HbAction *mDeleteAction;
    89 	HbAction *mDeleteAction;
    88 
    90 
    89 	HbLabel *mDayLabel;
    91 	HbLabel *mDayLabel;
    90 	HbLabel *mPlaceLabel;
    92 	HbLabel *mPlaceLabel;
       
    93 	HbLabel *mHorizontalDivider;
       
    94 	HbLabel *mVerticalDivider;
    91 	ClockWidget *mClockWidget;
    95 	ClockWidget *mClockWidget;
    92 	HbLabel *mNoAlarmLabel;
    96 	HbLabel *mNoAlarmLabel;
    93 	HbListView *mAlarmList;
    97 	HbListView *mAlarmList;
    94 
    98 
    95 	TimezoneClient *mTimezoneClient;
    99 	TimezoneClient *mTimezoneClient;
    97 	SettingsUtility *mSettingsUtility;
   101 	SettingsUtility *mSettingsUtility;
    98 	ClockDocLoader *mDocLoader;
   102 	ClockDocLoader *mDocLoader;
    99 	ClockAppControllerIf *mAppControllerIf;
   103 	ClockAppControllerIf *mAppControllerIf;
   100 	ClockAlarmListModel *mAlarmListModel;
   104 	ClockAlarmListModel *mAlarmListModel;
   101 
   105 
   102 	int mSelectedItem;
   106 	int            mSelectedItem;
   103 	bool mHideAlarmList;
   107 	bool           mHideAlarmList;
   104 	bool mIsLongTop;
   108 	bool           mIsLongTop;
       
   109 	bool           mIsScreenShotCapruted; // check if the screenshot captured is valid
       
   110 	QVariantHash   mScreenShot; // screenshot
   105 };
   111 };
   106 
   112 
   107 #endif // CLOCKMAINVIEW_H
   113 #endif // CLOCKMAINVIEW_H
   108 
   114 
   109 // End of file	--Don't remove this.
   115 // End of file	--Don't remove this.