btobexprofiles/obexsendservices/obexservicesendutils/inc/BTSUPassKeyRequest.h
branchRCL_3
changeset 56 9386f31cc85b
parent 55 613943a21004
child 61 269724087bed
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
     1 /*
       
     2 * Copyright (c) 2002 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:  CBTSUPasskeyRequest Header definitions
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BTSU_PASSKEY_REQUEST_H
       
    20 #define BTSU_PASSKEY_REQUEST_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <obexclient.h>
       
    25 #include <btnotif.h>
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 *  Class to handle BT Obex Passkey events
       
    31 */
       
    32 NONSHARABLE_CLASS (CBTSUPasskeyRequest) : public CActive
       
    33     {
       
    34 
       
    35     public: // Constructors and destructor
       
    36 
       
    37         /**
       
    38         * C++ default constructor.
       
    39         */
       
    40         CBTSUPasskeyRequest();
       
    41 
       
    42         /**
       
    43         * Destructor.
       
    44         * Closes RNotifier
       
    45         */
       
    46         ~CBTSUPasskeyRequest();
       
    47 
       
    48     public: // New functions
       
    49         /**
       
    50         * Starts BT ObexPasskey notifier
       
    51 	    * @param aObexServer OBEX server
       
    52         */
       
    53         void StartPassKeyRequestL( CObexClient* aObexclient );
       
    54 
       
    55     private: // Functions from base classes
       
    56         /**
       
    57         * From CActive Get's called when a request is cancelled.
       
    58         * @param None.
       
    59         * @return None.
       
    60         */
       
    61         void DoCancel();
       
    62 
       
    63         /**
       
    64         * From CActive Get's called when a request is completed.
       
    65         * @param None.
       
    66         * @return None.
       
    67         */
       
    68         void RunL();
       
    69 
       
    70         /**
       
    71         * From CActive A leave occurred in RunL.
       
    72         * @param aError The leave error.
       
    73         * @return Symbian OS error code.
       
    74         */
       
    75         TInt RunError();
       
    76 
       
    77     private: // Data
       
    78 
       
    79         RNotifier iNotif;               // For Obex passkey notifier
       
    80         TObexPasskeyBuf iObexPasskey;   // Obex passkey
       
    81         CObexClient* iObexClient;       // Obex client
       
    82     };
       
    83 
       
    84 #endif
       
    85 
       
    86 // End of File