connectionmonitoring/connmon/connectionmonitor/inc/ConnMonBearerGPRS.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 26 Jan 2010 12:12:48 +0200
changeset 3 f7816ffc66ed
parent 0 5a93021fdf25
permissions -rw-r--r--
Revision: 201001 Kit: 201004

/*
* Copyright (c) 2006-2009 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:  Declaration for bearer GPRS.
*
*/

#ifndef CONNMONBEARERGPRS_H
#define CONNMONBEARERGPRS_H

#include "ConnMonBearer.h"

/**
 * TConnMonBearerGPRS
 * Class declaration for GPRS bearer
 */
class TConnMonBearerGPRS : public TConnMonBearer
    {
public:
    /**
     * Constructor.
     * @param aConnMonIAP Link to IAP services
     */
    TConnMonBearerGPRS( CConnMonIAP* aConnMonIAP, CConnMonCommsDatCache* aCommsDatCache );

    // From TConnMonBearer

    /**
     * Is the bearer available
     * @param aAvailable ETrue if bearer is available
     * @return errorcode
     */
    TInt GetAvailability( TBool& aAvailable ) const;

    /**
     * Bearer ID getter
     *
     * @return bearer ID
     */
    TUint BearerId() const;

    /**
     * Invariant - validates bearer
     *
     * @return ETrue if bearer is valid (internal state is correct)
     */
    TBool Valid() const;

    /**
     * Sets available IAPs of this type as available in CommsDat cache
     */
    void FlagAvailableIaps() const;
    
private:
    /**
     * Reads KCurrentCellularDataUsage -key from Repository KCRUidCmManager
     */
    TInt CurrentCellularDataUsage() const;    
    };

#endif // CONNMONBEARERGPRS_H

// End-of-file