|
1 /* |
|
2 * Copyright (c) 2002-2005 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: Information class for Channel IDs. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "TSatChannelIDInfo.h" |
|
20 #include "SatLog.h" |
|
21 |
|
22 // ----------------------------------------------------------------------------- |
|
23 // TSatChannelIdInfo::TSatChannelIdInfo |
|
24 // C++ default constructor can NOT contain any code, that |
|
25 // might leave. |
|
26 // ----------------------------------------------------------------------------- |
|
27 // |
|
28 TSatChannelIdInfo::TSatChannelIdInfo( TInt aChannelId, TUint8 aShort ) : |
|
29 iChannelId( aChannelId ), |
|
30 iShortChannelId( aShort ), |
|
31 iActive( EFalse ) |
|
32 { |
|
33 LOG( SIMPLE, "SATENGINE: TSatChannelIdInfo::TSatChannelIdInfo \ |
|
34 calling-exiting" ) |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // TSatChannelIdInfo::ChannelId |
|
39 // (other items were commented in a header). |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 TInt TSatChannelIdInfo::ChannelId() const |
|
43 { |
|
44 LOG2( SIMPLE, "SATENGINE: TSatChannelIdInfo::ChannelId \ |
|
45 calling-exiting with: %i", iChannelId ) |
|
46 return iChannelId; |
|
47 } |
|
48 |
|
49 // ----------------------------------------------------------------------------- |
|
50 // TSatChannelIdInfo::ShortChannelId |
|
51 // (other items were commented in a header). |
|
52 // ----------------------------------------------------------------------------- |
|
53 // |
|
54 TUint8 TSatChannelIdInfo::ShortChannelId() const |
|
55 { |
|
56 LOG2( SIMPLE, "SATENGINE: TSatChannelIdInfo::ShortChannelId \ |
|
57 calling-exiting with: %i", iShortChannelId ) |
|
58 return iShortChannelId; |
|
59 } |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // TSatChannelIdInfo::IsReserved |
|
63 // (other items were commented in a header). |
|
64 // ----------------------------------------------------------------------------- |
|
65 // |
|
66 TBool TSatChannelIdInfo::IsReserved() const |
|
67 { |
|
68 LOG2( SIMPLE, "SATENGINE: TSatChannelIdInfo::IsReserved \ |
|
69 calling-exiting with: %i", iActive ) |
|
70 return iActive; |
|
71 } |
|
72 |
|
73 // ----------------------------------------------------------------------------- |
|
74 // TSatChannelIdInfo::ReserveChannel |
|
75 // (other items were commented in a header). |
|
76 // ----------------------------------------------------------------------------- |
|
77 // |
|
78 void TSatChannelIdInfo::ReserveChannel() |
|
79 { |
|
80 LOG( SIMPLE, "SATENGINE: TSatChannelIdInfo::ReserveChannel \ |
|
81 calling-exiting" ) |
|
82 iActive = ETrue; |
|
83 } |
|
84 |
|
85 // ----------------------------------------------------------------------------- |
|
86 // TSatChannelIdInfo::ReleaseChannel |
|
87 // (other items were commented in a header). |
|
88 // ----------------------------------------------------------------------------- |
|
89 // |
|
90 void TSatChannelIdInfo::ReleaseChannel() |
|
91 { |
|
92 LOG( SIMPLE, "SATENGINE: TSatChannelIdInfo::ReleaseChannel \ |
|
93 calling-exiting" ) |
|
94 iActive = EFalse; |
|
95 } |
|
96 |
|
97 // End of File |