1 /* |
1 /* |
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * Class declaration for Device State.Notifier Base Class |
15 * Class declaration for Device State.Notifier Base Class |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 |
19 |
20 /** |
20 /** |
21 @file |
21 @file |
22 @internalTechnology |
22 @internalTechnology |
23 */ |
23 */ |
24 |
24 |
25 #ifndef CACTIVEDEVICESTATENOTIFIERBASE_H |
25 #ifndef CACTIVEDEVICESTATENOTIFIERBASE_H |
26 #define CACTIVEDEVICESTATENOTIFIERBASE_H |
26 #define CACTIVEDEVICESTATENOTIFIERBASE_H |
27 #include <e32base.h> |
|
28 |
27 |
29 #include "cbulkonlytransport.h" |
|
30 #include "protocol.h" |
|
31 #include "cusbmassstoragecontroller.h" |
|
32 |
28 |
33 class CActiveDeviceStateNotifierBase : public CActive |
29 class CActiveDeviceStateNotifierBase : public CActive |
34 { |
30 { |
35 public: |
31 public: |
36 // Construction |
32 // Construction |
37 static CActiveDeviceStateNotifierBase* NewL(CBulkOnlyTransport& aBot, |
33 static CActiveDeviceStateNotifierBase* NewL(CBulkOnlyTransport& aBot, |
38 MLddDeviceStateNotification& aLddDeviceStateNotification); |
34 MLddDeviceStateNotification& aLddDeviceStateNotification); |
39 |
35 |
40 // Destruction |
36 // Destruction |
41 ~CActiveDeviceStateNotifierBase(); |
37 ~CActiveDeviceStateNotifierBase(); |
42 |
38 |
43 void Activate(); |
39 void Activate(); |
44 |
40 |
45 protected: |
41 protected: |
46 // Construction |
42 // Construction |
47 CActiveDeviceStateNotifierBase(CBulkOnlyTransport& aBot, |
43 CActiveDeviceStateNotifierBase(CBulkOnlyTransport& aBot, |
48 MLddDeviceStateNotification& aLddDeviceStateNotification); |
44 MLddDeviceStateNotification& aLddDeviceStateNotification); |
49 void ConstructL(); |
45 void ConstructL(); |
50 |
46 |
51 // Cancel request. |
47 // Cancel request. |
52 // Defined as pure virtual by CActive; |
48 // Defined as pure virtual by CActive; |
53 // implementation provided by this class. |
49 // implementation provided by this class. |
54 virtual void DoCancel(); |
50 virtual void DoCancel(); |
55 |
51 |
56 // Service completed request. |
52 // Service completed request. |
57 // Defined as pure virtual by CActive; |
53 // Defined as pure virtual by CActive; |
58 // implementation provided by this class, |
54 // implementation provided by this class, |
59 virtual void RunL(); |
55 virtual void RunL(); |
60 |
56 |
61 protected: |
57 protected: |
62 CBulkOnlyTransport& iBot; |
58 CBulkOnlyTransport& iBot; |
63 MLddDeviceStateNotification& iLddDeviceStateNotification; |
59 MLddDeviceStateNotification& iLddDeviceStateNotification; |
64 TUint iDeviceState; |
60 TUint iDeviceState; |
65 TUint iOldDeviceState; |
61 TUint iOldDeviceState; |
66 }; |
62 }; |
67 |
63 |
68 #endif |
64 #endif |
69 |
65 |
70 |
66 |