coreapplicationuis/Rfs/inc/rfsConnectionObserver.h
branchRCL_3
changeset 63 c2c61fdca848
parent 62 924385140d98
child 82 4610cd70c542
equal deleted inserted replaced
62:924385140d98 63:c2c61fdca848
    17 
    17 
    18 
    18 
    19 #ifndef __RFSPDPOBSERVER_H
    19 #ifndef __RFSPDPOBSERVER_H
    20 #define __RFSPDPOBSERVER_H
    20 #define __RFSPDPOBSERVER_H
    21 
    21 
    22 #include <hbdeviceprogressdialogsymbian.h>
    22 #include <AknWaitDialog.h>
    23 
    23 
    24 // P&S KEYS FROM SIP & PDP CONNECTION
    24 // P&S KEYS FROM SIP & PDP CONNECTION
    25 #include <e32property.h>
    25 #include <e32property.h>
    26 #include <pdpcontextmanagerpskeys.h>
    26 #include <pdpcontextmanagerpskeys.h>
    27 #include <sipsystemstatemonitorpskeys.h>
    27 #include <sipsystemstatemonitorpskeys.h>
    28 
    28 
    29 #include "rfscontimer.h"
    29 #include "rfsConTimer.h"
    30 
    30 
    31 class CRfsConTimer;
    31 class CRfsConTimer;
    32 
    32 
    33 enum TRfsConnectionCloseState
    33 enum TRfsConnectionCloseState
    34     {
    34     {
    35     ESipConnectionClose,
    35     ESipConnectionClose,
    36     EPdpConnectionClose // this should be the last enum
    36     EPdpConnectionClose // this should be the last enum
    37     };
    37     };
    38 
    38 
    39 NONSHARABLE_CLASS( CRfsConnectionObserver ): public CActive,public MHbDeviceProgressDialogObserver
    39 NONSHARABLE_CLASS( CRfsConnectionObserver ): public CActive
    40     {      
    40     {      
    41 public:
    41 public:
    42     
    42     
    43     /**
    43     /**
    44      * Two-phased constructor
    44      * Two-phased constructor
    47 
    47 
    48     /**
    48     /**
    49      * Destructor
    49      * Destructor
    50      */
    50      */
    51     virtual ~CRfsConnectionObserver();
    51     virtual ~CRfsConnectionObserver();
    52     
       
    53     void ProgressDialogCancelled(const CHbDeviceProgressDialogSymbian* iDialog);
       
    54                     
       
    55     void ProgressDialogClosed(const CHbDeviceProgressDialogSymbian *  iDialog) ;
       
    56 
       
    57         
    52         
    58 public:
    53 public:
    59     /**
    54     /**
    60      * New methods
    55      * New methods
    61      */
    56      */
   138 private: 
   133 private: 
   139 
   134 
   140     /**
   135     /**
   141      * Own: Wait dialog
   136      * Own: Wait dialog
   142      */
   137      */
   143      CHbDeviceProgressDialogSymbian* iDialog ;
   138     CAknWaitDialog* iWaitDialog;
   144        /**
   139     
       
   140     /**
   145      * Own: PDP property
   141      * Own: PDP property
   146      */
   142      */
   147     RProperty iPDPProperty;
   143     RProperty iPDPProperty;
   148     
   144     
   149     /**
   145     /**
   175     TBool iIsSIPConnectionsPresent;
   171     TBool iIsSIPConnectionsPresent;
   176     TBool iIsDialogNeedToBeDisplayed;
   172     TBool iIsDialogNeedToBeDisplayed;
   177     TBool iIsSipInformedForClosingAllConnection;
   173     TBool iIsSipInformedForClosingAllConnection;
   178     TBool iIsPDPInformedforClosingAllConnection;
   174     TBool iIsPDPInformedforClosingAllConnection;
   179     TBool iIsClosingConnectionsApplicable;
   175     TBool iIsClosingConnectionsApplicable;
   180     //for synchronous dialog handling
       
   181     CActiveSchedulerWait *iWait;
       
   182     
   176     
   183     
   177     
   184 public:
   178 public:
   185     TRfsConnectionCloseState iState;
   179     TRfsConnectionCloseState iState;
   186     TInt  iIsPDPFeatureEnabled;        
   180     TInt  iIsPDPFeatureEnabled;