bluetoothengine/btnotif/inc/BTNGenericInfoNotifier.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 generic information notifier class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BTNGENERICINFONNOTIFIER_H
       
    20 #define BTNGENERICINFONNOTIFIER_H
       
    21 
       
    22 // INCLUDES
       
    23 
       
    24 #include "btnotifier.h" // Base class
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CAknInformationNote;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 NONSHARABLE_CLASS(CBTGenericInfoNotifier) : public CBTNotifierBase
       
    31     {
       
    32     public: // Constructors and destructor
       
    33 
       
    34         /**
       
    35         * Two-phased constructor.
       
    36         */
       
    37         static CBTGenericInfoNotifier* NewL();
       
    38 
       
    39         /**
       
    40         * Destructor.
       
    41         */
       
    42         virtual ~CBTGenericInfoNotifier();
       
    43 
       
    44     private: // Functions from base classes
       
    45 
       
    46         /**
       
    47         * From CBTNotifierBase Called when a notifier is first loaded 
       
    48         * to allow any initial construction that is required.
       
    49         * @param None.
       
    50         * @return A structure containing priority and channel info.
       
    51         */
       
    52         TNotifierInfo RegisterL();
       
    53         
       
    54         /** From CBTNotifierBase Synchronic notifier launch.        
       
    55         * @param aBuffer Received parameter data.
       
    56         * @return A pointer to return value.
       
    57         */
       
    58         TPtrC8 StartL(const TDesC8& aBuffer );
       
    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
       
    73         */      
       
    74         void HandleGetDeviceCompletedL(const CBTDevice* aDev);        
       
    75 
       
    76     private:
       
    77     
       
    78 		/**
       
    79         * Parse the data out of the message that is sent by the client of the notifier. 
       
    80 		* @param aBuffer A package buffer containing received parameters.
       
    81         * @return None.
       
    82         */
       
    83 		void ProcessParamBufferL(const TDesC8& aBuffer, TBool aSyncCall);
       
    84 		
       
    85         /**
       
    86         * C++ default constructor.
       
    87         */
       
    88         CBTGenericInfoNotifier();
       
    89 
       
    90         /**
       
    91          * Show Information note and complete message. 
       
    92          */
       
    93         void ShowNoteAndCompleteL(TBool aSyncCall);
       
    94         
       
    95     private:
       
    96         RBuf	iQueryMessage;
       
    97 	    TInt 	iMessageResourceId;
       
    98 	    TSecondaryDisplayBTnotifDialogs iSecondaryDisplayCommand;
       
    99     };
       
   100 
       
   101 #endif
       
   102 
       
   103 // End of File