bearermanagement/mpm/inc/mpmdatausagewatcher.h
changeset 71 9f263f780e41
parent 44 a0c4ceac30d0
equal deleted inserted replaced
70:ac5daea24fb0 71:9f263f780e41
     1 /*
     1 /*
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    46     * Destructor.
    46     * Destructor.
    47     */
    47     */
    48     virtual ~CMpmDataUsageWatcher();
    48     virtual ~CMpmDataUsageWatcher();
    49 
    49 
    50     /**
    50     /**
    51      * Start to listen for events.
    51     * Start to listen for events.
    52      */
    52     */
    53     void StartL();
    53     void StartL();
    54     
    54 
       
    55     /**
       
    56     * Current cellular data usage.
       
    57     * See TCmCellularDataUsage
       
    58     */
       
    59     TInt CellularDataUsage() const;
       
    60 
       
    61 protected: // from CActive
       
    62 
    55     /**
    63     /**
    56     * Active object's RunL.
    64     * Active object's RunL.
    57     */
    65     */
    58     void RunL();
    66     void RunL();
    59 
    67 
    60     /**
    68     /**
       
    69     * Handles a leave occurring in RunL.
       
    70     * @param aError Leave code of RunL method.
       
    71     * @return KErrNone
       
    72     */
       
    73     TInt RunError( TInt aError );
       
    74 
       
    75     /**
    61     * Active object's DoCancel.
    76     * Active object's DoCancel.
    62     */
    77     */
    63     void DoCancel();
    78     void DoCancel();
    64     
       
    65     /**
       
    66     * Current cellular data usage.
       
    67     * See TCmCellularDataUsage
       
    68     */
       
    69     TInt CellularDataUsage() const;
       
    70 
    79 
    71 private:
    80 private:
    72 
    81 
    73     /**
    82     /**
    74     * C++ default constructor.
    83     * C++ default constructor.