alwayson_net_plugin/pdpcontextmanager2/inc/taostateconnected.h
changeset 0 5a93021fdf25
equal deleted inserted replaced
-1:000000000000 0:5a93021fdf25
       
     1 /*
       
     2 * Copyright (c) 2004,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:  TAOStateConnected class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef T_TAOSTATECONNECTED_H
       
    20 #define T_TAOSTATECONNECTED_H
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include "taostate.h"
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class MAOStateContext;
       
    27 class MAOStatePool;
       
    28 
       
    29 // CLASS DESCRIPTION
       
    30 
       
    31 /**
       
    32  *  Connected state class.
       
    33  *
       
    34  *  @lib PDPContextManager2.lib
       
    35  *  @since S60 v3.1
       
    36  */
       
    37 NONSHARABLE_CLASS( TAOStateConnected ): public TAOState
       
    38     {
       
    39 public:
       
    40     
       
    41     /**
       
    42      * Constructor.
       
    43      *
       
    44      * @since S60 v3.1
       
    45      * @param aStateContext Reference to MAOStateContext
       
    46      * @param aStatePool Reference to MAOStatePool
       
    47      */
       
    48     TAOStateConnected( MAOStateContext& aStateContext, 
       
    49                        MAOStatePool& aStatePool );
       
    50         
       
    51 protected: 
       
    52 
       
    53 // From base class TAOState
       
    54     
       
    55     /**
       
    56      * From TAOState.
       
    57      * Returns state name (ID).
       
    58      *
       
    59      * @since S60 v3.1
       
    60      */
       
    61     virtual TAOStateName StateName() const;
       
    62 
       
    63     /**
       
    64      * From TAOState.
       
    65      * Notification from PDP context disconnect is received
       
    66      * through this method.
       
    67      *
       
    68      * @since S60 v3.1
       
    69      * @param aReason: Disconnect reason
       
    70      */
       
    71     virtual TAOState* HandlePDPContextDisconnectedL( TInt aReason );
       
    72         
       
    73     /**
       
    74      * From TAOState.
       
    75      * Handles connection deleted notification.
       
    76      *
       
    77      * @since S60 v3.1
       
    78      */
       
    79     virtual TAOState* HandleConnectionDeletedL();
       
    80      
       
    81     // These are ignored in connected state
       
    82 
       
    83     /**
       
    84      * From TAOState.
       
    85      * This is ignored in connected state. Always returns NULL.
       
    86      *
       
    87      * @since S60 v3.1
       
    88      */
       
    89     virtual TAOState* HandlePDPContextActivatedL();
       
    90     
       
    91     /**
       
    92      * From TAOState.
       
    93      * 
       
    94      *
       
    95      * @since S60 v3.2
       
    96      * @param aNetworkType: New network type
       
    97      * @return New state or NULL if state is not
       
    98      *         needed to be changed.
       
    99      */
       
   100     virtual TAOState* HandleNetworkChangedL(
       
   101         MAOConnectionManager::TNetworkType aNetworkType );
       
   102     
       
   103 
       
   104     /**
       
   105      * From TAOState.
       
   106      * This is ignored in connected state. Always returns NULL.
       
   107      *
       
   108      * @since S60 v3.1
       
   109      */
       
   110     virtual TAOState* HandleSuccesfulRAUEventL();
       
   111 
       
   112     /**
       
   113      * From TAOState.
       
   114      * This is ignored in connected state. Always returns NULL.
       
   115      *
       
   116      * @since S60 v3.1
       
   117      */
       
   118     virtual TAOState* HandleRetryTimerTriggeredL();
       
   119 
       
   120     /**
       
   121      * From TAOState.
       
   122      * This is ignored in connected state. Always returns NULL.
       
   123      *
       
   124      * @since S60 v3.1
       
   125      */
       
   126     virtual TAOState* HandleConnectionTimerTriggeredL();
       
   127 
       
   128     /**
       
   129      * From TAOState.
       
   130      * This is ignored in connected state. Always returns NULL.
       
   131      *
       
   132      * @since S60 v3.1
       
   133      */
       
   134     virtual TAOState* HandlePDPContextTemporarilyBlockedL();
       
   135     
       
   136     /**
       
   137      * From TAOState.
       
   138      * This is ignored in connected state. Always returns NULL.
       
   139      *
       
   140      * @since S60 v3.1
       
   141      */
       
   142     virtual TAOState* HandleGeneralError();
       
   143 
       
   144     /**
       
   145      * From TAOState.
       
   146      * This is ignored in connected state. Always returns NULL.
       
   147      *
       
   148      * @since S60 v3.1
       
   149      */
       
   150     virtual TAOState* HandleEnableAlwaysOnL();
       
   151 
       
   152     /**
       
   153      * From TAOState.
       
   154      * This is ignored in connected state. Always returns NULL.
       
   155      *
       
   156      * @since S60 v3.1
       
   157      */
       
   158     virtual TAOState* HandleSwitchFromDisconnectedL(
       
   159             MAOConnectionManager::TFailureReason /*aReason*/ );
       
   160     };
       
   161 
       
   162 #endif // T_TAOSTATECONNECTED_H