commsconfig/cscapplicationui/inc/cscdialog.h
changeset 0 a4daefaec16c
equal deleted inserted replaced
-1:000000000000 0:a4daefaec16c
       
     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īs Dialog
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CSCDIALOG_H
       
    20 #define C_CSCDIALOG_H
       
    21 
       
    22 class CAknGlobalNote;
       
    23     
       
    24 /**
       
    25  *  CCSCDialog class
       
    26  *  Used to show CSC Application glogal dialogs.
       
    27  *
       
    28  *  @lib
       
    29  *  @since S60 v3.2
       
    30  */
       
    31 NONSHARABLE_CLASS( CCSCDialog ) : public CActive
       
    32     {
       
    33     public:
       
    34     
       
    35         /**
       
    36          * Two-phased constructor.
       
    37          */
       
    38         static CCSCDialog* NewL();
       
    39 
       
    40 
       
    41         /**
       
    42          * Two-phased constructor.
       
    43          */
       
    44         static CCSCDialog* NewLC();
       
    45         
       
    46         
       
    47         /**
       
    48          * Destructor.
       
    49          */
       
    50         virtual ~CCSCDialog();
       
    51     
       
    52 
       
    53         /**
       
    54          * Launches a wait note.
       
    55          *
       
    56          * @since S60 v3.2
       
    57          */
       
    58         void LaunchWaitNoteL( 
       
    59             const TInt aResourceId );
       
    60         
       
    61         
       
    62         /**
       
    63          * Destroys a wait note.
       
    64          *
       
    65          * @since S60 v3.2
       
    66          */
       
    67         void DestroyWaitNote();
       
    68         
       
    69         
       
    70     protected:      
       
    71 
       
    72         // from base class CActive
       
    73     
       
    74         /**
       
    75          * @see CActive.
       
    76          */
       
    77         void RunL();
       
    78 
       
    79 
       
    80         /**
       
    81          * @see CActive.
       
    82          */
       
    83         void DoCancel();
       
    84         
       
    85     private:
       
    86 
       
    87         CCSCDialog();
       
    88 
       
    89         void ConstructL();
       
    90         
       
    91     private: // Data  
       
    92 
       
    93         /**
       
    94          * A global wait note.
       
    95          * Own.
       
    96          */
       
    97         CAknGlobalNote* iWaitNote;
       
    98         
       
    99        /*
       
   100         * Global note Id
       
   101         */
       
   102        TInt iNoteId;
       
   103         
       
   104 #ifdef _DEBUG
       
   105     friend class UT_CSC;
       
   106 #endif
       
   107      };
       
   108 
       
   109 #endif // C_CSCDIALOG_H