bluetoothengine/btserviceutil/export/devdiscoveryobserver.h
branchRCL_3
changeset 56 9386f31cc85b
parent 55 613943a21004
child 61 269724087bed
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
     1 /*
       
     2 * Copyright (c) 2010 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 #ifndef DEVDISCOVEREYOBSERVER_H
       
    19 #define DEVDISCOVEREYOBSERVER_H
       
    20 
       
    21 #include <btdevice.h>
       
    22 #include <bt_sock.h>
       
    23 
       
    24 /**
       
    25  *  Class MDevDiscoveryObserver
       
    26  *
       
    27  *  Callback class to notify the completion of device discovery. 
       
    28  */
       
    29 class MDevDiscoveryObserver
       
    30     {
       
    31 public:
       
    32     
       
    33     /**
       
    34      * Callback to notify that a device has been found.
       
    35      *
       
    36      * @param aAddr the inquiry address that contains the inquiry information
       
    37      *  of the found device.
       
    38      * @param aName the Bluetooth device name of the found device
       
    39      */
       
    40     virtual void HandleNextDiscoveryResultL( 
       
    41             const TInquirySockAddr& aAddr, const TDesC& aName ) = 0;
       
    42     
       
    43     /**
       
    44      * Callback to notify that the device search has completed.
       
    45      *
       
    46      * @param aErr the error code of device search result.
       
    47      */
       
    48     virtual void HandleDiscoveryCompleted( TInt aErr ) = 0;
       
    49     };
       
    50 
       
    51 #endif
       
    52 
       
    53 // End of File