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: CMSParameterAgent class implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "msparameteragent.h" |
|
20 #include "mediaservant.hrh" |
|
21 #include "msdebug.h" |
|
22 |
|
23 |
|
24 // -------------------------------------------------------------------------- |
|
25 // CMSParameterAgent::CMSParameterAgent() |
|
26 // -------------------------------------------------------------------------- |
|
27 // |
|
28 CMSParameterAgent::CMSParameterAgent() |
|
29 { |
|
30 LOG(_L("[MediaServant]\t CMSParameterAgent::CMSParameterAgent")); |
|
31 |
|
32 iPreviousFocusIndex = 0; |
|
33 iTemplate.templateType = KErrNotFound; |
|
34 iTemplate.selectedTemplate = EMSNoTemplate; |
|
35 |
|
36 } |
|
37 |
|
38 // -------------------------------------------------------------------------- |
|
39 // CMSParameterAgent::~CMSParameterAgent() |
|
40 // -------------------------------------------------------------------------- |
|
41 // |
|
42 CMSParameterAgent::~CMSParameterAgent() |
|
43 { |
|
44 LOG(_L("[MediaServant]\t CMSParameterAgent::~CMSParameterAgent")); |
|
45 } |
|
46 |
|
47 // -------------------------------------------------------------------------- |
|
48 // CMSParameterAgent::SetRuleTemplate() |
|
49 // -------------------------------------------------------------------------- |
|
50 // |
|
51 void CMSParameterAgent::SetRuleTemplate( TMSTemplate aTemplate ) |
|
52 { |
|
53 LOG(_L("[MediaServant]\t CMSParameterAgent::SetRuleTemplate")); |
|
54 |
|
55 iTemplate = aTemplate; |
|
56 } |
|
57 |
|
58 // -------------------------------------------------------------------------- |
|
59 // CMSParameterAgent::SetRuleTemplate() |
|
60 // -------------------------------------------------------------------------- |
|
61 // |
|
62 TMSTemplate CMSParameterAgent::GetRuleTemplate() const |
|
63 { |
|
64 LOG(_L("[MediaServant]\t CMSParameterAgent::GetRuleTemplate")); |
|
65 |
|
66 return iTemplate; |
|
67 } |
|
68 |
|
69 // -------------------------------------------------------------------------- |
|
70 // CMSParameterAgent::SetMainViewFocusIndex() |
|
71 // -------------------------------------------------------------------------- |
|
72 // |
|
73 void CMSParameterAgent::SetMainViewFocusIndex( TInt aIndex ) |
|
74 { |
|
75 TRACE( Print(_L("[MediaServant]\t CMSParameterAgent::\ |
|
76 SetMainViewFocusIndex %d"), aIndex) ); |
|
77 |
|
78 iMainViewFocusIndex = aIndex; |
|
79 } |
|
80 |
|
81 // -------------------------------------------------------------------------- |
|
82 // CMSParameterAgent::MainViewFocusIndex() |
|
83 // -------------------------------------------------------------------------- |
|
84 // |
|
85 TInt CMSParameterAgent::MainViewFocusIndex() const |
|
86 { |
|
87 TRACE( Print(_L("[MediaServant]\t CMSParameterAgent::\ |
|
88 MainViewFocusIndex %d"), iMainViewFocusIndex) ); |
|
89 |
|
90 return iMainViewFocusIndex; |
|
91 } |
|
92 |
|
93 // -------------------------------------------------------------------------- |
|
94 // CMSParameterAgent::SetFillViewFocusIndex() |
|
95 // -------------------------------------------------------------------------- |
|
96 // |
|
97 void CMSParameterAgent::SetFillViewFocusIndex( TInt aIndex ) |
|
98 { |
|
99 TRACE( Print(_L("[MediaServant]\t CMSParameterAgent::\ |
|
100 SetFillViewFocusIndex %d"), aIndex ) ); |
|
101 |
|
102 iFillViewFocusIndex = aIndex; |
|
103 } |
|
104 |
|
105 // -------------------------------------------------------------------------- |
|
106 // CMSParameterAgent::FillViewFocusIndex() |
|
107 // -------------------------------------------------------------------------- |
|
108 // |
|
109 TInt CMSParameterAgent::FillViewFocusIndex() const |
|
110 { |
|
111 TRACE( Print(_L("[MediaServant]\t CMSParameterAgent::\ |
|
112 FillViewFocusIndex %d"), iFillViewFocusIndex )); |
|
113 |
|
114 return iFillViewFocusIndex; |
|
115 } |
|
116 |
|
117 // -------------------------------------------------------------------------- |
|
118 // CMSParameterAgent::SetStoreViewFocusIndex() |
|
119 // -------------------------------------------------------------------------- |
|
120 // |
|
121 void CMSParameterAgent::SetStoreViewFocusIndex( TInt aIndex ) |
|
122 { |
|
123 TRACE( Print(_L("[MediaServant]\t CMSParameterAgent::\ |
|
124 SetStoreViewFocusIndex %d"), aIndex ) ); |
|
125 |
|
126 iStoreViewFocusIndex = aIndex; |
|
127 } |
|
128 |
|
129 // -------------------------------------------------------------------------- |
|
130 // CMSParameterAgent::StoreViewFocusIndex() |
|
131 // -------------------------------------------------------------------------- |
|
132 // |
|
133 TInt CMSParameterAgent::StoreViewFocusIndex() const |
|
134 { |
|
135 TRACE( Print(_L("[MediaServant]\t CMSParameterAgent::\ |
|
136 StoreViewFocusIndex %d"), iStoreViewFocusIndex) ); |
|
137 |
|
138 return iStoreViewFocusIndex; |
|
139 } |
|
140 // -------------------------------------------------------------------------- |
|
141 // CMSParameterAgent::SetPreviousViewId() |
|
142 // -------------------------------------------------------------------------- |
|
143 // |
|
144 void CMSParameterAgent::SetPreviousViewId( TUid aViewId ) |
|
145 { |
|
146 LOG(_L("[MediaServant]\t CMSParameterAgent::SetPreviousViewId")); |
|
147 |
|
148 iPreviousViewId = aViewId; |
|
149 } |
|
150 |
|
151 // -------------------------------------------------------------------------- |
|
152 // CMSParameterAgent::PreviousViewId() |
|
153 // -------------------------------------------------------------------------- |
|
154 // |
|
155 TUid CMSParameterAgent::PreviousViewId() const |
|
156 { |
|
157 LOG(_L("[MediaServant]\t CMSParameterAgent::PreviousViewId")); |
|
158 |
|
159 return iPreviousViewId; |
|
160 } |
|
161 |
|
162 // -------------------------------------------------------------------------- |
|
163 // CMSParameterAgent::SetBrowseTarget() |
|
164 // -------------------------------------------------------------------------- |
|
165 // |
|
166 void CMSParameterAgent::SetBrowseTarget( |
|
167 TMSBrowseTarget aBrowseTarget ) |
|
168 { |
|
169 LOG(_L("[MediaServant]\t CMSParameterAgent::SetBrowseTarget")); |
|
170 |
|
171 iBrowseTarget = aBrowseTarget; |
|
172 } |
|
173 |
|
174 // -------------------------------------------------------------------------- |
|
175 // CMSParameterAgent::GetBrowseTarget() |
|
176 // -------------------------------------------------------------------------- |
|
177 // |
|
178 TMSBrowseTarget CMSParameterAgent::GetBrowseTarget() const |
|
179 { |
|
180 LOG(_L("[MediaServant]\t CMSParameterAgent::GetBrowseTarget")); |
|
181 |
|
182 return iBrowseTarget; |
|
183 } |
|
184 |
|
185 // End of File |
|
186 |
|