|
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: Haptics transaction data header file. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_HWRMHAPTICSTRANSACTIONDATA_H |
|
20 #define C_HWRMHAPTICSTRANSACTIONDATA_H |
|
21 |
|
22 #include "hwrmhapticsservice.h" |
|
23 #include "hwrmhapticsplugintransactionlist.h" |
|
24 |
|
25 /** |
|
26 * Contains ongoing plugin operation data. |
|
27 */ |
|
28 class CHWRMHapticsTransactionData : |
|
29 public CHWRMHapticsPluginTransactionListItem |
|
30 { |
|
31 public: |
|
32 |
|
33 /** |
|
34 * Constructor. |
|
35 * |
|
36 * @param aCompletionCallback Service callback to be stored. |
|
37 * @param aTransId Transaction ID to be stored in base class. |
|
38 * @param aCommandId CommandID to be stored in base class. |
|
39 * @param aObsoletionTime Obsoletion time. |
|
40 */ |
|
41 CHWRMHapticsTransactionData( CHWRMHapticsService* aCompletionCallback, |
|
42 TUint8 aTransId, |
|
43 TInt aCommandId, |
|
44 const TTime& aObsoletionTime ); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~CHWRMHapticsTransactionData(); |
|
50 |
|
51 /** |
|
52 * Method to get time after which the transaction is obsolete. |
|
53 * |
|
54 * @return Time after which the transaction is obsolete. |
|
55 */ |
|
56 TTime TransactionObsoletionTime(); |
|
57 |
|
58 /** |
|
59 * Method to get pointer to callback function. |
|
60 * |
|
61 * @return Pointer to completion callback. |
|
62 */ |
|
63 CHWRMHapticsService* CompletionCallback(); |
|
64 |
|
65 private: |
|
66 |
|
67 /** |
|
68 * Pointer to currently using service. Not owned. |
|
69 */ |
|
70 CHWRMHapticsService* iCompletionCallback; |
|
71 |
|
72 /** |
|
73 * Time after which the transaction is obsolete. |
|
74 */ |
|
75 TTime iObsoletionTime; |
|
76 }; |
|
77 |
|
78 |
|
79 #endif // C_HWRMHAPTICSTRANSACTIONDATA_H |
|
80 |
|
81 // End of File |