commsconfig/cscapplicationui/inc/cscnoteutilities.h
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     1 /*
       
     2 * Copyright (c) 2007-2007 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:  CSC Application note utilities
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CSCNOTEUTILITIES_H
       
    20 #define C_CSCNOTEUTILITIES_H
       
    21 
       
    22 /**
       
    23  *  CCSCNoteUtilities class
       
    24  *  Used to show CSC Application notes.
       
    25  *
       
    26  *  @lib
       
    27  *  @since S60 v3.2
       
    28  */
       
    29 NONSHARABLE_CLASS( CCSCNoteUtilities ) : public CBase
       
    30     {
       
    31     public: 
       
    32     
       
    33         /** Enumeration for different note types */
       
    34         enum TCSCNoteType
       
    35             {
       
    36             // Information notes..
       
    37             ECSCUnableToConfigureNote,
       
    38             ECSCUnableToDeleteNote,
       
    39             // Query dialogs..
       
    40             ECSCConfigureServiceQuery,
       
    41             ECSCDeleteServiceQuery
       
    42             };
       
    43         
       
    44             
       
    45         /**
       
    46          * Shows a confirmation note without query. 
       
    47          *
       
    48          * @since S60 v3.2
       
    49          * @param aType for note to be shown
       
    50          * @param aText for additional text information
       
    51          */ 
       
    52         static void ShowConfirmationNote( 
       
    53             TCSCNoteType aType, 
       
    54             const TDesC& aText = KNullDesC() );
       
    55         
       
    56         
       
    57         /**
       
    58          * Shows an information note without query. 
       
    59          *
       
    60          * @since S60 v3.2
       
    61          * @param aType for note to be shown
       
    62          * @param aText for additional text information
       
    63          * @param aArray for additional text information
       
    64          */ 
       
    65         static void ShowInformationNoteL( 
       
    66             TCSCNoteType aType, 
       
    67             const TDesC& aText = KNullDesC(), 
       
    68             const MDesCArray* aArray = NULL );
       
    69         
       
    70         
       
    71         /**
       
    72          * Shows an error note without query.
       
    73          *
       
    74          * @since S60 v3.2
       
    75          * @param aType for note to be shown
       
    76          * @param aText for additional text information
       
    77          */ 
       
    78         static void ShowErrorNote( 
       
    79             TCSCNoteType aType, 
       
    80             const TDesC& aText = KNullDesC() );
       
    81         
       
    82         
       
    83         /**
       
    84          * Shows a note with query.
       
    85          *
       
    86          * @since S60 v3.2
       
    87          * @param aType for note to be shown
       
    88          * @param aText for additional text information
       
    89          * @return ETrue if accepted
       
    90          */ 
       
    91         static TBool ShowCommonQueryL( 
       
    92             TCSCNoteType aType, 
       
    93             const TDesC& aText = KNullDesC() );
       
    94     
       
    95     };
       
    96 
       
    97 #endif // C_CSCNOTEUTILITIES_H