bluetoothengine/btnotif/inc/btnpaireddevsettnotifier.h
branchRCL_3
changeset 56 9386f31cc85b
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:  Declares power mode setting notifier class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BTNPAIREDDEVSETTNOTIFIER_H
       
    20 #define BTNPAIREDDEVSETTNOTIFIER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "btnotifier.h" // Base class
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 
       
    27 // CLASS DECLARATION
       
    28 NONSHARABLE_CLASS(CBTPairedDevSettNotifier) : public CBTNotifierBase
       
    29     {
       
    30     public: // Constructors and destructor
       
    31 
       
    32         /**
       
    33         * Two-phased constructor.
       
    34         */
       
    35         static CBTPairedDevSettNotifier* NewL();
       
    36 
       
    37         /**
       
    38         * Destructor.
       
    39         */
       
    40         virtual ~CBTPairedDevSettNotifier();
       
    41 
       
    42     private: // Functions from base classes
       
    43 
       
    44         /**
       
    45         * From CBTNotifierBase Called when a notifier is first loaded 
       
    46         * to allow any initial construction that is required.
       
    47         * @param None.
       
    48         * @return A structure containing priority and channel info.
       
    49         */
       
    50         TNotifierInfo RegisterL();
       
    51 
       
    52          /**
       
    53         * From CBTNotifierBase The notifier has been deactivated 
       
    54         * so resources can be freed and outstanding messages completed.
       
    55         * @param None.
       
    56         * @return None.
       
    57         */
       
    58         void Cancel();        
       
    59 
       
    60         /**
       
    61         * From CBTNotifierBase Used in asynchronous notifier launch to 
       
    62         * store received parameters into members variables and 
       
    63         * make needed initializations.
       
    64         * @param aBuffer A buffer containing received parameters
       
    65         * @param aReturnVal The return value to be passed back.
       
    66         * @param aMessage Should be completed when the notifier is deactivated.
       
    67         * @return None.
       
    68         */
       
    69         void GetParamsL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
    70 
       
    71 		/**
       
    72         * From CBTNotifierBase Updates a currently active notifier.
       
    73         * @param aBuffer The updated data.
       
    74         * @return A pointer to return value.
       
    75         */
       
    76         TPtrC8 UpdateL(const TDesC8& aBuffer);
       
    77         
       
    78  		/**
       
    79         * From CBTNotifierBase
       
    80         */      
       
    81         void HandleGetDeviceCompletedL(const CBTDevice* aDev);
       
    82         
       
    83     private:
       
    84 
       
    85 		/**
       
    86         * Parse the data out of the message that is sent by the client of the notifier. 
       
    87 		* @param aBuffer A package buffer containing received parameters.
       
    88         * @return None.
       
    89         */
       
    90 		void ProcessParamBufferL(const TDesC8& aBuffer);
       
    91 	
       
    92     	/**
       
    93     	 * Query to assign the friendly name when adding it into paired device list
       
    94     	 * if the current device name is not unique in the paired devices view.
       
    95     	 */
       
    96 		void QueryRenameDeviceL(const CBTDevice& aDevice);
       
    97     	
       
    98         /**
       
    99         * C++ default constructor.
       
   100         */
       
   101         CBTPairedDevSettNotifier();        
       
   102         
       
   103         /**
       
   104          * Process pairing error code to show corresponding notes.
       
   105          * @param aErr The pairing error code from HCI error.
       
   106          * @return The resouce ID of notes
       
   107          */
       
   108         TInt ProcessPairingErrorCode( const TInt aErr );
       
   109                 
       
   110     private:
       
   111 	
       
   112         TSecondaryDisplayBTnotifDialogs	iSecondaryDisplayCommand;
       
   113 		TBool 	iIsMessageQuery;
       
   114 		TInt 	iPairingStatus; 
       
   115 		
       
   116     };
       
   117 
       
   118 #endif //BTNPAIREDDEVSETTNOTIFIER_H
       
   119 
       
   120 // End of File