bluetoothengine/btsac/btrcc/inc/btrccPlugin.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:  BT Remote Control Controller class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BTRCCPLUGIN_H
       
    20 #define BTRCCPLUGIN_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <es_sock.h>
       
    24 #include <bttypes.h>
       
    25 #include <e32std.h>
       
    26 
       
    27 
       
    28 // Implement Interface provided by 'BT Accessory Server' component. E-com framework
       
    29 // uses this interface to load this plugin
       
    30 #include <btaccPlugin.h>
       
    31 
       
    32 // FORWARD DECLARATIONS
       
    33 class CBTRCCLinker;
       
    34 
       
    35 // CLASS DECLARATION
       
    36 
       
    37 /**
       
    38 *  The main controller for BT audio. Maintains e.g. the internal state of the
       
    39 *  Symbian side BT audio system and controls the serving of requests received
       
    40 *  both from the Symbian side and the DOS side of the system.
       
    41 */
       
    42 NONSHARABLE_CLASS(CBTRCCPlugin) 
       
    43     : public CBTAccPlugin
       
    44   	{
       
    45   	
       
    46   	public:  // Constructors and destructor
       
    47         
       
    48         /**
       
    49         * Two-phased constructor.
       
    50         */
       
    51         static CBTRCCPlugin* NewL(TPluginParams& aParams);
       
    52         
       
    53         /**
       
    54         * Destructor.
       
    55         */
       
    56         ~CBTRCCPlugin();
       
    57         
       
    58       private: // Functions from CBTAccPlugin
       
    59 
       
    60         void ConnectToAccessory(const TBTDevAddr& aAddr, TRequestStatus& aStatus);
       
    61 
       
    62         void CancelConnectToAccessory(const TBTDevAddr& aAddr);
       
    63 
       
    64     	/** 
       
    65     	* Called by BT Acc Sever to disconnect from mono or stereo accessory
       
    66     	* @param aAddr Bluetooth Device address of the remote device
       
    67     	*/
       
    68     	virtual void DisconnectAccessory(const TBTDevAddr& aAddr,TRequestStatus& aStatus);
       
    69 
       
    70        	/** 
       
    71     	* BT Acc Server checks the type of this plugin
       
    72     	@return TProfiles Type of this plugin
       
    73     	*/
       
    74     	virtual TProfiles PluginType();
       
    75     	
       
    76     	/** 
       
    77 		* Called by BT Acc Sever to inform plugin that accessory is in use. 
       
    78 		*/
       
    79 		virtual void AccInUse();
       
    80         
       
    81         void ActivateRemoteVolumeControl();
       
    82 
       
    83         void DeActivateRemoteVolumeControl();
       
    84         
       
    85     private:
       
    86 
       
    87         /**
       
    88         * C++ default constructor.
       
    89         * @param aParms T-class used for call-back to BT Acc Server
       
    90         */
       
    91         CBTRCCPlugin(TPluginParams& aParams);
       
    92 
       
    93         /**
       
    94         * Symbian 2nd phase constructor.
       
    95         */
       
    96         void ConstructL();
       
    97 
       
    98     private:    // Data            
       
    99              
       
   100         CBTRCCLinker* iLinker; // owned; Pointer to the linker class
       
   101     };
       
   102 
       
   103 
       
   104 #endif      // BTRCCPLUGIN_H
       
   105             
       
   106 // End of File