bearermanagement/mpm/src/mpmdatausagewatcher.cpp
changeset 71 9f263f780e41
parent 44 a0c4ceac30d0
child 72 0c32cf868819
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".
   133     RequestNotifications();
   133     RequestNotifications();
   134     }
   134     }
   135 
   135 
   136 // ---------------------------------------------------------------------------
   136 // ---------------------------------------------------------------------------
   137 // From class CActive.
   137 // From class CActive.
       
   138 // Handles any leave from RunL.
       
   139 // ---------------------------------------------------------------------------
       
   140 //
       
   141 TInt CMpmDataUsageWatcher::RunError( TInt aError )
       
   142     {
       
   143     MPMLOGSTRING2( "CMpmDataUsageWatcher::RunError, ERROR: %d", aError );
       
   144     aError = aError;
       
   145     iErrorCounter++;
       
   146     if ( !IsActive() )
       
   147         {
       
   148         RequestNotifications();
       
   149         }
       
   150     return KErrNone;
       
   151     }
       
   152 
       
   153 // ---------------------------------------------------------------------------
       
   154 // From class CActive.
   138 // Cancel outstanding request.
   155 // Cancel outstanding request.
   139 // ---------------------------------------------------------------------------
   156 // ---------------------------------------------------------------------------
   140 //
   157 //
   141 void CMpmDataUsageWatcher::DoCancel()
   158 void CMpmDataUsageWatcher::DoCancel()
   142     {
   159     {