|
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 implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "hwrmhapticstransactiondata.h" |
|
20 #include "hwrmhapticstrace.h" |
|
21 |
|
22 |
|
23 // --------------------------------------------------------------------------- |
|
24 // Destructor. |
|
25 // --------------------------------------------------------------------------- |
|
26 // |
|
27 CHWRMHapticsTransactionData::~CHWRMHapticsTransactionData() |
|
28 { |
|
29 COMPONENT_TRACE( ( _L( "CHWRMHapticsTransactionData::~CHWRMHapticsTransactionData()" ) ) ); |
|
30 COMPONENT_TRACE( ( _L( "CHWRMHapticsTransactionData::~CHWRMHapticsTransactionData - return" ) ) ); |
|
31 } |
|
32 |
|
33 // --------------------------------------------------------------------------- |
|
34 // C++ constructor. |
|
35 // --------------------------------------------------------------------------- |
|
36 // |
|
37 CHWRMHapticsTransactionData::CHWRMHapticsTransactionData( |
|
38 CHWRMHapticsService* aCompletionCallback, |
|
39 TUint8 aTransId, |
|
40 TInt aCommandId, |
|
41 const TTime& aObsoletionTime ) |
|
42 : CHWRMHapticsPluginTransactionListItem( aTransId, aCommandId ), |
|
43 iCompletionCallback( aCompletionCallback ), |
|
44 iObsoletionTime( aObsoletionTime ) |
|
45 { |
|
46 } |
|
47 |
|
48 |
|
49 // --------------------------------------------------------------------------- |
|
50 // Returns time after which the transaction is obsolete. |
|
51 // --------------------------------------------------------------------------- |
|
52 // |
|
53 TTime CHWRMHapticsTransactionData::TransactionObsoletionTime() |
|
54 { |
|
55 return iObsoletionTime; |
|
56 } |
|
57 |
|
58 // --------------------------------------------------------------------------- |
|
59 // Returns pointer to callback function. |
|
60 // --------------------------------------------------------------------------- |
|
61 // |
|
62 CHWRMHapticsService* CHWRMHapticsTransactionData::CompletionCallback() |
|
63 { |
|
64 return iCompletionCallback; |
|
65 } |
|
66 |
|
67 // End of File |