pnpmobileservices/pnpms/OnlineSupport/inc/ccmdialogmonitor.h
changeset 0 3ce708148e4d
child 54 9360ca28b668
equal deleted inserted replaced
-1:000000000000 0:3ce708148e4d
       
     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:  Header file for dialog monitor
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CCMDIALOGMONITOR_H
       
    21 #define CCMDIALOGMONITOR_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 //#include <etelmm.h>
       
    26 
       
    27 // CONSTANTS
       
    28 //None
       
    29 
       
    30 // MACROS
       
    31 // None
       
    32 
       
    33 // DATA TYPES
       
    34 // None
       
    35 
       
    36 // FUNCTION PROTOTYPES
       
    37 // None
       
    38 
       
    39 // FORWARD DECLARATIONS
       
    40 //class MCMRegisterationStatusNotifier;
       
    41 class MCMDialogStatusNotifier;
       
    42 
       
    43 // CLASS DECLARATION
       
    44 
       
    45 /**
       
    46 *  CCMDialogMonitor.
       
    47 *  Monitors the dialog status
       
    48 *
       
    49 *  @lib Confmanager.app
       
    50 *  @since 2.0
       
    51 */
       
    52 class CCMDialogMonitor : public CActive
       
    53     {
       
    54     public:  // Constructors and destructor
       
    55         /**
       
    56         * Registeration status.
       
    57         */
       
    58         enum TDialogMode
       
    59             {
       
    60             EConfirmation = 0,
       
    61             EWait,
       
    62             EError,
       
    63             EUnknown
       
    64             };
       
    65 
       
    66         void SetDialogMode(TDialogMode aMode);
       
    67         /**
       
    68         * Two-phased constructor.
       
    69         */
       
    70         static CCMDialogMonitor* NewL( MCMDialogStatusNotifier& aNotifier );
       
    71         
       
    72         /**
       
    73         * Destructor.
       
    74         */
       
    75         ~CCMDialogMonitor();
       
    76 
       
    77     public: // New functions
       
    78             
       
    79 
       
    80         /**
       
    81         * StartMonitoring.
       
    82         * @since 2.0
       
    83         * @return void
       
    84         */
       
    85         //void StartMonitoring( );
       
    86         void Start();
       
    87         
       
    88         /**
       
    89         * StopMonitoring.
       
    90         * @since 2.0
       
    91         * @return void
       
    92         */
       
    93         //void StopMonitoring( );
       
    94 
       
    95     public: // Functions from base classes
       
    96         
       
    97     protected:  // New functions
       
    98 
       
    99     protected:  // Functions from base classes
       
   100 
       
   101     private: // Functions from base classes
       
   102         
       
   103         /**
       
   104         * From CActive Handles an active object’s request completion event.
       
   105         * @since 2.0
       
   106         * @return void
       
   107         */
       
   108         void RunL();
       
   109         
       
   110         /**
       
   111         * From CActive Cancels any outstanding request.
       
   112         * @since 2.0
       
   113         * @return void
       
   114         */
       
   115         void DoCancel();
       
   116 
       
   117         /**
       
   118         * From CActive Handles a leave occurring in the request completion event handler RunL().
       
   119         */
       
   120         //TInt RunError( TInt aError );
       
   121     private:
       
   122 
       
   123         /**
       
   124         * C++ default constructor.
       
   125         */
       
   126         CCMDialogMonitor( MCMDialogStatusNotifier& aNotifier );
       
   127 
       
   128         /**
       
   129         * By default Symbian 2nd phase constructor is private.
       
   130         */
       
   131         void ConstructL();
       
   132     
       
   133     public:     // Data
       
   134 
       
   135     protected:  // Data        
       
   136 
       
   137     private:    // Data
       
   138         TDialogMode iDialogMode;
       
   139         MCMDialogStatusNotifier& iNotifier;
       
   140 
       
   141     };
       
   142 
       
   143 #endif      // CCMDIALOGMONITOR_H   
       
   144             
       
   145 // End of File