equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-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". |
425 // 4) Phone is restarted |
425 // 4) Phone is restarted |
426 if ( !iDriveStatus[aDrive].iTimer) |
426 if ( !iDriveStatus[aDrive].iTimer) |
427 { |
427 { |
428 TAfterNoteTimer* p = 0; |
428 TAfterNoteTimer* p = 0; |
429 p = new (ELeave) TAfterNoteTimer; |
429 p = new (ELeave) TAfterNoteTimer; |
|
430 CleanupStack::PushL(p); |
430 p->iOODM = this; |
431 p->iOODM = this; |
431 p->iDrive = aDrive; |
432 p->iDrive = aDrive; |
432 iDriveStatus[aDrive].iTimer = CPeriodic::NewL( EPriorityNormal ); |
433 iDriveStatus[aDrive].iTimer = CPeriodic::NewL( EPriorityNormal ); |
|
434 CleanupStack::Pop(p); |
433 iDriveStatus[aDrive].iTimer->Start( KDelayAfterNote, KDelayAfterNote, TCallBack( DoStopTimingL, p ) ); |
435 iDriveStatus[aDrive].iTimer->Start( KDelayAfterNote, KDelayAfterNote, TCallBack( DoStopTimingL, p ) ); |
434 } |
436 } |
435 } |
437 } |
436 |
438 |
437 // --------------------------------------------------------- |
439 // --------------------------------------------------------- |