accessoryservices/pluggeddisplay/pluggeddisplayengine/src/myasynconeshottimer.cpp
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2  * Copyright (c) 2009 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  * CMyAsyncOneShotTimer class implementation.
       
    16  *
       
    17  */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include <e32base.h>
       
    22 #include "myasynconeshottimercallback.h"
       
    23 #include "myasynconeshottimer.h"
       
    24 #include "trace.h"
       
    25 
       
    26 // EXTERNAL DATA STRUCTURES
       
    27 
       
    28 // EXTERNAL FUNCTION PROTOTYPES
       
    29 
       
    30 // CONSTANTS
       
    31 
       
    32 // MACROS
       
    33 
       
    34 // LOCAL CONSTANTS AND MACROS
       
    35 
       
    36 // MODULE DATA STRUCTURES
       
    37 
       
    38 // LOCAL FUNCTION PROTOTYPES
       
    39 
       
    40 // FORWARD DECLARATIONS
       
    41 
       
    42 
       
    43 // ============================= LOCAL FUNCTIONS ===============================
       
    44 
       
    45 // ============================ MEMBER FUNCTIONS ===============================
       
    46 
       
    47 
       
    48 // ----------------------------------------------------------------------------
       
    49 // CMyAsyncOneShotTimer::CMyAsyncOneShotTimer
       
    50 //
       
    51 // ----------------------------------------------------------------------------
       
    52 //
       
    53 CMyAsyncOneShotTimer::CMyAsyncOneShotTimer(
       
    54         TInt aPriority,
       
    55         MMyAsyncOneShotTimerCallback& aAsyncOneShotTimerCallback ):
       
    56     CAsyncOneShot( aPriority ),
       
    57     iAsyncOneShotTimerCallback( aAsyncOneShotTimerCallback )
       
    58     {
       
    59     FUNC_LOG;
       
    60     }
       
    61 
       
    62 // ----------------------------------------------------------------------------
       
    63 // CMyAsyncOneShotTimer::~CMyAsyncOneShotTimer()
       
    64 //
       
    65 // ----------------------------------------------------------------------------
       
    66 //
       
    67 CMyAsyncOneShotTimer::~CMyAsyncOneShotTimer()
       
    68     {
       
    69     FUNC_LOG;
       
    70     Cancel();
       
    71     }
       
    72 
       
    73 // ----------------------------------------------------------------------------
       
    74 // CMyAsyncOneShotTimer::DoCancel()
       
    75 //
       
    76 // ----------------------------------------------------------------------------
       
    77 //
       
    78 void CMyAsyncOneShotTimer::DoCancel()
       
    79     {
       
    80     FUNC_LOG;
       
    81     }
       
    82 
       
    83 // ----------------------------------------------------------------------------
       
    84 // CMyAsyncOneShotTimer::RunL()
       
    85 //
       
    86 // ----------------------------------------------------------------------------
       
    87 //
       
    88 void CMyAsyncOneShotTimer::RunL()
       
    89     {
       
    90     FUNC_LOG;
       
    91     iAsyncOneShotTimerCallback.OneShotTimeout();
       
    92     }