datasourcemodules/bluetoothgpspositioningmodule/btgpspsy/inc/Connecting/BTGPSPairingHandler.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 BTGPSPAIRINGHANDLER_H
       
    22 #define BTGPSPAIRINGHANDLER_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h> 
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class MBTGPSConnectManagerExt;
       
    29 class RSocketServ;
       
    30 class RSocket;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  Connection handler that control pairing operation.
       
    36 *
       
    37 */
       
    38 class CBTGPSPairingHandler: public CActive
       
    39     {
       
    40     public: 
       
    41 
       
    42         /**
       
    43         * Two-phase construction.
       
    44 		* @param aManagerExt Reference to connect manaager.
       
    45         */
       
    46         static CBTGPSPairingHandler * NewL(
       
    47             MBTGPSConnectManagerExt& aManagerExt);
       
    48 
       
    49         /**
       
    50         * Destructor
       
    51         */
       
    52         virtual ~CBTGPSPairingHandler();
       
    53 
       
    54     private:
       
    55         /**
       
    56         * From CActive
       
    57         */
       
    58         void RunL();
       
    59 
       
    60         /**
       
    61         * From CActive
       
    62         */
       
    63         void DoCancel();
       
    64 
       
    65     private:
       
    66 
       
    67         /**
       
    68         * Second phase of the construction
       
    69         */
       
    70         void ConstructL();
       
    71 
       
    72         /**
       
    73         * Private constructor
       
    74         */
       
    75         CBTGPSPairingHandler(
       
    76             MBTGPSConnectManagerExt& aManagerExt);
       
    77         
       
    78     private:
       
    79         //Manager Ext
       
    80         MBTGPSConnectManagerExt& iManagerExt;
       
    81         
       
    82         //Socket server
       
    83         RSocketServ* iSocketServ;
       
    84 
       
    85         //Socket
       
    86         RSocket* iSocket;
       
    87 
       
    88     };
       
    89 #endif
       
    90 
       
    91 // End of File
       
    92