usbmgmt/usbmgr/usbman/chargingplugin/public/motgobserver.h
changeset 0 c9bc50fca66e
equal deleted inserted replaced
-1:000000000000 0:c9bc50fca66e
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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 *
       
    16 */
       
    17 
       
    18 /** @file
       
    19 @internalComponent
       
    20 */
       
    21 
       
    22 #ifndef MOTGOBSERVER_H
       
    23 #define MOTGOBSERVER_H
       
    24 
       
    25 #include <e32def.h>
       
    26 #include <e32property.h> //Publish & Subscribe header
       
    27 #include <e32cmn.h>
       
    28 #include <e32base.h>
       
    29 #include <usbotgdefs.h>
       
    30 
       
    31 //To observe ID-pin, VBus and OtgState properties via Publish and Subscribe
       
    32 NONSHARABLE_CLASS(MOtgPropertiesObserver)
       
    33 	{
       
    34 public:
       
    35 // For host OTG enabled charging plug-in
       
    36 #ifdef SYMBIAN_ENABLE_USB_OTG_HOST_PRIV 
       
    37 	virtual void MpsoIdPinStateChanged(TInt aValue) = 0;
       
    38 	virtual void MpsoOtgStateChangedL(TUsbOtgState aNewState) = 0;
       
    39 #endif	
       
    40 	virtual void MpsoVBusStateChanged(TInt aNewState) = 0;
       
    41 	};
       
    42 
       
    43 
       
    44 #endif //MOTGOBSERVER_H