genericservices/s60compatibilityheaders/commonengine/src/coneresloader.cpp
changeset 31 ce057bb09d0b
parent 0 e4d67989cc36
equal deleted inserted replaced
30:e20de85af2ee 31:ce057bb09d0b
       
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 
       
    18 #include <coeutils.h>
       
    19 #include <coemain.h>
       
    20 #include <ConeResLoader.h>
       
    21 
       
    22 EXPORT_C RConeResourceLoader::RConeResourceLoader(CCoeEnv& aCoeEnv)
       
    23 	{
       
    24 	// Uses Placement new. It is used to instruct the constructor of this class to run on "this" memory used as argument for the new operator
       
    25 	new (this) RCoeResourceLoader(aCoeEnv); 
       
    26 	}	
       
    27 
       
    28 EXPORT_C TInt RConeResourceLoader::Open(TFileName& aFileName)
       
    29     { return reinterpret_cast<RCoeResourceLoader*>(this)->Open(aFileName); }
       
    30 
       
    31 EXPORT_C void RConeResourceLoader::OpenL(TFileName& aFileName)
       
    32     { reinterpret_cast<RCoeResourceLoader*>(this)->OpenL(aFileName); }
       
    33 
       
    34 EXPORT_C void RConeResourceLoader::Close()
       
    35     { reinterpret_cast<RCoeResourceLoader*>(this)->Close(); }
       
    36 
       
    37 // End of File