appsupport_plat/oom_monitor_plugin_api/inc/oommonitorplugin.h
branchRCL_3
changeset 62 924385140d98
parent 58 0818dd463d41
child 63 c2c61fdca848
equal deleted inserted replaced
58:0818dd463d41 62:924385140d98
    76 	* cause a large increase in memory use, but that memory may be
    76 	* cause a large increase in memory use, but that memory may be
    77 	* used over time, otherwise the plugin may cause oscillation
    77 	* used over time, otherwise the plugin may cause oscillation
    78 	* between low and good memory states.
    78 	* between low and good memory states.
    79 	*/
    79 	*/
    80 	virtual void MemoryGood() = 0;
    80 	virtual void MemoryGood() = 0;
    81 	
       
    82     /**
       
    83     * Function: AppId
       
    84     * The function return the UID3 of the process which implements the plugin
       
    85     * By default, the Null UID [KNullUid] is returned. 
       
    86     * The plugin can override this API with their own implementation.
       
    87     * COomMonitorPlugin monitor plugins
       
    88     * @return the UID3 the application which implements the plugin
       
    89     */
       
    90 	virtual const TUid AppId() const;
       
    91 
    81 
    92 public:
    82 public:
    93     /**
    83     /**
    94     * Get a handle to the file server.
    84     * Get a handle to the file server.
    95     * @return a connected file server session.
    85     * @return a connected file server session.
   182 NONSHARABLE_CLASS(CAppOomMonitorPlugin) : public COomMonitorPlugin
   172 NONSHARABLE_CLASS(CAppOomMonitorPlugin) : public COomMonitorPlugin
   183     {
   173     {
   184 public:
   174 public:
   185     IMPORT_C static CAppOomMonitorPlugin* NewL(TUid aAppUid);
   175     IMPORT_C static CAppOomMonitorPlugin* NewL(TUid aAppUid);
   186     
   176     
   187     /**
       
   188     * Function: AppId
       
   189     * The function return the UID3 of the process which implements the plugin
       
   190     * By default, the Null UID [KNullUid] is returned. 
       
   191     * The plugin can override this API with their own implementation.
       
   192     * COomMonitorPlugin monitor plugins
       
   193     * @return the UID3 the application which implements the plugin
       
   194     */
       
   195     const TUid AppId() const;
       
   196     
       
   197 private:
   177 private:
   198 	CAppOomMonitorPlugin(TUid aAppUid);
   178 	CAppOomMonitorPlugin(TUid aAppUid);
   199 
   179 
   200 	void FreeRam();
   180 	void FreeRam();
   201 	void MemoryGood();
   181 	void MemoryGood();