uiservicetab/vimpstutils/inc/vimpstutils.h
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:  Utils for IMUiServiceTab modules.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __VIMPSTUTILS_H__
       
    20 #define __VIMPSTUTILS_H__
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32def.h>
       
    24 #include <e32cmn.h>
       
    25 
       
    26 /**
       
    27  *  Utils for IMUiServiceTab modules. 
       
    28  *  @lib vimpstengine.lib
       
    29  *  @since 5.0
       
    30  */
       
    31 class VIMPSTUtils   
       
    32 	{
       
    33 	public: // new methods
       
    34  
       
    35         /**
       
    36          * Used for removing the domain part from the user id
       
    37          * @param aId The id to process
       
    38          * @param aListHiding, is list hiding.
       
    39          * @return TPtrC The id without the domain part
       
    40          */
       
    41         IMPORT_C static TPtrC DisplayId( const TDesC& aId, TBool aListHiding = EFalse );        
       
    42         
       
    43         /**
       
    44          * used to load the resource
       
    45          * @param aResourceId The id to read
       
    46          * @return  HBufC* The string for given resource id 
       
    47          */
       
    48         IMPORT_C static HBufC* LoadResourceL( TInt aResourceId );      
       
    49         
       
    50         /**
       
    51          * used to load the resource
       
    52          * @param aResourceId The id to read
       
    53          * @param aPrompt %U string.
       
    54          * @return  HBufC* The string for given resource id 
       
    55          */
       
    56         IMPORT_C static HBufC* LoadResourceL( TInt aResourceId , const TDesC& aPrompt);
       
    57         
       
    58         /**
       
    59          * Combines two strings given resource ids.
       
    60          * The caller is responsible to delete the string
       
    61          *
       
    62          * @since 5.0
       
    63          * @param TInt aResourceId1
       
    64          * @param TInt aResourceId2
       
    65          * @return HBufC* the combined string
       
    66          */
       
    67         IMPORT_C static HBufC* CombineStringFromResourceLC( TInt aResourceId1, TInt aResourceId2 ); 
       
    68   
       
    69 	};
       
    70 
       
    71 #endif      // __VIMPSTUTILS_H__
       
    72 
       
    73 // End of File