alwayson_net_plugin/pdpcontextmanager2/inc/taostatedisabled.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:  Implements the TAOStateDisabled class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef T_TAOSTATEDISABLED_H
       
    20 #define T_TAOSTATEDISABLED_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 *  Disabled state class.
       
    33 *
       
    34 *  @lib PDPContextManager2.lib
       
    35 *  @since S60 v3.1
       
    36 */
       
    37 NONSHARABLE_CLASS( TAOStateDisabled ): public TAOState
       
    38     {
       
    39 public: // Constructors & destructors
       
    40     
       
    41     /**
       
    42      * Constructor.
       
    43      *
       
    44      * @since S60 v3.1
       
    45      * @param aStateContext Reference to MAOStateContext
       
    46      * @param aStatePool Reference to MAOStatePool
       
    47      */
       
    48     TAOStateDisabled( MAOStateContext& aStateContext, 
       
    49                       MAOStatePool& aStatePool );
       
    50      
       
    51 protected: // From base class TAOState
       
    52     
       
    53     /**
       
    54      * From TAOState.
       
    55      * Returns state name (ID).
       
    56      *
       
    57      * @since S60 v3.1
       
    58      */
       
    59     virtual TAOStateName StateName() const;
       
    60         
       
    61     /**
       
    62      * From TAOState.    
       
    63      * Notification from network change is receive through
       
    64      * this method.
       
    65      *
       
    66      * @since S60 v3.1
       
    67      * @param aNetworkType: New network type
       
    68      */
       
    69     virtual TAOState* HandleNetworkChangedL(
       
    70         MAOConnectionManager::TNetworkType aNetworkType );
       
    71 
       
    72 
       
    73     // These all must be ignored in disabled state.
       
    74  
       
    75     /**
       
    76      * From TAOState.
       
    77      * This is ignored in disabled state. Always returns NULL.
       
    78      *
       
    79      * @since S60 v3.1
       
    80      */
       
    81     TAOState* HandlePDPContextActivatedL();
       
    82 
       
    83     /**
       
    84      * From TAOState.
       
    85      * This is ignored in disabled state. Always returns NULL.
       
    86      *
       
    87      * @since S60 v3.1
       
    88      */
       
    89     TAOState* HandlePDPContextDisconnectedL( TInt /*aReason*/ );
       
    90 
       
    91     /**
       
    92      * From TAOState.
       
    93      * This is ignored in disabled state. Always returns NULL.
       
    94      *
       
    95      * @since S60 v3.1
       
    96      */
       
    97     TAOState* HandleSuccesfulRAUEventL();
       
    98 
       
    99     /**
       
   100      * From TAOState.
       
   101      * This is ignored in disabled state. Always returns NULL.
       
   102      *
       
   103      * @since S60 v3.1
       
   104      */
       
   105     TAOState* HandleRetryTimerTriggeredL();
       
   106 
       
   107     /**
       
   108      * From TAOState.
       
   109      * This is ignored in disabled state. Always returns NULL.
       
   110      *
       
   111      * @since S60 v3.1
       
   112      */
       
   113     TAOState* HandleConnectionTimerTriggeredL();
       
   114 
       
   115     /**
       
   116      * From TAOState.
       
   117      * This is ignored in disabled state. Always returns NULL.
       
   118      *
       
   119      * @since S60 v3.1
       
   120      */
       
   121     TAOState* HandlePDPContextTemporarilyBlockedL();
       
   122 
       
   123     /**
       
   124      * From TAOState.
       
   125      * This is ignored in disabled state. Always returns NULL.
       
   126      *
       
   127      * @since S60 v3.1
       
   128      */
       
   129     TAOState* HandleGeneralError();
       
   130 
       
   131     /**
       
   132      * From TAOState.
       
   133      * This is ignored in disabled state. Always returns NULL.
       
   134      *
       
   135      * @since S60 v3.1
       
   136      */
       
   137     TAOState* HandleEnableAlwaysOnL();
       
   138 
       
   139     /**
       
   140      * From TAOState.
       
   141      * This is ignored in disabled state. Always returns NULL.
       
   142      *
       
   143      * @since S60 v3.1
       
   144      * @param aReason ?
       
   145      */
       
   146     TAOState* HandleSwitchFromDisconnectedL(
       
   147         MAOConnectionManager::TFailureReason /*aReason*/ );
       
   148             
       
   149     /**
       
   150      * From TAOState.
       
   151      * ?
       
   152      *
       
   153      * @since S60 v3.1
       
   154      */
       
   155     TAOState* HandleExternalConnectionCreatedL();
       
   156 
       
   157     };
       
   158 
       
   159 #endif // T_TAOSTATEDISABLED_H