photosgallery/imgvwr/inc/glxivwrappui.h
branchRCL_3
changeset 11 71da52165949
parent 4 57d388cc48c1
child 23 b023a8d2866a
--- a/photosgallery/imgvwr/inc/glxivwrappui.h	Fri Feb 19 22:51:01 2010 +0200
+++ b/photosgallery/imgvwr/inc/glxivwrappui.h	Fri Mar 12 15:42:44 2010 +0200
@@ -33,8 +33,6 @@
 class CGlxNavigationalState;
 class CAknGlobalNote;
 
-class CGlxBackServiceWrapper;
-
 /**
  *  CGlxIVwrAppUi
  *
@@ -76,6 +74,11 @@
     void HandleForegroundEventL( TBool aForeground );
 
 private:
+    enum TEntryType
+        {
+        EEntryTypeStartUp = 0,
+        EEntryTypeFocusGained
+        };
     /**
      * Get view scoring ids based on current navigational state
      * (using Get in the name since the function does not return anything)
@@ -98,6 +101,32 @@
     TUid ViewScoringIdForNaviStateDepth( const CMPXCollectionPath& aNaviState ) const;
 
     /**
+     * Requesting OOM to Free Some Memory, so that photos image viewer can start
+     * @return Error if Memory Cannot be freed else Error None
+     */
+    TInt OOMRequestFreeMemoryL( TInt aBytesRequested) ;
+
+    /**
+     * Finds Current Memory Availability And Decides to Send a Request for freeing the memory 
+     * @param aCriticalMemoryRequired Bare Minimum to start photos image viewer
+     * @return Error Code from OOM
+     */
+    TInt ReserveMemoryL(TInt aCriticalMemoryRequired);
+    
+    /**
+     * Finds Current Minimum Required memory to start photos image viewer
+     * @param Type of application invokation 
+     * @return Required Critical Memory
+     */
+    TInt RamRequiredInBytesL(TEntryType aType);
+    
+    /**
+     * Reserve critical memory qequired to start photos image viewer
+     * @param Type of application invokation 
+     */
+    void ReserveMemoryL(TEntryType aType);
+
+    /**
      * close photos app.
      */
     void CloseImgVwr();
@@ -113,8 +142,6 @@
 
     ///Ui utility
     CGlxUiUtility* iUiUtility;
-
-    CGlxBackServiceWrapper* iBSWrapper;
     };