email/imum/Utils/Inc/IMSSettingsNoteUi.inl
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     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:  Contains functions to show notes in UI
       
    15 *
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include <aknclearer.h>         // CAknLocalScreenClearer
       
    21 
       
    22 // ----------------------------------------------------------------------------
       
    23 // CIMSSettingsNoteUi::ShowQuery
       
    24 // ----------------------------------------------------------------------------
       
    25 //
       
    26 template<TInt TLength>
       
    27 TInt CIMSSettingsNoteUi::ShowQueryL(
       
    28     const TInt aTextResource,
       
    29     const TDesC& aAdditionalText,    
       
    30     const TInt aDialogResource,
       
    31     const TBool& aClearBackground,
       
    32     const CAknQueryDialog::TTone& aTone )
       
    33     {                                   
       
    34     // Combine text with resource
       
    35     TBuf<TLength> text;
       
    36     CIMSSettingsNoteUi::MakeStringL(
       
    37         text,
       
    38         aTextResource, 
       
    39         aAdditionalText );                    
       
    40                             
       
    41     // Create dialog and execute the dialog
       
    42     return ShowQueryL( text, aDialogResource, aClearBackground, aTone );        
       
    43     }