00001 /* 00002 * ============================================================================ 00003 * Name : oommonitorclient.h 00004 * Part of : appexts / oommonitor 00005 * Description : Client interface for OOM Monitor. 00006 * Version : %version: % << Don't touch! Updated by Synergy at check-out. 00007 * 00008 * Copyright © 2009 Nokia. All rights reserved. 00009 * This material, including documentation and any related computer 00010 * programs, is protected by copyright controlled by Nokia. All 00011 * rights are reserved. Copying, including reproducing, storing, 00012 * adapting or translating, any or all of this material requires the 00013 * prior written consent of Nokia. This material also contains 00014 * confidential information which may not be disclosed to others 00015 * without the prior written consent of Nokia. 00016 * ============================================================================ 00017 * Template version: 4.2 00018 */ 00019 00020 #ifndef R_OOMMONITORCLIENT_H 00021 #define R_OOMMONITORCLIENT_H 00022 00023 #include <e32std.h> 00024 00028 const TInt KOomMaxAllocationWithoutPermission = 1048576; 00029 00080 class ROomMonitorSession : public RSessionBase 00081 { 00082 public: 00083 00085 enum TOomPriority 00086 { 00090 EOomPriorityNormal = 0, 00091 00095 EOomPriorityHigh, 00096 00100 EOomPriorityBusy 00101 }; 00102 00103 public: 00110 IMPORT_C TInt Connect(); 00111 00122 IMPORT_C TInt RequestFreeMemory(TInt aBytesRequested); 00123 00135 IMPORT_C void RequestFreeMemory(TInt aBytesRequested, TRequestStatus& aStatus); 00136 00140 IMPORT_C void CancelRequestFreeMemory(); 00141 00146 IMPORT_C void SetOomPriority(TOomPriority aPriority); 00147 00148 }; 00149 00150 #endif // R_OOMMONITORCLIENT_H