PECengine/PresenceManager2/SrcNWSessionSlot/CPEngNWSessionProxy.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: this class handles the network session operation
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPENGNWSESSIONPROXY_H
       
    19 #define CPENGNWSESSIONPROXY_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include "RPEngManagerClient.h"
       
    23 #include "RPEngSessionHolder.h"
       
    24 #include <E32Base.h>
       
    25 
       
    26 
       
    27 
       
    28 //FORWARD DECLARATIONS
       
    29 class CPEngNWSessionSlotID2Imp;
       
    30 class CPEngNWSessionSlotID2;
       
    31 class TPEngWVCspServicesTree2;
       
    32 
       
    33 
       
    34 
       
    35 /**
       
    36  *
       
    37  *
       
    38  * @since 3.0
       
    39  */
       
    40 NONSHARABLE_CLASS( CPEngNWSessionProxy ) : public CBase
       
    41     {
       
    42 
       
    43     //-----------------------------------------------------------------------
       
    44 public: /* Construction */
       
    45 
       
    46     /**
       
    47      * Instantiates CPEngNWSessionProxy object.
       
    48      *
       
    49      * @return New CPEngNWSessionProxy instance.
       
    50      */
       
    51     static CPEngNWSessionProxy* NewL( const CPEngNWSessionSlotID2& aNWSessionSlotID );
       
    52 
       
    53 
       
    54     /**
       
    55      * Destructor.
       
    56      * Virtual by CBase.
       
    57      */
       
    58     ~CPEngNWSessionProxy();
       
    59 
       
    60 
       
    61 protected:  // Constructor
       
    62 
       
    63     /**
       
    64      * C++ default constructor.
       
    65      */
       
    66     CPEngNWSessionProxy();
       
    67 
       
    68     /**
       
    69      * Symbian OS constructor.
       
    70      */
       
    71     void ConstructL( const CPEngNWSessionSlotID2& aNWSessionSlotID );
       
    72 
       
    73 
       
    74     /**
       
    75      *
       
    76      */
       
    77     TInt InitializeConnection();
       
    78 
       
    79 
       
    80 public:
       
    81 
       
    82     void Close();
       
    83 
       
    84 
       
    85 public:
       
    86 
       
    87     TInt OpenSession( const TDesC8& aLogInData, TRequestStatus& aStatus );
       
    88     void CancelOpenSession();
       
    89 
       
    90     TInt CloseSession( TRequestStatus& aStatus );
       
    91     void CancelCloseSession();
       
    92 
       
    93     TInt ForceCloseSession( TRequestStatus& aStatus );
       
    94     void CancelForceCloseSession();
       
    95 
       
    96     TInt OpenOwnership();
       
    97 
       
    98     TInt StoreOwnership( const TDesC16& aOwnerID );
       
    99     TInt RestoreOwnership( const TDesC16& aOwnerID );
       
   100 
       
   101     TInt GetServiceTree( TPEngWVCspServicesTree2& aCspTree );
       
   102     TInt GetLoginData( HBufC8*& aLogInData );
       
   103 
       
   104 
       
   105 
       
   106 
       
   107 private: //Data
       
   108 
       
   109     RPEngManagerClient  iMainClient;
       
   110     RPEngSessionHolder  iSessionClient;
       
   111 
       
   112     CPEngNWSessionSlotID2Imp* iNWSessionSlotID;
       
   113 
       
   114     TBool   iInitialized;
       
   115 
       
   116     };
       
   117 
       
   118 #endif      //CPENGNWSESSIONPROXY_H
       
   119 
       
   120 
       
   121