equal
deleted
inserted
replaced
19 |
19 |
20 // INCLUDES |
20 // INCLUDES |
21 |
21 |
22 #include <e32base.h> |
22 #include <e32base.h> |
23 #include <e32std.h> |
23 #include <e32std.h> |
24 #include "MemoryManager.h" |
24 #include <aknglobalnote.h> |
|
25 #include <MemoryManager.h> |
25 |
26 |
26 // CONSTANTS |
27 // CONSTANTS |
27 |
28 |
28 // MACROS |
29 // MACROS |
29 |
30 |
354 TAny* DoAlloc( TUint aSize ); |
355 TAny* DoAlloc( TUint aSize ); |
355 TBool PreCheck( TUint aTotalSize, TUint aMaxBufSize, const TDesC8& aChecker ); |
356 TBool PreCheck( TUint aTotalSize, TUint aMaxBufSize, const TDesC8& aChecker ); |
356 TUint PostCheck(); |
357 TUint PostCheck(); |
357 TUint FreeMemory( TFreeMem& aFree ); |
358 TUint FreeMemory( TFreeMem& aFree ); |
358 void RestoreRescueBuffer(); |
359 void RestoreRescueBuffer(); |
|
360 void InitOOMDialog(); |
|
361 void ResetOOMDialogDisplayed(); |
359 #ifdef OOM_LOGGING |
362 #ifdef OOM_LOGGING |
360 void DumpHeapLogs(); |
363 void DumpHeapLogs(); |
361 #endif |
364 #endif |
362 private: |
365 private: |
363 void InitLocal(); |
366 void InitLocal(); |
364 |
367 |
365 RSymbianDLHeap *iAlloc; |
368 RSymbianDLHeap *iAlloc; |
|
369 // Out of memory dialog and localized resource message |
|
370 void ShowOOMDialog(); |
|
371 |
|
372 CAknGlobalNote* iOOMErrorDialog; |
|
373 HBufC *iOOMMessage; |
|
374 bool isInitted; |
|
375 bool iOOMDisplayed; |
366 }; |
376 }; |
367 |
377 |
368 #endif |
378 #endif |