phoneclientserver/phoneclient/Inc/UssdWrapper/CPhCltUssdNoteController.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2009-2010 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:  Encapsulates an active object used in controlling notes.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPHCLTUSSDNOTECONTROLLER_H
       
    20 #define CPHCLTUSSDNOTECONTROLLER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <hbdeviceprogressdialogsymbian.h>
       
    25 #include "mphcltussdnotecontrollercallback.h" 
       
    26 #include "cphcltussdcommonconstant.h"
       
    27 
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *   Encapsulates an active object used in controlling notes.
       
    33 *
       
    34 *  @lib phoneclient.lib
       
    35 */
       
    36 NONSHARABLE_CLASS( CPhCltUssdNoteController ) : public CBase,
       
    37                                                 public MHbDeviceProgressDialogObserver
       
    38     {
       
    39     public:  // Constructor and destructor
       
    40 
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         * 
       
    44         * @param aCallBack a callback to be notified events from note controller.
       
    45         * @param aPriority active object priority.
       
    46         * @return Pointer to created CPhCltUssdImp instance.
       
    47         */
       
    48         static CPhCltUssdNoteController* NewL( 
       
    49                 MPhCltUssdNoteControllerCallBack& aCallBack );
       
    50 
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         ~CPhCltUssdNoteController();
       
    55 
       
    56     public:
       
    57 
       
    58         /**
       
    59         * Shows global Information note.
       
    60         */
       
    61         void ShowGlobalInformationNoteL( const TPhCltUssdInformationType aInfoType );
       
    62 
       
    63         /**
       
    64         * Shows global wait note.
       
    65         */
       
    66         void ShowGlobalWaitNoteL();
       
    67 
       
    68         /**
       
    69         * Destroys global wait note.
       
    70         */
       
    71         void DestroyGlobalWaitNote();
       
    72 
       
    73         /**
       
    74         * From base class MHbDeviceProgressDialogObserver
       
    75         */
       
    76         void ProgressDialogCancelled(
       
    77             const CHbDeviceProgressDialogSymbian* aProgressDialog);
       
    78 
       
    79         /**
       
    80         * From base class MHbDeviceProgressDialogObserver
       
    81         */
       
    82         void ProgressDialogClosed(
       
    83             const CHbDeviceProgressDialogSymbian* aProgressDialog);
       
    84 
       
    85     private:
       
    86 
       
    87         /**
       
    88         * C++ constructor.
       
    89         */
       
    90         CPhCltUssdNoteController( 
       
    91             MPhCltUssdNoteControllerCallBack& aCallBack );
       
    92 
       
    93         /**
       
    94         * Symbian 2nd phase constructor.
       
    95         */
       
    96         void ConstructL();
       
    97 
       
    98         /**
       
    99         * LoadDefaultString.
       
   100         */
       
   101         HBufC* LoadDefaultStringL( const TDesC& aText );
       
   102 
       
   103     private:    // Data
       
   104 
       
   105         /**
       
   106         * Own,Global wait note.
       
   107         */
       
   108         CHbDeviceProgressDialogSymbian* iGlobalWaitNote;
       
   109 
       
   110         /**
       
   111         * Not own,callback to be notified when wait note is dismissed.
       
   112         */
       
   113         MPhCltUssdNoteControllerCallBack& iCallBack;
       
   114 
       
   115         /**
       
   116         * Check Load Success .ts file successfully or not
       
   117         */
       
   118         TBool iIsResolverSuccess;
       
   119 
       
   120         /**
       
   121         * Own, resouce of global note.
       
   122         */
       
   123         HBufC* iGlobalResource;
       
   124     };
       
   125 
       
   126 #endif // CPHCLTUSSDNOTECONTROLLER_H
       
   127 
       
   128 // End of File