diff -r 000000000000 -r b497e44ab2fc syncmlfw/syncmlnotifier/inc/SyncMLQueryTimer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/syncmlfw/syncmlnotifier/inc/SyncMLQueryTimer.h Thu Dec 17 09:07:52 2009 +0200 @@ -0,0 +1,96 @@ +/* +* Copyright (c) 2005 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: Message query with timeout. +* +*/ + + + +#ifndef CSYNCMLQUERYTIMER_H +#define CSYNCMLQUERYTIMER_H + +// INCLUDES +#include + +// CLASS DECLARATION + +/** +* Timer observer class for SyncML notifier queries. +* +* @lib SyncMLNotifier +* @since Series 60 3.0 +*/ +NONSHARABLE_CLASS ( MSyncMLQueryTimerObserver ) + { + public: // New functions + /** + * Is called when the timer expires. + * @since Series 60 3.0 + * @param None + * @return None + */ + virtual void TimerExpired() = 0; + }; + +/** +* Timer class for SyncML notifier queries. +* +* @lib SyncMLNotifier +* @since Series 60 3.0 +*/ +NONSHARABLE_CLASS ( CSyncMLQueryTimer ) : public CTimer + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CSyncMLQueryTimer* NewL( MSyncMLQueryTimerObserver* aObserver ); + + /** + * Destructor. + */ + virtual ~CSyncMLQueryTimer(); + + public: // Functions from base classes + + /** + * From CActive Is called when an event is received. + * @since Series 60 3.0 + * @param None + * @return None + */ + void RunL(); + + private: + + /** + * C++ default constructor. + */ + CSyncMLQueryTimer( MSyncMLQueryTimerObserver* aObserver ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + private: // Data + // Pointer to the timer observer instance. + MSyncMLQueryTimerObserver* iObserver; + + }; + +#endif // CSYNCMLQUERYTIMER_H + +// End of File