uiservicetab/vimpststorage/tsrc/vimpststorage_ut/stubs/s_vimpstutils.cpp
branchRCL_3
changeset 28 3104fc151679
parent 27 2b7283837edb
child 29 9a48e301e94b
equal deleted inserted replaced
27:2b7283837edb 28:3104fc151679
     1 /*
       
     2 * Copyright (c) 2008 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:  
       
    15 :                
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDES
       
    22 #include	"vimpstutils.h"
       
    23 #include "stringloader.h"
       
    24 #include <coemain.h>
       
    25 
       
    26 
       
    27 // CONSTANTS
       
    28 // TODO: For later use
       
    29 // general colon needed in various places
       
    30 //_LIT( KColon, ":" );
       
    31 // general slash needed in various places
       
    32 //_LIT( KSlash, "/" );
       
    33 // general slash needed in various places
       
    34 _LIT( KAt, "@" );
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // VIMPSTUtils::LoadResourceL
       
    38 // give ownership to caller
       
    39 // -----------------------------------------------------------------------------
       
    40 // 
       
    41  HBufC* VIMPSTUtils::LoadResourceL( TInt aResourceId )
       
    42 	{
       
    43 	CCoeEnv* env = CCoeEnv::Static();
       
    44 	HBufC* ret = NULL;
       
    45 	if(env)
       
    46 		{
       
    47 		ret = env->AllocReadResourceL(aResourceId);
       
    48 		return ret;
       
    49 		}
       
    50 	else
       
    51 		{
       
    52 		return ret;
       
    53 		}
       
    54 
       
    55 	}
       
    56 
       
    57 
       
    58 // End of file