datasourcemodules/bluetoothgpspositioningmodule/btgpspsy/inc/Connecting/BTGPSSdpHandler.h
changeset 36 b47902b73a93
parent 0 9cfd9a3ee49c
equal deleted inserted replaced
35:a2efdd544abf 36:b47902b73a93
       
     1 /*
       
     2 * Copyright (c) 2005-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 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef BTGPSSDPHANDLER_H
       
    22 #define BTGPSSDPHANDLER_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include "btgpsdiscovery.h"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class MBTGPSConnectManagerExt;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  Connection handler that do SDP search. The RFCOMM channel id will be stored
       
    35 *  to device manager when the it is found.
       
    36 *
       
    37 */
       
    38 class CBTGPSSdpHandler: public CBase, public MBTGPSSdpResultReceiver
       
    39     {
       
    40     public: 
       
    41 
       
    42         /**
       
    43         * Two-phase construction.
       
    44 		* @param aManagerExt Reference to connect manager.
       
    45         */
       
    46         static CBTGPSSdpHandler* NewL(MBTGPSConnectManagerExt& aManagerExt);
       
    47 
       
    48         /**
       
    49         * Destructor
       
    50         */
       
    51         virtual ~CBTGPSSdpHandler();
       
    52 
       
    53     private:   
       
    54         /**
       
    55         * From MBTGPSSdpResultReceiver
       
    56         */
       
    57         virtual void ServiceAttributeSearchComplete(TInt aErr );
       
    58         
       
    59     private:
       
    60 
       
    61         /**
       
    62         * Second phase of the construction
       
    63         */
       
    64         void ConstructL();
       
    65 
       
    66         /**
       
    67         * Private constructor
       
    68         */
       
    69         CBTGPSSdpHandler(MBTGPSConnectManagerExt& aManagerExt);
       
    70         
       
    71     private:
       
    72         //Manager
       
    73         MBTGPSConnectManagerExt& iManagerExt;
       
    74         
       
    75         //BT Engine
       
    76         CBTGPSDiscovery* iBtGPSDiscovery;
       
    77 
       
    78         //Channel number server result
       
    79         TInt iChannelNumberErr;
       
    80     };
       
    81 #endif
       
    82 // End of File
       
    83