usbmgmt/usbmgr/usbman/chargingplugin/inc/idpinwatcher.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 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #ifndef IDPINWATCHER_H
       
    24 #define IDPINWATCHER_H
       
    25 
       
    26 #include <e32def.h>
       
    27 #include <e32property.h> //Publish & Subscribe header
       
    28 #include <e32cmn.h>
       
    29 #include <e32base.h>
       
    30 #include "motgobserver.h"
       
    31 
       
    32 NONSHARABLE_CLASS(CIdPinWatcher) : public CActive
       
    33 	{
       
    34 public:
       
    35 	static CIdPinWatcher* NewL(MOtgPropertiesObserver* aObserver);
       
    36 	~CIdPinWatcher();
       
    37 
       
    38 	TInt IdPinValue() const;
       
    39 
       
    40 private:
       
    41 	CIdPinWatcher(MOtgPropertiesObserver* aObserver);
       
    42 	void ConstructL();
       
    43 	
       
    44 private:
       
    45 	void RunL();
       
    46 	void DoCancel();
       
    47 
       
    48 private:
       
    49 	MOtgPropertiesObserver* iObserver;
       
    50 	RProperty				iIdPinProp;
       
    51 	TInt					iIdPinValue;
       
    52 	};
       
    53 
       
    54 #endif //IDPINWATCHER_H