memoryplugin/src/glxmemoryplugin.cpp
changeset 70 a91aa46552be
equal deleted inserted replaced
67:199e6e1e0b54 70:a91aa46552be
       
     1 /*
       
     2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Implementation of OOM memory plugin. Registers Photos UID with
       
    15 *				 the framework to receive OOM notifications.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include <ecom/ecom.h>
       
    21 #include <ecom/implementationproxy.h>
       
    22 #include <oommonitorplugin.h>
       
    23 
       
    24 TAny* CreatePhotosOOMPluginL()
       
    25 	{
       
    26 	const TUid KGlxGalleryApplicationUid = { 0x20000A14 };
       
    27 	return CAppOomMonitorPlugin::NewL(KGlxGalleryApplicationUid);
       
    28 	}
       
    29 
       
    30 const TImplementationProxy ImplementationTable[] =
       
    31 	{
       
    32 	{{0x200104E3}, ::CreatePhotosOOMPluginL}
       
    33 	};
       
    34 
       
    35 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
       
    36 	{
       
    37 	aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy) ;
       
    38 	return ImplementationTable;
       
    39 	}