ncdengine/provider/client/inc/ncdlocalizerutils.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2006 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:   Declaration of CNcdLocalizerUtils
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 class MNcdClientLocalizer;
       
    22 class CNcdString;
       
    23 
       
    24 /**
       
    25  * Localizer utility functions.
       
    26  */
       
    27 class CNcdLocalizerUtils : public CBase 
       
    28     {
       
    29 public:    
       
    30     /**
       
    31      * Localizes the given string by means of the given localizer object.
       
    32      * The result returned by the localizer is assigned to the given
       
    33      * descriptor pointer.
       
    34      *
       
    35      * @param aString The string to localize.
       
    36      * @param aLocalizer The localizer or NULL if not available.
       
    37      * @param aDescriptor The descriptor.
       
    38      * @return The localized string.
       
    39      */     
       
    40     static const TDesC& LocalizedString(
       
    41         const CNcdString& aString,
       
    42         MNcdClientLocalizer* aLocalizer,
       
    43         HBufC*& aDescriptor );
       
    44         
       
    45 private:
       
    46     CNcdLocalizerUtils();
       
    47     };