equal
deleted
inserted
replaced
28 #include <txtrich.h> |
28 #include <txtrich.h> |
29 #include <hlplch.h> |
29 #include <hlplch.h> |
30 #include <calcalendarinfo.h> |
30 #include <calcalendarinfo.h> |
31 #include <Calendar.rsg> |
31 #include <Calendar.rsg> |
32 #include <calencommonui.rsg> |
32 #include <calencommonui.rsg> |
|
33 #include <sysutil.h> |
|
34 #include <ErrorUI.h> |
33 |
35 |
34 #include "calenmultidbeditor.h" |
36 #include "calenmultidbeditor.h" |
35 #include "calendarui_debug.h" |
37 #include "calendarui_debug.h" |
36 #include "calendar.hrh" |
38 #include "calendar.hrh" |
37 #include "calentitlepane.h" |
39 #include "calentitlepane.h" |
663 // --------------------------------------------------------------------------- |
665 // --------------------------------------------------------------------------- |
664 // |
666 // |
665 TBool CCalenMultiDBEditor::SaveNoteL( TInt aButtonId ) |
667 TBool CCalenMultiDBEditor::SaveNoteL( TInt aButtonId ) |
666 { |
668 { |
667 TRACE_ENTRY_POINT; |
669 TRACE_ENTRY_POINT; |
|
670 |
|
671 if( CheckSpaceBelowCriticalLevelL() ) |
|
672 { |
|
673 TRACE_EXIT_POINT; |
|
674 return EFalse; |
|
675 } |
668 |
676 |
669 if (Conflict() == CCalenMultiDBEditor::EConflictDelete) |
677 if (Conflict() == CCalenMultiDBEditor::EConflictDelete) |
670 { |
678 { |
671 CAknNoteDialog *note = new (ELeave) CAknNoteDialog( |
679 CAknNoteDialog *note = new (ELeave) CAknNoteDialog( |
672 CAknNoteDialog::EWarningTone, CAknNoteDialog::ENoTimeout); |
680 CAknNoteDialog::EWarningTone, CAknNoteDialog::ENoTimeout); |
1200 syncFieldText->SetTextL( syncString ); |
1208 syncFieldText->SetTextL( syncString ); |
1201 syncFieldText->DrawDeferred(); |
1209 syncFieldText->DrawDeferred(); |
1202 CleanupStack::PopAndDestroy( syncString ); |
1210 CleanupStack::PopAndDestroy( syncString ); |
1203 TRACE_EXIT_POINT; |
1211 TRACE_EXIT_POINT; |
1204 } |
1212 } |
|
1213 |
|
1214 // ----------------------------------------------------------------------------- |
|
1215 // CheckSpaceBelowCriticalLevelL |
|
1216 // Checks if the Flash File System storage will fall below critical level. |
|
1217 // If there is not enough space, display an error message and return EFalse. |
|
1218 // Return ETrue otherwise. |
|
1219 // (other items were commented in a header). |
|
1220 // ----------------------------------------------------------------------------- |
|
1221 // |
|
1222 TBool CCalenMultiDBEditor::CheckSpaceBelowCriticalLevelL() |
|
1223 { |
|
1224 TRACE_ENTRY_POINT; |
|
1225 |
|
1226 TBool retcode(EFalse); |
|
1227 if ( SysUtil::FFSSpaceBelowCriticalLevelL( &( iCoeEnv->FsSession() ) ) ) |
|
1228 { |
|
1229 CErrorUI* errorUi = CErrorUI::NewLC(); |
|
1230 errorUi->ShowGlobalErrorNoteL( KErrDiskFull ); |
|
1231 CleanupStack::PopAndDestroy( errorUi ); |
|
1232 retcode = ETrue; |
|
1233 } |
|
1234 TRACE_EXIT_POINT; |
|
1235 return retcode; |
|
1236 } |
|
1237 |
|
1238 |
1205 // ----------------------------------------------------------------------------- |
1239 // ----------------------------------------------------------------------------- |
1206 // CDbColorPicture::CDbColorPicture |
1240 // CDbColorPicture::CDbColorPicture |
1207 // C++ Constructor |
1241 // C++ Constructor |
1208 // ----------------------------------------------------------------------------- |
1242 // ----------------------------------------------------------------------------- |
1209 // |
1243 // |