usbmgmt/usbmgr/usbman/extensionplugin/inc/MUsbManExtensionPluginObserverDummy.h
changeset 51 eaaed528d5fd
child 49 93c0009bd947
equal deleted inserted replaced
46:613028a7da24 51:eaaed528d5fd
       
     1 /*
       
     2 * Copyright (c) 2010 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:
       
    15 * Interface presented by Usbman down to the concrete Usbman Extension Plugins.
       
    16 *
       
    17 */
       
    18 
       
    19 /**
       
    20  @file
       
    21  @publishedPartner
       
    22  @released
       
    23 */
       
    24 
       
    25 #ifndef USBMANEXTENSIONPLUGINOBSERVERDUMMY_H
       
    26 #define USBMANEXTENSIONPLUGINOBSERVERDUMMY_H
       
    27 
       
    28 #include <e32base.h>
       
    29 #include "dummyusblddapi.h"
       
    30 
       
    31 class MUsbDeviceNotify;
       
    32 
       
    33 class MUsbmanExtensionPluginObserver
       
    34 	{
       
    35 
       
    36 public:
       
    37 	/**
       
    38 	Called by the plugin to get a RDevUsbcClient handle from its owner
       
    39 	@return RDevUsbcClient handle
       
    40 	*/
       
    41 	IMPORT_C RDevUsbcClient& DevUsbcClient();
       
    42 
       
    43 	/**
       
    44 	Called by the plugin to register for device/service state changes from its owner
       
    45 	@param aObserver The observer to register for state changes
       
    46 	*/
       
    47 	IMPORT_C void RegisterStateObserverL(MUsbDeviceNotify& aObserver);
       
    48 
       
    49 private:
       
    50 	/**
       
    51 	@see DevUsbcClient.
       
    52 	*/
       
    53 	virtual RDevUsbcClient& MuepoDoDevUsbcClient() = 0;
       
    54 
       
    55 	/**
       
    56 	@see RegisterStateObserverL.
       
    57 	*/
       
    58 	virtual void MuepoDoRegisterStateObserverL(MUsbDeviceNotify& aObserver) = 0;
       
    59 	};
       
    60 
       
    61 #endif // USBMANEXTENSIONPLUGINOBSERVERDUMMY_H