usbmgmt/usbmgr/usbman/server/public/MUsbDeviceNotify.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 13 Oct 2010 16:35:28 +0300
branchRCL_3
changeset 60 25c602fd1f26
parent 0 c9bc50fca66e
permissions -rw-r--r--
Revision: 201039 Kit: 201041

/*
* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/


#ifndef MUSBDEVICENOTIFY_H
#define MUSBDEVICENOTIFY_H

#include <usbstates.h>

/**
 * The MUsbDeviceNotify class
 *
 * The mixin used by the USB Device object to notify all of
 * it's observers of any state changes that occur

  @publishedPartner
  @released
 */
class MUsbDeviceNotify
	{
public:
	/**
	 * Called when the USB service state has changed
	 *
	 * @param aLastError The last error code detected
	 * @param aOldState The previous service state
	 * @param aNewState The new service state
	 */
	virtual void UsbServiceStateChange(TInt aLastError, TUsbServiceState aOldState, TUsbServiceState aNewState) = 0;

	/**
	 * Called when the USB device state has changed
	 *
	 * @param aLastError The last error code detected
	 * @param aOldState The previous device state
	 * @param aNewState The new device state
	 */
	virtual void UsbDeviceStateChange(TInt aLastError, TUsbDeviceState aOldState, TUsbDeviceState aNewState) = 0;
	};

#endif //MUSBDEVICENOTIFY_H