diff -r 33a5d2bbf6fc -r 73a1feb507fb mmsharing/livecommsui/lcui/tsrc/dummymusengineplugin/inc/svptimer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmsharing/livecommsui/lcui/tsrc/dummymusengineplugin/inc/svptimer.h Tue Aug 31 15:12:07 2010 +0300 @@ -0,0 +1,112 @@ +/* +* Copyright (c) 2007 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 services for SVP +* +*/ + + + +#ifndef SVPTIMER_H +#define SVPTIMER_H + +#include + +class MSVPTimerObserver; + +/** + * SVP timer + * + * Provides timer service for SVP + * + * @lib + * @since S60 3.2 + */ +class CSVPTimer : public CTimer + { + +public: + + /** + * Two-phased constructor. + */ + static CSVPTimer* NewL( MSVPTimerObserver& aObserver, + TInt aTimerId ); + + /** + * Destructor. + */ + virtual ~CSVPTimer(); + +public: // new methods + + /** + * Sets the timer to be fired after given number of milliseconds. + * @since Series 60 3.2 + * @param aMilliSeconds Time in milliseconds + * @return + */ + void SetTime( TInt aMilliSeconds ); + + /** + * Stops the timer. + * @since Series 60 3.2 + * @return + */ + void Stop(); + + /** + * Returns the Timer ID + * @since Series 60 3.2 + * @return TInt The timer ID. + */ + TInt Id() const; + +public: // methods from base classes + + /** + * From CActive Called when an aychronic request is completed. + * @since Series 60 3.0 + * @param None + * @return None + */ + void RunL(); + +private: + + /** + * C++ default constructor. + */ + CSVPTimer( MSVPTimerObserver& aObserver, TInt aTimerId ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + +private: // data + + /** + * Reference to the observer. + */ + MSVPTimerObserver& iObserver; + + /** + * The timer ID, given to observer when the timer fires. + * Timers can be identifies with this ID. + */ + TInt iId; + + }; + +#endif // SVPTIMER_H \ No newline at end of file