bluetoothengine/btaudioman/inc/BTAccInfoCmdHandler.h
changeset 0 f63038272f30
equal deleted inserted replaced
-1:000000000000 0:f63038272f30
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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:  Loaded by Accessory Server to retrieve information of an accessory
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BTACCINFOCMDHANDLER_H
       
    20 #define BTACCINFOCMDHANDLER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <AsyCmdTypes.h>
       
    24 #include <e32base.h>
       
    25 #include <AsyCommandHandlerBase.h>
       
    26 
       
    27 #include "BTAccInfoRequester.h"
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  Implements interface provided by Accessory Server. This interface
       
    33 *  is used to get information about a bluetooth accessory. 
       
    34 *
       
    35 *  @lib BTAccInfo.dll
       
    36 *  @since Series 60 3.1
       
    37 */
       
    38 class CBTAccInfoCmdHandler : public CASYCommandHandlerBase, public MBTAccInfoNotifier
       
    39     {
       
    40     public:  // Constructors and destructor
       
    41         
       
    42         /**
       
    43         * Two-phased constructor.
       
    44         * @param
       
    45         * @return The created object.
       
    46         */
       
    47         static CBTAccInfoCmdHandler* NewL();
       
    48         
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         ~CBTAccInfoCmdHandler();
       
    53         
       
    54     public: // Functions from base classes
       
    55         
       
    56         /**
       
    57         * Processes a command from Acccessory Server
       
    58         * @since Series 60 3.1
       
    59         * @param aCommand Command to process.
       
    60         * @param aCmdParams Params of command to process.
       
    61         */
       
    62         void ProcessCommandL(const TProcessCmdId aCommand, const TASYCmdParams& aCmdParams);
       
    63         
       
    64         /**
       
    65         * Call-back from BTAccInfoRequester; Provides information of an accessory
       
    66         * Ownership of TASYBTAccInfo is recieved by this method
       
    67         * @since Series 60 3.1
       
    68         * @param aErr Whether information of an accessory could be retrieved or not. 
       
    69         * @param aAccInfo T-class containing information of an accessory
       
    70         */
       
    71         void GetBTAccInfoCompletedL(TInt aErr, const TASYBTAccInfo& aAccInfo);
       
    72         
       
    73 
       
    74     private:    // Functions
       
    75              
       
    76         /**
       
    77         * C++ default constructor.
       
    78         */
       
    79         CBTAccInfoCmdHandler();
       
    80 
       
    81     private:    // Data
       
    82         CBTAccInfoRequester* iRequester; // Owned; Pointer to class which is used to get information of an accessory
       
    83         
       
    84     };
       
    85 
       
    86 #endif // BTACCINFOCMDHANDLER_H
       
    87 
       
    88 // End of File
       
    89