phoneengine/callhandling/inc/cpegprstermination.h
changeset 0 5f000ab63145
child 21 92ab7f8d0eab
child 61 41a7f70b3818
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2007 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:  GPRS termination active object definition.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CPEGPRSTERMINATION_H
       
    21 #define CPEGPRSTERMINATION_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include    <e32base.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CCoUtlInterface;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 * Active object for terminating GPRS connections.
       
    33 * @since 4.0
       
    34 */
       
    35 class CPEGprsTermination 
       
    36     : public CActive
       
    37     {
       
    38     public: // Constructors and destructor.
       
    39 
       
    40         /**
       
    41         * Constructor.
       
    42         */
       
    43         CPEGprsTermination();
       
    44 
       
    45         /**
       
    46         * Destructor.
       
    47         */
       
    48         ~CPEGprsTermination();
       
    49 
       
    50     public: // New functions
       
    51         
       
    52         /**
       
    53         * Starts termination.
       
    54         */
       
    55         void StartL();
       
    56 
       
    57         /**
       
    58         * Checks if it is terminating connections 
       
    59         * (or just preparing for that).
       
    60         * @return ETrue if terminating.
       
    61         */
       
    62         TBool IsTerminating() const;
       
    63 
       
    64     private: // Functions from base classes
       
    65 
       
    66         /**
       
    67         * @see CActive::RunL.
       
    68         */
       
    69         void RunL();
       
    70 
       
    71         /**
       
    72         * @see CActive::DoCancel.
       
    73         */
       
    74         void DoCancel();
       
    75 
       
    76     private:
       
    77 
       
    78         // Owned GPRS termination instance.
       
    79         CCoUtlInterface* iInterface;
       
    80 
       
    81     };
       
    82 
       
    83 #endif      // CPEGPRSTERMINATION_H   
       
    84             
       
    85 // End of File