userlibandfileserver/fileserver/smassstorage/inc/cactivedevicestatenotifierbase.h
changeset 0 a41df078684a
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     1 /*
       
     2 * Copyright (c) 2004-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 the License "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 * Class declaration for Device State.Notifier Base Class
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 /** 
       
    21  @file
       
    22  @internalTechnology
       
    23 */
       
    24 
       
    25 #ifndef CACTIVEDEVICESTATENOTIFIERBASE_H
       
    26 #define CACTIVEDEVICESTATENOTIFIERBASE_H
       
    27 #include <e32base.h>
       
    28 
       
    29 #include "cbulkonlytransport.h"
       
    30 #include "protocol.h"
       
    31 #include "cusbmassstoragecontroller.h"
       
    32 
       
    33 class CActiveDeviceStateNotifierBase : public CActive
       
    34 	{
       
    35 public:
       
    36 	// Construction
       
    37 	static CActiveDeviceStateNotifierBase* NewL(CBulkOnlyTransport& aBot,
       
    38                                                 MLddDeviceStateNotification& aLddDeviceStateNotification);
       
    39 
       
    40 	// Destruction
       
    41 	~CActiveDeviceStateNotifierBase();
       
    42 
       
    43 	void Activate();
       
    44 
       
    45 protected:
       
    46 	// Construction
       
    47 	CActiveDeviceStateNotifierBase(CBulkOnlyTransport& aBot,
       
    48                                    MLddDeviceStateNotification& aLddDeviceStateNotification);
       
    49 	void ConstructL();
       
    50 
       
    51 	// Cancel request.
       
    52 	// Defined as pure virtual by CActive;
       
    53 	// implementation provided by this class.
       
    54 	virtual void DoCancel();
       
    55 
       
    56 	// Service completed request.
       
    57 	// Defined as pure virtual by CActive;
       
    58 	// implementation provided by this class,
       
    59 	virtual void RunL();
       
    60 
       
    61 protected:
       
    62 	CBulkOnlyTransport& iBot;
       
    63     MLddDeviceStateNotification& iLddDeviceStateNotification;
       
    64 	TUint iDeviceState;
       
    65 	TUint iOldDeviceState;
       
    66 	};
       
    67 
       
    68 #endif
       
    69 
       
    70