|
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 functions for Tuner component. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 TTunerCapabilities::TTunerCapabilities() |
|
20 : iTunerBands(0), iAdditionalFunctions(0) |
|
21 {} |
|
22 |
|
23 TTunerCapabilities::TTunerCapabilities(TUint32 aTunerBands, TUint32 aAdditionalFunctions) |
|
24 : iTunerBands(aTunerBands), iAdditionalFunctions(aAdditionalFunctions) |
|
25 {} |
|
26 |
|
27 TFrequency::TFrequency() |
|
28 : iFrequency(0) |
|
29 {} |
|
30 |
|
31 TFrequency::TFrequency(TInt aFrequency) |
|
32 : iFrequency(aFrequency) |
|
33 {} |
|
34 |
|
35 TInt TFrequency::operator==(const TFrequency& aFrequency) const |
|
36 { |
|
37 return (iFrequency==aFrequency.iFrequency); |
|
38 } |
|
39 |
|
40 TInt TFrequency::operator!=(const TFrequency& aFrequency) const |
|
41 { |
|
42 return (iFrequency!=aFrequency.iFrequency); |
|
43 } |
|
44 |
|
45 TInt TFrequency::operator> (const TFrequency& aFrequency) const |
|
46 { |
|
47 return (iFrequency>aFrequency.iFrequency); |
|
48 } |
|
49 |
|
50 TInt TFrequency::operator>=(const TFrequency& aFrequency) const |
|
51 { |
|
52 return (iFrequency>=aFrequency.iFrequency); |
|
53 } |
|
54 |
|
55 TInt TFrequency::operator< (const TFrequency& aFrequency) const |
|
56 { |
|
57 return (iFrequency<aFrequency.iFrequency); |
|
58 } |
|
59 |
|
60 TInt TFrequency::operator<=(const TFrequency& aFrequency) const |
|
61 { |
|
62 return (iFrequency<=aFrequency.iFrequency); |
|
63 } |
|
64 |
|
65 TRdsData::TRdsData() |
|
66 { |
|
67 } |
|
68 |
|
69 TEonMappedFrequency::TEonMappedFrequency(TFrequency aTuningFrequency, TFrequency aMappedFrequency) |
|
70 : iTuningFrequency(aTuningFrequency), iMappedFrequency(aMappedFrequency) |
|
71 { |
|
72 } |
|
73 |
|
74 TInt TRdsProgrammeItemNumber::operator==(const TRdsProgrammeItemNumber& aPin) const |
|
75 { |
|
76 return ((iDayOfMonth==aPin.iDayOfMonth)&&(iHour==aPin.iHour)&&(iMinute==aPin.iMinute)); |
|
77 } |
|
78 |
|
79 TInt TRdsProgrammeItemNumber::operator!=(const TRdsProgrammeItemNumber& aPin) const |
|
80 { |
|
81 return (!((*this)==aPin)); |
|
82 } |
|
83 |
|
84 // End of file |