calendarui/caleneditor/inc/caleneditor_p.h
changeset 83 5aadd1120515
parent 75 7ac58b2aae6f
equal deleted inserted replaced
82:dcd0ca396fa1 83:5aadd1120515
    52 class CalenEditorCustomItem;
    52 class CalenEditorCustomItem;
    53 class CalenEditorReminderField;
    53 class CalenEditorReminderField;
    54 class CalenEditorRepeatField;
    54 class CalenEditorRepeatField;
    55 class CalenEditorDataHandler;
    55 class CalenEditorDataHandler;
    56 class CEnvironmentChangeNotifier;		// Receive system event notifications
    56 class CEnvironmentChangeNotifier;		// Receive system event notifications
    57 
    57 class MapTileService;
    58 // Constants
    58 // Constants
    59 const int KNoOfDaysInWeek = 7;
    59 const int KNoOfDaysInWeek = 7;
    60 
    60 
    61 class CalenEditorPrivate : public QObject
    61 class CalenEditorPrivate : public QObject
    62 {
    62 {
   115 	int currentIndexOfReminderField();
   115 	int currentIndexOfReminderField();
   116 	void setCurrentIndexOfReminderField(int index);
   116 	void setCurrentIndexOfReminderField(int index);
   117 	int getReminderCount();
   117 	int getReminderCount();
   118 	bool isEditRangeThisOnly();
   118 	bool isEditRangeThisOnly();
   119 	bool isAllDayFieldAdded();
   119 	bool isAllDayFieldAdded();
   120 	void forcedSaveEntry();
   120 	
   121 
   121 
   122 	/**
   122 	/**
   123 	 * Called from CEnvironmentChangeNotifier when the
   123 	 * Called from CEnvironmentChangeNotifier when the
   124 	 * system environment changes
   124 	 * system environment changes
   125 	 * @param aThisPtr self pointer
   125 	 * @param aThisPtr self pointer
   168 	bool handleAllDayToSave();
   168 	bool handleAllDayToSave();
   169 	void enableFromTotimeFileds(bool, QDateTime, QDateTime);
   169 	void enableFromTotimeFileds(bool, QDateTime, QDateTime);
   170 	QDateTime defaultTimeSameDay( );
   170 	QDateTime defaultTimeSameDay( );
   171 	void refreshTimeForUncheckAllDay();
   171 	void refreshTimeForUncheckAllDay();
   172 	void launchDialog(QString title);
   172 	void launchDialog(QString title);
       
   173 	void updateToMapTileService();
   173 	
   174 	
   174 private slots:
   175 private slots:
   175 	void handleSubjectChange(const QString subject);
   176 	void handleSubjectChange(const QString subject);
   176 	void handleAllDayChange(int state);
   177 	void handleAllDayChange(int state);
   177 	void saveFromDateTime(QDateTime& fromDateTime);
   178 	void saveFromDateTime(QDateTime& fromDateTime);
   193 	void handleCancel();
   194 	void handleCancel();
   194 	void handleCalendarLaunchError(int error);
   195 	void handleCalendarLaunchError(int error);
   195 	void closeEditor();
   196 	void closeEditor();
   196 	void handleLocationEditingFinished();
   197 	void handleLocationEditingFinished();
   197 	void selectEditingFinishedAction(HbAction* action);	
   198 	void selectEditingFinishedAction(HbAction* action);	
       
   199 	void forcedSaveEntry();
       
   200 	void forcedExit();
   198 	
   201 	
   199 private:
   202 private:
   200 	enum EditRange {
   203 	enum EditRange {
   201 		ThisOnly,
   204 		ThisOnly,
   202 		ThisAndAll,
   205 		ThisAndAll,
   232 
   235 
   233 	HbAction *mSoftKeyAction;
   236 	HbAction *mSoftKeyAction;
   234 	HbAction *mDescriptionAction;
   237 	HbAction *mDescriptionAction;
   235 	HbMainWindow *mMainWindow;
   238 	HbMainWindow *mMainWindow;
   236 	HbTranslator *mTranslator;
   239 	HbTranslator *mTranslator;
   237 	
   240 	MapTileService *mMaptileService;
   238 	bool mNewEntry;
   241 	bool mNewEntry;
   239 	bool mDescriptionItemAdded;
   242 	bool mDescriptionItemAdded;
   240 	bool mIsChild;
   243 	bool mIsChild;
   241 	bool mIsAllDayItemAdded;
   244 	bool mIsAllDayItemAdded;
   242 	bool mOwnsAgendaUtil;
   245 	bool mOwnsAgendaUtil;
   243 	bool mLaunchCalendar;
   246 	bool mLaunchCalendar;
   244 	bool mMenuItemAdded;
   247 	bool mMenuItemAdded;
   245 
   248 	bool mKeepExistingLocation;
       
   249 	bool mForcedExit;
   246 	// Notifications about locale and time changes
   250 	// Notifications about locale and time changes
   247 	CEnvironmentChangeNotifier* iEnvChangeNotifier;
   251 	CEnvironmentChangeNotifier* iEnvChangeNotifier;
   248 	bool iIgnoreFirstLocaleChange;
   252 	bool iIgnoreFirstLocaleChange;
   249 private:
   253 private:
   250 	friend class CalenEditor;
   254 	friend class CalenEditor;