|
1 /* |
|
2 * Copyright (c) 2006 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: Inline methods implementations |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 // --------------------------------------------------------------------------- |
|
22 // TDTMFEventPayloadInfo::TDTMFEventPayloadInfo |
|
23 // C++ default constructor can NOT contain any code, that |
|
24 // might leave. |
|
25 // --------------------------------------------------------------------------- |
|
26 // |
|
27 inline TDTMFEventPayloadInfo::TDTMFEventPayloadInfo() |
|
28 : |
|
29 iEvent(0), |
|
30 iEndBit(EFalse), |
|
31 iVolume(0), |
|
32 iDuration(0), |
|
33 iTimeStamp(0) |
|
34 { |
|
35 } |
|
36 |
|
37 // --------------------------------------------------------------------------- |
|
38 // TDTMFEventPayloadInfo::Event |
|
39 // Return event. |
|
40 // --------------------------------------------------------------------------- |
|
41 // |
|
42 inline TChar TDTMFEventPayloadInfo::Event() const |
|
43 { |
|
44 return iEvent; |
|
45 } |
|
46 |
|
47 // --------------------------------------------------------------------------- |
|
48 // TDTMFEventPayloadInfo::SetEvent |
|
49 // Set event. |
|
50 // --------------------------------------------------------------------------- |
|
51 // |
|
52 inline void TDTMFEventPayloadInfo::SetEvent( const TChar& aEvent ) |
|
53 { |
|
54 iEvent = aEvent; |
|
55 } |
|
56 |
|
57 // --------------------------------------------------------------------------- |
|
58 // TDTMFEventPayloadInfo::EndBit |
|
59 // Return end bit. |
|
60 // --------------------------------------------------------------------------- |
|
61 // |
|
62 inline TBool TDTMFEventPayloadInfo::EndBit() const |
|
63 { |
|
64 return iEndBit; |
|
65 } |
|
66 |
|
67 // --------------------------------------------------------------------------- |
|
68 // TDTMFEventPayloadInfo::SetEndBit |
|
69 // Set end bit. |
|
70 // --------------------------------------------------------------------------- |
|
71 // |
|
72 inline void TDTMFEventPayloadInfo::SetEndBit( TBool aEndBit ) |
|
73 { |
|
74 iEndBit = aEndBit; |
|
75 } |
|
76 |
|
77 // --------------------------------------------------------------------------- |
|
78 // TDTMFEventPayloadInfo::Volume |
|
79 // Return volume. |
|
80 // --------------------------------------------------------------------------- |
|
81 // |
|
82 inline TUint TDTMFEventPayloadInfo::Volume() const |
|
83 { |
|
84 return iVolume; |
|
85 } |
|
86 |
|
87 // --------------------------------------------------------------------------- |
|
88 // TDTMFEventPayloadInfo::SetVolume |
|
89 // Set volume. |
|
90 // --------------------------------------------------------------------------- |
|
91 // |
|
92 inline void TDTMFEventPayloadInfo::SetVolume( TUint aVolume ) |
|
93 { |
|
94 iVolume = aVolume; |
|
95 } |
|
96 |
|
97 // --------------------------------------------------------------------------- |
|
98 // TDTMFEventPayloadInfo::Duration |
|
99 // Return duration. |
|
100 // --------------------------------------------------------------------------- |
|
101 // |
|
102 inline TUint TDTMFEventPayloadInfo::Duration() const |
|
103 { |
|
104 return iDuration; |
|
105 } |
|
106 |
|
107 // --------------------------------------------------------------------------- |
|
108 // TDTMFEventPayloadInfo::SetDuration |
|
109 // Set duration. |
|
110 // --------------------------------------------------------------------------- |
|
111 // |
|
112 inline void TDTMFEventPayloadInfo::SetDuration( TUint aDuration ) |
|
113 { |
|
114 iDuration = aDuration; |
|
115 } |
|
116 |
|
117 // --------------------------------------------------------------------------- |
|
118 // TDTMFEventPayloadInfo::TimeStamp |
|
119 // Return time stamp. |
|
120 // --------------------------------------------------------------------------- |
|
121 // |
|
122 inline TTimeIntervalMicroSeconds32 TDTMFEventPayloadInfo::TimeStamp() const |
|
123 { |
|
124 return iTimeStamp; |
|
125 } |
|
126 |
|
127 // --------------------------------------------------------------------------- |
|
128 // TDTMFEventPayloadInfo::SetTimeStamp |
|
129 // Set time stamp. |
|
130 // --------------------------------------------------------------------------- |
|
131 // |
|
132 inline void TDTMFEventPayloadInfo::SetTimeStamp( |
|
133 const TTimeIntervalMicroSeconds32& aTimeStamp ) |
|
134 { |
|
135 iTimeStamp = aTimeStamp; |
|
136 } |
|
137 |
|
138 // End of File |