diff -r 1eef62f5c541 -r 2a5d4ab426d3 phoneplugins/csplugin/src/csptimer.cpp --- a/phoneplugins/csplugin/src/csptimer.cpp Mon Aug 23 15:42:12 2010 +0300 +++ b/phoneplugins/csplugin/src/csptimer.cpp Fri Sep 03 13:33:36 2010 +0300 @@ -1,19 +1,19 @@ /* -* Copyright (c) 2006 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: Timer service -* -*/ + * Copyright (c) 2006 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: Timer service + * + */ #include "csptimer.h" #include "mcsptimerobserver.h" @@ -26,7 +26,7 @@ CSPTimer* CSPTimer::NewL() { CSPTimer* self = CSPTimer::NewLC(); - CleanupStack::Pop( self ); + CleanupStack::Pop(self); return self; } @@ -36,8 +36,8 @@ // CSPTimer* CSPTimer::NewLC() { - CSPTimer* self = new( ELeave ) CSPTimer; - CleanupStack::PushL( self ); + CSPTimer* self = new (ELeave) CSPTimer; + CleanupStack::PushL(self); self->ConstructL(); return self; } @@ -48,18 +48,17 @@ // CSPTimer::~CSPTimer() { - Cancel(); + Cancel(); } // --------------------------------------------------------------------------- // Starts notify request // --------------------------------------------------------------------------- // -void CSPTimer::NotifyAfter( TInt aTimeout, - MCSPTimerObserver& aTimerObserver ) +void CSPTimer::NotifyAfter(TInt aTimeout, MCSPTimerObserver& aTimerObserver) { - __ASSERT_ALWAYS( !IsNotifyOngoing(), Panic( ECSPPanicTimerAlreadyActive ) ); - After( aTimeout ); + __ASSERT_ALWAYS(!IsNotifyOngoing(), Panic(ECSPPanicTimerAlreadyActive)); + After(aTimeout); iObserver = &aTimerObserver; } @@ -88,20 +87,20 @@ // void CSPTimer::RunL() { - if( iObserver ) + if (iObserver) { iObserver->TimerEvent(); } } - + // --------------------------------------------------------------------------- // Constructor // --------------------------------------------------------------------------- // -CSPTimer::CSPTimer() : - CTimer( CActive::EPriorityStandard ) +CSPTimer::CSPTimer() : + CTimer(CActive::EPriorityStandard) { - CActiveScheduler::Add( this ); + CActiveScheduler::Add(this); } // ---------------------------------------------------------------------------