bluetoothengine/headsetsimulator/core/src/RemoteControl/hsremotecontrolcommand.cpp
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Component Name: Headset Simulator |
|
3 * Author: Comarch S.A. |
|
4 * Version: 1.0 |
|
5 * Copyright (c) 2010 Comarch S.A. |
|
6 * |
|
7 * This Software is submitted by Comarch S.A. to Symbian Foundation Limited on |
|
8 * the basis of the Member Contribution Agreement entered between Comarch S.A. |
|
9 * and Symbian Foundation Limited on 5th June 2009 (“Agreement”) and may be |
|
10 * used only in accordance with the terms and conditions of the Agreement. |
|
11 * Any other usage, duplication or redistribution of this Software is not |
|
12 * allowed without written permission of Comarch S.A. |
|
13 * |
|
14 */ |
|
15 |
|
16 #include "hsremotecontroltools.h" |
|
17 #include "debug.h" |
|
18 |
|
19 THsRemoteControlCommand::THsRemoteControlCommand( THsControlCommandData& aData, |
|
20 THsRemoteControlCommandType aCmdType ) : |
|
21 iData( aData ), iType( aCmdType ) |
|
22 { |
|
23 |
|
24 } |
|
25 |
|
26 void THsRemoteControlCommand::GetType( THsRemoteControlCommandType& aCmdType ) |
|
27 { |
|
28 TRACE_FUNC_ENTRY |
|
29 aCmdType = iType; |
|
30 TRACE_FUNC_EXIT |
|
31 } |
|
32 |
|
33 void THsRemoteControlCommand::GetData( TDes8 &aCmdData ) |
|
34 { |
|
35 TRACE_FUNC_ENTRY |
|
36 aCmdData.Copy( iData ); |
|
37 TRACE_FUNC_EXIT |
|
38 } |
|
39 |
|
40 void THsRemoteControlCommand::Copy( const THsRemoteControlCommand& aCmdFrom, |
|
41 THsRemoteControlCommand& aCmdTo ) |
|
42 { |
|
43 TRACE_STATIC_FUNC |
|
44 aCmdTo.iData.Copy( aCmdFrom.iData ); |
|
45 aCmdTo.iType = aCmdFrom.iType; |
|
46 } |