phonebookui/Phonebook2/UIControls/src/CPbk2FindDelay.cpp
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002-2007 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:  Phonebook2 find delay
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "CPbk2FindDelay.h"
       
    21 #include "MPbk2FindDelayObserver.h"
       
    22 
       
    23 
       
    24 // ================= MEMBER FUNCTIONS =======================
       
    25 // --------------------------------------------------------------------------
       
    26 // CPbk2FindDelay::CPbk2FindDelay
       
    27 // --------------------------------------------------------------------------
       
    28 //
       
    29 inline CPbk2FindDelay::CPbk2FindDelay(
       
    30         MPbk2FindDelayObserver& aObserver ) :
       
    31     CTimer( CActive::EPriorityStandard ),
       
    32     iObserver( aObserver )
       
    33     {
       
    34     }
       
    35 
       
    36 // --------------------------------------------------------------------------
       
    37 // CPbk2FindDelay::~CPbk2FindDelay
       
    38 // --------------------------------------------------------------------------
       
    39 //
       
    40 CPbk2FindDelay::~CPbk2FindDelay()
       
    41     {
       
    42     Cancel();
       
    43     }
       
    44 
       
    45 // --------------------------------------------------------------------------
       
    46 // CPbk2FindDelay::NewL
       
    47 // --------------------------------------------------------------------------
       
    48 //
       
    49 CPbk2FindDelay* CPbk2FindDelay::NewL(
       
    50         MPbk2FindDelayObserver& aObserver )
       
    51     {
       
    52     CPbk2FindDelay* self = new (ELeave) CPbk2FindDelay( aObserver );
       
    53     CleanupStack::PushL( self );
       
    54     self->ConstructL();
       
    55     CleanupStack::Pop( self );
       
    56     return self;
       
    57     }
       
    58 
       
    59 // --------------------------------------------------------------------------
       
    60 // CPbk2FindDelay::ConstructL
       
    61 // --------------------------------------------------------------------------
       
    62 //
       
    63 inline void CPbk2FindDelay::ConstructL()
       
    64     {
       
    65     CActiveScheduler::Add( this );
       
    66     CTimer::ConstructL();
       
    67     }
       
    68 
       
    69 // --------------------------------------------------------------------------
       
    70 // CPbk2FindDelay::RunL
       
    71 // --------------------------------------------------------------------------
       
    72 //                
       
    73 void CPbk2FindDelay::RunL()
       
    74     {
       
    75     iObserver.FindDelayComplete();
       
    76     }
       
    77     
       
    78 //  End of File