videofeeds/livetvutils/inc/MIptvLiveUITimerObserver.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:    Live TV timer observer interface.*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __MIPTV_LIVE_UI_TIMEROBSERVER_H__
       
    21 #define __MIPTV_LIVE_UI_TIMEROBSERVER_H__
       
    22 
       
    23 // INCLUDES
       
    24 // FORWARD DECLARATIONS
       
    25 struct TTimerObject;
       
    26 
       
    27 // CLASS DECLARATION
       
    28 /**
       
    29 *  Live TV timer observer interface class. Normal timer fires (KErrNone from 
       
    30 *  timer) is notified through TimerFires. TimerError is called when
       
    31 *  error occurs in timer. Error codes come from RTimer::At():
       
    32 *  KErrCancel, the timer was cancelled; KErrAbort, the timer was aborted 
       
    33 *  because the system time changed; KErrUnderflow, the requested completion 
       
    34 *  time is in the past; KErrOverFlow, the requested completion time is too 
       
    35 *  far in the future.
       
    36 */
       
    37 class MIptvLiveUITimerObserver
       
    38     {        
       
    39     public:      // New functions
       
    40      
       
    41         /**
       
    42         * Timer fired successfully.
       
    43         */
       
    44         virtual void TimerFires() = 0;
       
    45         
       
    46         /**
       
    47         * Error occured in the timer.
       
    48         * @param aError KErrNone if timer fired ok, KErrCancel, the timer was
       
    49 		* cancelled; KErrAbort, the timer was aborted because the system time
       
    50 		* changed; KErrUnderflow, the requested completion time is in the past;
       
    51 		* KErrOverFlow, the requested completion time is too far in the future.
       
    52         */
       
    53         virtual void TimerError( const TInt aError ) = 0;
       
    54         
       
    55     };
       
    56 
       
    57 #endif       // __MIPTV_LIVE_UI_TIMEROBSERVER_H__
       
    58 
       
    59 // End of File