datasourcemodules/bluetoothgpspositioningmodule/btgpspsy/inc/Connecting/BTGPSDeviceSelector.h
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     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 BTGPSDEVICESELECTOR_H
       
    22 #define BTGPSDEVICESELECTOR_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32std.h> 
       
    26 #include <btextnotifiers.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class MBTGPSConnectManagerExt;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  The handler that handles device selection. This class is responsible
       
    35 *  to show device selection query note to end user. Selected device address
       
    36 *  is stored to device manager. If user cancel the selection or other reason
       
    37 *  that a device can't be selected, error code is returned through 
       
    38 *  MBTGPSConnectManagerExt interface.
       
    39 *
       
    40 */
       
    41 class CBTGPSDeviceSelector: public CActive
       
    42     {
       
    43     public: 
       
    44 
       
    45         /**
       
    46         * Two-phase construction.
       
    47         */
       
    48         static CBTGPSDeviceSelector * NewL(
       
    49             MBTGPSConnectManagerExt& aManagerExt);
       
    50 
       
    51         /**
       
    52         * Destructor
       
    53         */
       
    54         virtual ~CBTGPSDeviceSelector();
       
    55 
       
    56     private:
       
    57         /**
       
    58         * From CActive
       
    59         */
       
    60         void RunL();
       
    61 
       
    62         /**
       
    63         * From CActive
       
    64         */
       
    65         void DoCancel();
       
    66 
       
    67         /**
       
    68         * From CActive
       
    69         */
       
    70         TInt RunError(TInt aError);
       
    71 
       
    72     private:
       
    73 
       
    74         /**
       
    75         * Second phase of the construction
       
    76         */
       
    77         void ConstructL();
       
    78 
       
    79         /**
       
    80         * Private constructor
       
    81         * @param aId Timer id.
       
    82         * @param aListener The timer event listener.
       
    83         */
       
    84         CBTGPSDeviceSelector(
       
    85             MBTGPSConnectManagerExt& aManagerExt);
       
    86         
       
    87     private:
       
    88         //Manager Ext
       
    89         MBTGPSConnectManagerExt& iManagerExt;
       
    90         
       
    91         //Notifier
       
    92         RNotifier iNotifier;
       
    93 
       
    94         //BT selection response
       
    95         TBTDeviceResponseParamsPckg iBTSelectionResponse;
       
    96         
       
    97     };
       
    98 #endif
       
    99 // End of File
       
   100