|
1 /* |
|
2 * Copyright (c) 2008 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: Plugin transaction list item header file. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_HWRMHAPTICSPLUGINTRANSACTIONLISTITEM_H |
|
20 #define C_HWRMHAPTICSPLUGINTRANSACTIONLISTITEM_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 /** |
|
25 * This class contains ongoing plugin operation data base class. |
|
26 * |
|
27 * @since S60 5.1 |
|
28 */ |
|
29 class CHWRMHapticsPluginTransactionListItem : public CBase |
|
30 { |
|
31 public: |
|
32 /** |
|
33 * Convenience constructor |
|
34 */ |
|
35 CHWRMHapticsPluginTransactionListItem( TUint8 aTransId, TInt aCommandId ); |
|
36 |
|
37 /** |
|
38 * Virtual destructor. |
|
39 */ |
|
40 virtual ~CHWRMHapticsPluginTransactionListItem(); |
|
41 |
|
42 /** |
|
43 * Returns pointer to next item in list. |
|
44 * |
|
45 * @return Pointer to next item. |
|
46 */ |
|
47 CHWRMHapticsPluginTransactionListItem* NextItem(); |
|
48 |
|
49 /** |
|
50 * Sets next item of the list. |
|
51 * |
|
52 * @param aListItem Pointer to next item of the list. |
|
53 */ |
|
54 void SetNextItem( CHWRMHapticsPluginTransactionListItem* aListItem ); |
|
55 |
|
56 /** |
|
57 * Sets ongoing transaction. |
|
58 * |
|
59 * @param aListItem Id of ongoing transaction. |
|
60 */ |
|
61 void SetTransactionId( TUint8 aTransactionId ); |
|
62 |
|
63 /** |
|
64 * Returns id of the ongoing transaction. |
|
65 * |
|
66 * @return Id of ongoing transaction. |
|
67 */ |
|
68 TUint8 TransactionId(); |
|
69 |
|
70 /** |
|
71 * Returns id of command being handled. |
|
72 * |
|
73 * @return Id of command being handled. |
|
74 */ |
|
75 TInt CommandId(); |
|
76 |
|
77 private: |
|
78 |
|
79 /** |
|
80 * Id of the ongoing transaction. |
|
81 */ |
|
82 TUint8 iTransId; |
|
83 |
|
84 /** |
|
85 * Id of the command being handled. |
|
86 */ |
|
87 TInt iCommandId; |
|
88 |
|
89 /** |
|
90 * Next data in the queue. Not owned. |
|
91 */ |
|
92 CHWRMHapticsPluginTransactionListItem* iNextData; |
|
93 }; |
|
94 |
|
95 #endif // C_HWRMHAPTICSPLUGINTRANSACTIONLISTITEM_H |
|
96 |
|
97 // End of File |