sysresmonitoring/oommonitor/src/oommonitorplugin.cpp
branchRCL_3
changeset 82 4610cd70c542
parent 63 c2c61fdca848
equal deleted inserted replaced
70:739cef680932 82:4610cd70c542
     1 /*
     1 /*
     2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    85     FUNC_LOG;
    85     FUNC_LOG;
    86 
    86 
    87     return iMemoryMonitor->iWs;
    87     return iMemoryMonitor->iWs;
    88     }
    88     }
    89 
    89 
    90 //-----------------------------------------------------------------------------
    90 
    91 // Function: AppId
       
    92 // Function returns the UID3 of the application which implements the 
       
    93 // plugin
       
    94 //-----------------------------------------------------------------------------
       
    95 //
       
    96 EXPORT_C const TUid COomMonitorPlugin::AppId() const
       
    97     {
       
    98     return KNullUid;
       
    99     }
       
   100 
    91 
   101 EXPORT_C void COomMonitorPluginV2::FreeRam()
    92 EXPORT_C void COomMonitorPluginV2::FreeRam()
   102     {
    93     {
   103     // Note that OomMonitorV2 will not call this version of the function
    94     // Note that OomMonitorV2 will not call this version of the function
   104     // so it does not need to be implemented in derived classes.
    95     // so it does not need to be implemented in derived classes.
   144             ws.SendEventToWindowGroup(wgId, event);
   135             ws.SendEventToWindowGroup(wgId, event);
   145             }
   136             }
   146         }
   137         }
   147     while (wgId>0);
   138     while (wgId>0);
   148     }
   139     }
   149 
       
   150 //-----------------------------------------------------------------------------
       
   151 // Function: AppId
       
   152 // Function returns the UID3 of the application which implements the 
       
   153 // plugin
       
   154 //-----------------------------------------------------------------------------
       
   155 //
       
   156 const TUid CAppOomMonitorPlugin::AppId() const
       
   157     {
       
   158     return iAppUid;
       
   159     }
       
   160