syncmlfw/common/obex/obexclient/src/Obexsearcherbase.cpp
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Base class for obex searchers
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "ObexSearcherBase.h"
       
    22 #include "Obexsearcherobserver.h"
       
    23 
       
    24 
       
    25 
       
    26 // ============================ MEMBER FUNCTIONS ===============================
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // CObexSearcherBase::CObexSearcherBase
       
    30 // C++ default constructor can NOT contain any code, that
       
    31 // might leave.
       
    32 // -----------------------------------------------------------------------------
       
    33 //
       
    34 CObexSearcherBase::CObexSearcherBase() :
       
    35 	CActive( CActive::EPriorityStandard ),
       
    36 	iState( EIdle )
       
    37     {
       
    38     }
       
    39 
       
    40     
       
    41 // Destructor
       
    42 CObexSearcherBase::~CObexSearcherBase()
       
    43     {
       
    44     }
       
    45 
       
    46 void CObexSearcherBase::BaseConstructL()
       
    47 	{
       
    48 	CActiveScheduler::Add( this );
       
    49 	}
       
    50 
       
    51 void CObexSearcherBase::SetObserver( MObexSearcherObserver* aObserver )
       
    52 	{
       
    53 	iObserver = aObserver;
       
    54 	}
       
    55 
       
    56 void CObexSearcherBase::SetExtObserver( MExtBTSearcherObserver* aExtObserver )
       
    57 	{
       
    58 	iExtObserver = aExtObserver;
       
    59 	}
       
    60 
       
    61 void CObexSearcherBase::NotifyDeviceFoundL()
       
    62 	{
       
    63 	iObserver->HandleDeviceFoundL();
       
    64 	}
       
    65 
       
    66 void CObexSearcherBase::NotifyDeviceErrorL( TInt aErr )
       
    67 	{
       
    68 	iObserver->HandleDeviceErrorL( aErr );
       
    69 	}
       
    70 
       
    71 void CObexSearcherBase::NotifyServiceFoundL()
       
    72 	{
       
    73 	iObserver->HandleServiceFoundL();
       
    74 	}
       
    75 
       
    76 void CObexSearcherBase::NotifyServiceErrorL( TInt aErr )
       
    77 	{
       
    78 	iObserver->HandleServiceErrorL( aErr );
       
    79 	}
       
    80 
       
    81 //  End of File