coreapplicationuis/Rfs/inc/rfsConnectionObserver.h
branchRCL_3
changeset 19 924385140d98
parent 18 0818dd463d41
child 20 c2c61fdca848
equal deleted inserted replaced
18:0818dd463d41 19:924385140d98
    17 
    17 
    18 
    18 
    19 #ifndef __RFSPDPOBSERVER_H
    19 #ifndef __RFSPDPOBSERVER_H
    20 #define __RFSPDPOBSERVER_H
    20 #define __RFSPDPOBSERVER_H
    21 
    21 
    22 #include <AknWaitDialog.h>
    22 #include <hbdeviceprogressdialogsymbian.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
    39 NONSHARABLE_CLASS( CRfsConnectionObserver ): public CActive,public MHbDeviceProgressDialogObserver
    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 
    52         
    57         
    53 public:
    58 public:
    54     /**
    59     /**
    55      * New methods
    60      * New methods
    56      */
    61      */
   133 private: 
   138 private: 
   134 
   139 
   135     /**
   140     /**
   136      * Own: Wait dialog
   141      * Own: Wait dialog
   137      */
   142      */
   138     CAknWaitDialog* iWaitDialog;
   143      CHbDeviceProgressDialogSymbian* iDialog ;
   139     
   144        /**
   140     /**
       
   141      * Own: PDP property
   145      * Own: PDP property
   142      */
   146      */
   143     RProperty iPDPProperty;
   147     RProperty iPDPProperty;
   144     
   148     
   145     /**
   149     /**
   171     TBool iIsSIPConnectionsPresent;
   175     TBool iIsSIPConnectionsPresent;
   172     TBool iIsDialogNeedToBeDisplayed;
   176     TBool iIsDialogNeedToBeDisplayed;
   173     TBool iIsSipInformedForClosingAllConnection;
   177     TBool iIsSipInformedForClosingAllConnection;
   174     TBool iIsPDPInformedforClosingAllConnection;
   178     TBool iIsPDPInformedforClosingAllConnection;
   175     TBool iIsClosingConnectionsApplicable;
   179     TBool iIsClosingConnectionsApplicable;
       
   180     //for synchronous dialog handling
       
   181     CActiveSchedulerWait *iWait;
   176     
   182     
   177     
   183     
   178 public:
   184 public:
   179     TRfsConnectionCloseState iState;
   185     TRfsConnectionCloseState iState;
   180     TInt  iIsPDPFeatureEnabled;        
   186     TInt  iIsPDPFeatureEnabled;