datasourcemodules/bluetoothgpspositioningmodule/btgpspsy/inc/Connecting/BTGPSInitHandler.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 BTGPSINITHANDLER_H
       
    22 #define BTGPSINITHANDLER_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h> 
       
    26 #include "BTGPSDeviceListener.h"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class MBTGPSConnectManagerExt;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  Connection handler to get initialisation result. Init manager is 
       
    35 *  responsible for device intialize which include BT device type detection.
       
    36 *  If the device is not a GPS device(either support Nokia propriatery feature 
       
    37 *  or not), then connect manager shall inform end user to connect to anoter 
       
    38 *  BT device.
       
    39 *
       
    40 */
       
    41 class CBTGPSInitHandler: public CBase, private MBTGPSDeviceListener
       
    42     {
       
    43     public: 
       
    44 
       
    45         /**
       
    46         * Two-phase construction.
       
    47 		* @param aManagerExt Reference to connect manager.
       
    48         */
       
    49         static CBTGPSInitHandler * NewL(
       
    50             MBTGPSConnectManagerExt& aManagerExt);
       
    51 
       
    52         /**
       
    53         * Destructor
       
    54         */
       
    55         virtual ~CBTGPSInitHandler();
       
    56 
       
    57     private:
       
    58 
       
    59         /**
       
    60         * Second phase of the construction
       
    61         */
       
    62         void ConstructL();
       
    63 
       
    64         /**
       
    65         * Private constructor
       
    66         */
       
    67         CBTGPSInitHandler(
       
    68             MBTGPSConnectManagerExt& aManagerExt);
       
    69         
       
    70         /**
       
    71         * From MBTGPSDeviceListener
       
    72         */
       
    73         virtual void BTDeviceStatusChanged(
       
    74             TInt aConnectStatus, 
       
    75             TInt aDeviceType,
       
    76             TInt aErr=KErrNone);
       
    77         
       
    78     private:
       
    79         //Manager
       
    80         MBTGPSConnectManagerExt& iManagerExt;
       
    81         
       
    82     };
       
    83 #endif
       
    84 // End of File
       
    85