videofeeds/livetvutils/inc/MIptvLiveUITimerObserver.h
changeset 0 96612d01cf9f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/videofeeds/livetvutils/inc/MIptvLiveUITimerObserver.h	Mon Jan 18 20:21:12 2010 +0200
@@ -0,0 +1,59 @@
+/*
+* 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 the License "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:    Live TV timer observer interface.*
+*/
+
+
+
+
+#ifndef __MIPTV_LIVE_UI_TIMEROBSERVER_H__
+#define __MIPTV_LIVE_UI_TIMEROBSERVER_H__
+
+// INCLUDES
+// FORWARD DECLARATIONS
+struct TTimerObject;
+
+// CLASS DECLARATION
+/**
+*  Live TV timer observer interface class. Normal timer fires (KErrNone from 
+*  timer) is notified through TimerFires. TimerError is called when
+*  error occurs in timer. Error codes come from RTimer::At():
+*  KErrCancel, the timer was cancelled; KErrAbort, the timer was aborted 
+*  because the system time changed; KErrUnderflow, the requested completion 
+*  time is in the past; KErrOverFlow, the requested completion time is too 
+*  far in the future.
+*/
+class MIptvLiveUITimerObserver
+    {        
+    public:      // New functions
+     
+        /**
+        * Timer fired successfully.
+        */
+        virtual void TimerFires() = 0;
+        
+        /**
+        * Error occured in the timer.
+        * @param aError KErrNone if timer fired ok, KErrCancel, the timer was
+		* cancelled; KErrAbort, the timer was aborted because the system time
+		* changed; KErrUnderflow, the requested completion time is in the past;
+		* KErrOverFlow, the requested completion time is too far in the future.
+        */
+        virtual void TimerError( const TInt aError ) = 0;
+        
+    };
+
+#endif       // __MIPTV_LIVE_UI_TIMEROBSERVER_H__
+
+// End of File