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