multimediacommscontroller/mmccfilesourcesink/src/mcceoftimer.cpp
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2003 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 // INCLUDES FILES
       
    22 #include "mccfilesourcelogs.h"
       
    23 #include "mcceoftimer.h"
       
    24 
       
    25 // ================= MEMBER FUNCTIONS =======================
       
    26 
       
    27 // ---------------------------------------------------------------------------
       
    28 // CMccEofTimer::NewL
       
    29 // ---------------------------------------------------------------------------
       
    30 //
       
    31 CMccEofTimer* CMccEofTimer::NewL(MMccEofTimerObserver* aOwner)
       
    32     {
       
    33     CMccEofTimer* self = new(ELeave) CMccEofTimer(aOwner);
       
    34     CleanupStack::PushL(self);
       
    35     self->ConstructL();
       
    36     CleanupStack::Pop(self);
       
    37     return self;
       
    38     }
       
    39 
       
    40 // ---------------------------------------------------------------------------
       
    41 // CMccEofTimer::CMccEofTimer
       
    42 // ---------------------------------------------------------------------------
       
    43 //
       
    44 CMccEofTimer::CMccEofTimer(MMccEofTimerObserver* aOwner)
       
    45 : CTimer( CActive::EPriorityStandard),
       
    46   iOwner( aOwner )
       
    47     {
       
    48     CActiveScheduler::Add(this);
       
    49     }
       
    50         
       
    51 // ---------------------------------------------------------------------------
       
    52 // CMccEofTimer::~CMccEofTimer
       
    53 // ---------------------------------------------------------------------------
       
    54 //
       
    55 CMccEofTimer::~CMccEofTimer()
       
    56     {
       
    57     }
       
    58         
       
    59 // ---------------------------------------------------------------------------
       
    60 // CMccEofTimer::RunL
       
    61 // ---------------------------------------------------------------------------
       
    62 //
       
    63 void CMccEofTimer::RunL()
       
    64     {
       
    65     TRAPD(err, iOwner->EofTimerExpiredL() );
       
    66     if ( err )
       
    67         {
       
    68         __FILESOURCE_CONTROLL_INT1("CMccEofTimer::RunL, EofTimerExpiredL left with ", err )
       
    69         }
       
    70     }