coreapplicationuis/Rfs/inc/rfsConnectionObserver.h
branchRCL_3
changeset 18 0818dd463d41
parent 0 2e3d3ce01487
child 19 924385140d98
equal deleted inserted replaced
17:5e7d68cc22e0 18:0818dd463d41
     1 /*
     1 /*
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    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>
       
    23 
       
    24 // P&S KEYS FROM SIP & PDP CONNECTION
       
    25 #include <e32property.h>
       
    26 #include <pdpcontextmanagerpskeys.h>
       
    27 #include <sipsystemstatemonitorpskeys.h>
       
    28 
       
    29 #include "rfsConTimer.h"
       
    30 
       
    31 class CRfsConTimer;
    22 
    32 
    23 enum TRfsConnectionCloseState
    33 enum TRfsConnectionCloseState
    24     {
    34     {
    25     ESipConnectionClose,
    35     ESipConnectionClose,
    26     EPdpConnectionClose // this should be the last enum
    36     EPdpConnectionClose // this should be the last enum
    27     };
    37     };
    28 
    38 
    29 NONSHARABLE_CLASS( CRfsConnectionObserver ): CActive
    39 NONSHARABLE_CLASS( CRfsConnectionObserver ): public CActive
    30     {      
    40     {      
    31 public:
    41 public:
    32     
    42     
    33     /**
    43     /**
    34      * Two-phased constructor
    44      * Two-phased constructor
    60      * @since S60 v3.1
    70      * @since S60 v3.1
    61      */
    71      */
    62     void ReOpenPDPConnection();
    72     void ReOpenPDPConnection();
    63     void ReportRfsFailureToSip();
    73     void ReportRfsFailureToSip();
    64     void ReportRfsCompletionToSip();
    74     void ReportRfsCompletionToSip();
       
    75      /**
       
    76       * Subscribes PDP property
       
    77       *
       
    78       * @since S60 v3.1
       
    79       */
       
    80      void Subscribe();
       
    81          
       
    82 
    65     
    83     
    66 private:
    84 protected:
    67     
    85     
    68     /**
    86     /**
    69      * From base class CActive
    87      * From base class CActive
    70      */
    88      */
    71 
    89     void DoCancel();
       
    90          
    72     /**
    91     /**
    73      * From CActive
    92      * From CActive
    74      *
    93      *
    75      * @since S60 v3.1
    94      * @since S60 v3.1
    76      */
    95      */
    77     void RunL();
    96     void RunL();
    78     
    97     
    79     /**
    98     
    80      * From CActive
       
    81      *
       
    82      * @since S60 v3.1
       
    83      */
       
    84     void DoCancel();
       
    85 
       
    86 private:
    99 private:
    87     
   100     
    88     /**
   101     /**
    89      * New methods
   102      * New methods
    90      */
   103      */
    91 
   104 
    92     /**
       
    93      * Subscribes PDP property
       
    94      *
       
    95      * @since S60 v3.1
       
    96      */
       
    97     void Subscribe();
       
    98         
   105         
    99     /**
   106     /**
   100      * Dismisses closing connections dialog
   107      * Dismisses closing connections dialog
   101      *
   108      *
   102      * @since S60 v3.1
   109      * @since S60 v3.1
   159      *  2. Meanwhile display a WAIT FOR dialog to the user which he can CANCEL at any moment
   166      *  2. Meanwhile display a WAIT FOR dialog to the user which he can CANCEL at any moment
   160      *  3. If failure occurs or if user presses the Cancel Key then cancel the RFS operation  
   167      *  3. If failure occurs or if user presses the Cancel Key then cancel the RFS operation  
   161      */
   168      */
   162     TBool iAllConnectionClosed;
   169     TBool iAllConnectionClosed;
   163     TBool iIsWaitForDialogExecuted;
   170     TBool iIsWaitForDialogExecuted;
   164     TInt  iIsPDPFeatureEnabled;
       
   165     TBool iIsSIPConnectionsPresent;
   171     TBool iIsSIPConnectionsPresent;
   166     TBool iIsDialogNeedToBeDisplayed;
   172     TBool iIsDialogNeedToBeDisplayed;
   167     TBool iIsSipInformedForClosingAllConnection;
   173     TBool iIsSipInformedForClosingAllConnection;
   168     TBool iIsPDPInformedforClosingAllConnection;
   174     TBool iIsPDPInformedforClosingAllConnection;
   169     TBool iIsClosingConnectionsApplicable;
   175     TBool iIsClosingConnectionsApplicable;
   170     
   176     
       
   177     
       
   178 public:
   171     TRfsConnectionCloseState iState;
   179     TRfsConnectionCloseState iState;
       
   180     TInt  iIsPDPFeatureEnabled;        
       
   181     CRfsConTimer* iRfsConTimer;
   172     };
   182     };
   173     
   183     
   174 #endif    //RFSPDPOBSERVER_H
   184 #endif    //RFSPDPOBSERVER_H