1756 // rest of the details are commented in the header |
1756 // rest of the details are commented in the header |
1757 // --------------------------------------------------------- |
1757 // --------------------------------------------------------- |
1758 // |
1758 // |
1759 void CClkDateTimeView::HandleTimeCmdL() |
1759 void CClkDateTimeView::HandleTimeCmdL() |
1760 { |
1760 { |
1761 if( iExtension->GetActiveProtocol() ) |
1761 |
1762 { |
|
1763 |
|
1764 // User pressed Yes. We disable Automatic time update here. |
|
1765 iDateTimeInfo.iNITZ = EFalse; |
|
1766 iSrvModel->DeActivateAllProtocols(); |
|
1767 iExtension->SetActiveProtocol( EFalse ); |
|
1768 ShowAutomaticTimeUpdateOffNoteL(); |
|
1769 } |
|
1770 |
|
1771 // User to be notified whether DST rollover happens in a day or has happen within a day if he tries to change the time. |
1762 // User to be notified whether DST rollover happens in a day or has happen within a day if he tries to change the time. |
1772 TBool dstStatus = CheckForDSTChangesL(); |
1763 TBool dstStatus = CheckForDSTChangesL(); |
1773 |
1764 |
1774 if( !dstStatus ) |
1765 if( !dstStatus ) |
1775 { |
1766 { |
1776 TTime newTime( iDateTimeInfo.iTime ); |
1767 TTime newTime( iDateTimeInfo.iTime ); |
1777 |
1768 |
1778 CAknTimeSettingPage* dlg = new ( ELeave ) CAknTimeSettingPage( R_DATE_TIME_TIME_PAGE, newTime ); |
1769 CAknTimeSettingPage* dlg = new ( ELeave ) CAknTimeSettingPage( R_DATE_TIME_TIME_PAGE, newTime ); |
1779 if( dlg->ExecuteLD( CAknSettingPage::EUpdateWhenAccepted ) ) |
1770 if( dlg->ExecuteLD( CAknSettingPage::EUpdateWhenAccepted ) ) |
1780 { |
1771 { |
|
1772 |
|
1773 if( iExtension->GetActiveProtocol() ) |
|
1774 { |
|
1775 // User pressed Yes. We disable Automatic time update here. |
|
1776 iDateTimeInfo.iNITZ = EFalse; |
|
1777 iSrvModel->DeActivateAllProtocols(); |
|
1778 iExtension->SetActiveProtocol( EFalse ); |
|
1779 ShowAutomaticTimeUpdateOffNoteL(); |
|
1780 } |
1781 TTime current; |
1781 TTime current; |
1782 current.HomeTime(); |
1782 current.HomeTime(); |
1783 TDateTime cTime( current.DateTime() ); |
1783 TDateTime cTime( current.DateTime() ); |
1784 TDateTime atime( newTime.DateTime() ); |
1784 TDateTime atime( newTime.DateTime() ); |
1785 |
1785 |