locationmgmt/locmonitor/test/LocInfoConversionUnitTest/src/LocInfoConversionHandler.cpp
changeset 40 18280709ae43
equal deleted inserted replaced
36:b47902b73a93 40:18280709ae43
       
     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: STIF testclass declaration
       
    15 *
       
    16 */
       
    17 
       
    18 #include "LocInfoConversionHandler.h"
       
    19 
       
    20 CLocInfoConversionHanlder* CLocInfoConversionHanlder::NewL()
       
    21     {
       
    22     CLocInfoConversionHanlder* self = new ( ELeave ) CLocInfoConversionHanlder;
       
    23     CleanupStack::PushL( self );
       
    24     self->ConstructL();
       
    25     CleanupStack::Pop( self );
       
    26     return self;
       
    27     }
       
    28 
       
    29 CLocInfoConversionHanlder::CLocInfoConversionHanlder():CActive( EPriorityStandard )
       
    30     {
       
    31     CActiveScheduler::Add( this );
       
    32     }
       
    33 
       
    34 CLocInfoConversionHanlder::~CLocInfoConversionHanlder()
       
    35     {
       
    36     if( IsActive() )
       
    37         {
       
    38         Cancel();
       
    39         }
       
    40     }
       
    41 
       
    42 void CLocInfoConversionHanlder::Start()
       
    43     {
       
    44     iStatus = KRequestPending;
       
    45     SetActive();
       
    46     }
       
    47 
       
    48 void CLocInfoConversionHanlder::RunL()
       
    49     {
       
    50     CActiveScheduler::Stop();
       
    51     }
       
    52 
       
    53 
       
    54 void CLocInfoConversionHanlder::ConstructL()
       
    55     {
       
    56     // Nothign to do here
       
    57     }
       
    58 
       
    59 
       
    60 void CLocInfoConversionHanlder::DoCancel()
       
    61     {
       
    62     // Nothign to do here
       
    63     }