PECengine/PresenceManager2/SrcNWSessionSlot/CPEngNWSessionOpenOp.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Operation handler for opening the network session.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPENGNWSESSIONOPENOP_H
       
    19 #define CPENGNWSESSIONOPENOP_H
       
    20 
       
    21 
       
    22 //  INCLUDES
       
    23 #include <E32Base.h>
       
    24 #include "CPEngNWSessionOperation.h"
       
    25 
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class MPEngNWSessionOperationObserver2;
       
    29 class CIMPSSAPSettings;
       
    30 class CPEngNWSessionProxy;
       
    31 
       
    32 
       
    33 
       
    34 /**
       
    35  * Operation handler for opening the network session.
       
    36  *
       
    37  * @lib
       
    38  * @since 3.0
       
    39  */
       
    40 NONSHARABLE_CLASS( CPEngNWSessionOpenOp ) : public CPEngNWSessionOperation
       
    41     {
       
    42 public:  // Constructors and destructor
       
    43 
       
    44     /**
       
    45      * Two-phased constructor.
       
    46      */
       
    47     static CPEngNWSessionOpenOp* NewL( TInt aPriority,
       
    48     CPEngNWSessionProxy& aNWSessionProxy,
       
    49     CPEngNWSessionSlot2& aInterface,
       
    50     const CIMPSSAPSettings& aImpsSap,
       
    51     MPEngNWSessionOperationObserver2& aObserver );
       
    52 
       
    53     /**
       
    54      * Destructor.
       
    55      */
       
    56     virtual ~CPEngNWSessionOpenOp();
       
    57 
       
    58 
       
    59 private:
       
    60 
       
    61     /**
       
    62      * C++ default constructor.
       
    63      */
       
    64     CPEngNWSessionOpenOp( TInt aPriority,
       
    65                           CPEngNWSessionProxy& aNWSessionProxy,
       
    66                           CPEngNWSessionSlot2& aInterface,
       
    67                           MPEngNWSessionOperationObserver2& aObserver );
       
    68 
       
    69     /**
       
    70      * Symbian OS constructor.
       
    71      */
       
    72     void ConstructL( const CIMPSSAPSettings& aImpsSap );
       
    73 
       
    74 
       
    75 
       
    76 public: //New services
       
    77 
       
    78 
       
    79     /**
       
    80      *
       
    81      *
       
    82      * @since 3.0
       
    83      */
       
    84     void IssueNWSessionOpen();
       
    85 
       
    86 
       
    87 
       
    88 private: //From CActive
       
    89 
       
    90     /**
       
    91      *
       
    92      *
       
    93      * @since 3.0
       
    94      */
       
    95     void DoCancel();
       
    96 
       
    97 
       
    98 protected:  // Template methods from base
       
    99 
       
   100     void DoHandleOpCompleted( TInt aError );
       
   101 
       
   102 
       
   103 
       
   104 private: //helper
       
   105 
       
   106     void CheckNetworkAccessAllowedL();
       
   107 
       
   108 
       
   109 
       
   110 private: //Data
       
   111 
       
   112     //OWN:  The login data buffer
       
   113     HBufC8*     iLoginData;
       
   114 
       
   115     };
       
   116 
       
   117 #endif  //CPENGNWSESSIONOPENOP_H
       
   118 
       
   119 
       
   120 
       
   121