diff -r 000000000000 -r 4e91876724a2 photosgallery/slideshow/view/src/shwviewtimer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/photosgallery/slideshow/view/src/shwviewtimer.h Thu Dec 17 08:45:44 2009 +0200 @@ -0,0 +1,102 @@ +/* +* Copyright (c) 2006-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: The pause handling control for the slideshow + * +*/ + + + + + +#ifndef SHWTICKER_H +#define SHWTICKER_H + + +#include +#include + + + +class MShwTickObserver; + +NONSHARABLE_CLASS(CShwTicker) : public CActive + { + +public: + + /** + * NewL + * 2phased constructor + * @param MShwTickObserver& + */ + static CShwTicker* NewL(MShwTickObserver& aObserver); + + /** + * StartTicking + * set the ticker + * @param interval in seconds + */ + void StartTicking(TInt aAfter); + + /** + * CancelTicking + * Cancel a tick + */ + void CancelTicking(); + + /** + * ~CShwTicker + * Standard c++ destructor + */ + ~CShwTicker(); + +private: + + /** + * CShwTicker + * C++ constructor + */ + CShwTicker(MShwTickObserver& aObserver); + + /** + * ConstructL + * 2nd Phase constructor + */ + void ConstructL(); + + /** + * RunL + * see @ref CActive + */ + void RunL(); + + /** + * DoCancel + * see @ref CActive + */ + void DoCancel(); + +private: + + /** */ + MShwTickObserver& iObserver; + + RTimer iTimer; + + + }; + +#endif//SHWTICKER_H + +