alwayson_net_plugin/pdpcontextmanager2/inc/caogpds.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:  GPDS interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CAOGPDS_H
       
    20 #define C_CAOGPDS_H
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include <e32base.h>
       
    24 
       
    25 #include "maogpds.h"
       
    26 #include "alwaysonconfig.hrh"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CPeriodic;
       
    30 class CActiveSchedulerWait;
       
    31 
       
    32 class RMmCustomAPI;
       
    33 
       
    34 /**
       
    35 *  GPDS interface. Through GPDS interface can be set
       
    36 *  Always-On mode for TSY.
       
    37 *
       
    38 *  @lib PDPContextManager2.lib
       
    39 *  @since S60 v3.1
       
    40 */
       
    41 NONSHARABLE_CLASS( CAOGpds ):
       
    42     public CActive,
       
    43     public MAOGpds
       
    44     {
       
    45 public:    // Constructors & destructors
       
    46 
       
    47     
       
    48     /**
       
    49      * Two-phased constructor.
       
    50      *
       
    51      * @since S60 v3.1
       
    52      * @param aCustomAPI: RMCustomApi sends notification to
       
    53      *      Always On server from RAU (Routing Area Update)
       
    54      *      Always On server sends notification to TSY via RMCustomApi.  
       
    55      * @return a pointer to the created instance of CAOGpds.
       
    56      */
       
    57     static CAOGpds* NewL( RMmCustomAPI& aCustomAPI );
       
    58 
       
    59 
       
    60     /**
       
    61      * Destructor
       
    62      *
       
    63      * @since S60 v3.1
       
    64      */
       
    65     virtual ~CAOGpds();
       
    66     
       
    67 private: // Constructors
       
    68     
       
    69     /**
       
    70      * Constructor.
       
    71      *
       
    72      * @since S60 v3.1
       
    73      * @param aCustomAPI: RMCustomApi sends notification to
       
    74      *      Always On server from RAU (Routing Area Update)
       
    75      *      Always On server sends notification to TSY via RMCustomApi.  
       
    76      */
       
    77     CAOGpds( RMmCustomAPI& aCustomAPI );
       
    78 
       
    79 
       
    80     /**
       
    81      * Default Symbian second phase constructor
       
    82      *
       
    83      * @since S60 v3.1
       
    84      */
       
    85     void ConstructL();
       
    86     
       
    87 private: // From base class CActive
       
    88 
       
    89     /**
       
    90      * From CActive
       
    91      * Process the completed request.
       
    92      *
       
    93      * @since S60 v3.1
       
    94      */
       
    95     void RunL();
       
    96     
       
    97     /**
       
    98      * From CActive
       
    99      * Cancel outstanding request
       
   100      *
       
   101      * @since S60 v3.1
       
   102      */
       
   103     void DoCancel();
       
   104     
       
   105 private: // From base class MAOGpds
       
   106 
       
   107     /**
       
   108      * From MAOGdps
       
   109      * Sets always on mode.
       
   110      *
       
   111      * @since S60 v3.1
       
   112      * @param aMode: Current always on mode
       
   113      */
       
   114     void SetAlwaysOnModeL( TAlwaysOnMode aMode );
       
   115 
       
   116 private: // Data
       
   117 
       
   118     /**
       
   119      * Active scheduler wait
       
   120      * Own
       
   121      */
       
   122     CActiveSchedulerWait* iWait;
       
   123     
       
   124 
       
   125     /**
       
   126      * Reference to RMCustomAPI
       
   127      */
       
   128     RMmCustomAPI& iCustomAPI;
       
   129     
       
   130     };
       
   131 
       
   132 #endif // C_CAOGPDS_H