phoneengine/callhandling/inc/cpegprstermination.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 18 Jan 2010 20:18:27 +0200
changeset 0 5f000ab63145
child 21 92ab7f8d0eab
child 61 41a7f70b3818
permissions -rw-r--r--
Revision: 201001 Kit: 201003

/*
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  GPRS termination active object definition.
*
*/



#ifndef CPEGPRSTERMINATION_H
#define CPEGPRSTERMINATION_H

//  INCLUDES
#include    <e32base.h>

// FORWARD DECLARATIONS
class CCoUtlInterface;

// CLASS DECLARATION

/**
* Active object for terminating GPRS connections.
* @since 4.0
*/
class CPEGprsTermination 
    : public CActive
    {
    public: // Constructors and destructor.

        /**
        * Constructor.
        */
        CPEGprsTermination();

        /**
        * Destructor.
        */
        ~CPEGprsTermination();

    public: // New functions
        
        /**
        * Starts termination.
        */
        void StartL();

        /**
        * Checks if it is terminating connections 
        * (or just preparing for that).
        * @return ETrue if terminating.
        */
        TBool IsTerminating() const;

    private: // Functions from base classes

        /**
        * @see CActive::RunL.
        */
        void RunL();

        /**
        * @see CActive::DoCancel.
        */
        void DoCancel();

    private:

        // Owned GPRS termination instance.
        CCoUtlInterface* iInterface;

    };

#endif      // CPEGPRSTERMINATION_H   
            
// End of File