diff -r 000000000000 -r c9bc50fca66e usbmgmt/usbmgr/usbman/server/public/MUsbDeviceNotify.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/usbmgmt/usbmgr/usbman/server/public/MUsbDeviceNotify.h Tue Feb 02 02:02:59 2010 +0200 @@ -0,0 +1,63 @@ +/* +* 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: +* +*/ + +/** @file + * + * The mixin used by the USB Device object to notify all of + * it's observers of any state changes that occur + * + * Copyright (c) 1997-2007 Symbian Ltd. All rights reserved. + */ + +#ifndef __MUSBDEVICENOTIFY_H__ +#define __MUSBDEVICENOTIFY_H__ + +#include + +/** + * 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 +