rtp/rtpstack/inc/rtptimer.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2004-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 "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:   
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __RTPTIMER_H
       
    22 #define __RTPTIMER_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 /**
       
    28 *  Class for time out callback.
       
    29 *
       
    30 *  @lib RtpService.dll
       
    31 */
       
    32 class MTimeOutNotify
       
    33     {
       
    34     public:
       
    35         virtual void OnExpiredL( TInt aStatus ) = 0;
       
    36     };
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 /**
       
    41 *  Timer class. 
       
    42 *
       
    43 *  @lib RtpService.dll
       
    44 */
       
    45 class CRtpTimer : public CTimer
       
    46     {
       
    47     public:
       
    48         // construct/destruct
       
    49         static CRtpTimer* NewL( const TInt aPriority,
       
    50                                 MTimeOutNotify& aNotify );
       
    51         ~CRtpTimer();
       
    52 
       
    53     protected: // From CTimer
       
    54         virtual void RunL();
       
    55 
       
    56     private:
       
    57         // construct/destruct
       
    58         CRtpTimer( const TInt aPriority, MTimeOutNotify& aNotify );
       
    59         void ConstructL();
       
    60 
       
    61     private:
       
    62         // pointers elsewhere
       
    63         MTimeOutNotify* iNotify;
       
    64     };
       
    65 
       
    66 #endif  // __RTPTIMER_H
       
    67 
       
    68 // End of File