|
1 /* |
|
2 * Copyright (c) 2002-2004 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // ========== INCLUDE FILES =================================================== |
|
20 |
|
21 #include "AiFwTestContentPlugin5.h" |
|
22 #include "AiFwTestDefines.h" |
|
23 #include "AiFwTestContentModel.h" |
|
24 |
|
25 // ========== EXTERNAL DATA STRUCTURES ======================================== |
|
26 |
|
27 // ========== EXTERNAL FUNCTION PROTOTYPES ==================================== |
|
28 |
|
29 // ========== CONSTANTS ======================================================= |
|
30 |
|
31 // ========== MACROS ========================================================== |
|
32 |
|
33 // ========== LOCAL CONSTANTS AND MACROS ====================================== |
|
34 |
|
35 // ========== MODULE DATA STRUCTURES ========================================== |
|
36 |
|
37 // ========== LOCAL FUNCTION PROTOTYPES ======================================= |
|
38 |
|
39 // ========== FORWARD DECLARATIONS ============================================ |
|
40 |
|
41 // ========== LOCAL FUNCTIONS ================================================= |
|
42 |
|
43 // ========== MEMBER FUNCTIONS ================================================ |
|
44 |
|
45 // ---------------------------------------------------------------------------- |
|
46 // |
|
47 // |
|
48 // |
|
49 // ---------------------------------------------------------------------------- |
|
50 // |
|
51 CAiFwTestContentPlugin5::CAiFwTestContentPlugin5() |
|
52 {} |
|
53 |
|
54 // ---------------------------------------------------------------------------- |
|
55 // |
|
56 // |
|
57 // |
|
58 // ---------------------------------------------------------------------------- |
|
59 // |
|
60 void CAiFwTestContentPlugin5::ConstructL() |
|
61 { |
|
62 } |
|
63 |
|
64 // ---------------------------------------------------------------------------- |
|
65 // |
|
66 // |
|
67 // |
|
68 // ---------------------------------------------------------------------------- |
|
69 // |
|
70 CAiFwTestContentPlugin5* CAiFwTestContentPlugin5::NewL() |
|
71 { |
|
72 CAiFwTestContentPlugin5* self = new (ELeave) CAiFwTestContentPlugin5; |
|
73 |
|
74 CleanupStack::PushL(self); |
|
75 self->ConstructL(); |
|
76 CleanupStack::Pop(); |
|
77 |
|
78 return self; |
|
79 } |
|
80 |
|
81 // ---------------------------------------------------------------------------- |
|
82 // |
|
83 // |
|
84 // |
|
85 // ---------------------------------------------------------------------------- |
|
86 // |
|
87 CAiFwTestContentPlugin5::~CAiFwTestContentPlugin5() |
|
88 { |
|
89 } |
|
90 |
|
91 // ---------------------------------------------------------------------------- |
|
92 // |
|
93 // |
|
94 // |
|
95 // ---------------------------------------------------------------------------- |
|
96 // |
|
97 TInt CAiFwTestContentPlugin5::Callback(TAny* /*aPtr*/) |
|
98 { |
|
99 return KErrNone; |
|
100 } |
|
101 |
|
102 // ---------------------------------------------------------------------------- |
|
103 // |
|
104 // |
|
105 // |
|
106 // ---------------------------------------------------------------------------- |
|
107 // |
|
108 void CAiFwTestContentPlugin5::Resume(TAiTransitionReason /*aReason*/) |
|
109 { |
|
110 } |
|
111 |
|
112 // ---------------------------------------------------------------------------- |
|
113 // |
|
114 // |
|
115 // |
|
116 // ---------------------------------------------------------------------------- |
|
117 // |
|
118 void CAiFwTestContentPlugin5::Suspend(TAiTransitionReason /*aReason*/) |
|
119 { |
|
120 } |
|
121 |
|
122 // ---------------------------------------------------------------------------- |
|
123 // |
|
124 // |
|
125 // |
|
126 // ---------------------------------------------------------------------------- |
|
127 // |
|
128 void CAiFwTestContentPlugin5::Stop(TAiTransitionReason /*aReason*/) |
|
129 { |
|
130 } |
|
131 |
|
132 // ---------------------------------------------------------------------------- |
|
133 // |
|
134 // |
|
135 // |
|
136 // ---------------------------------------------------------------------------- |
|
137 // |
|
138 void CAiFwTestContentPlugin5::SubscribeL(MAiContentObserver& /*aObserver*/) |
|
139 { |
|
140 } |
|
141 |
|
142 // ---------------------------------------------------------------------------- |
|
143 // |
|
144 // |
|
145 // |
|
146 // ---------------------------------------------------------------------------- |
|
147 // |
|
148 void CAiFwTestContentPlugin5::ConfigureL(RAiSettingsItemArray& aSettings) |
|
149 { |
|
150 aSettings.ResetAndDestroy(); |
|
151 } |
|
152 |
|
153 // ---------------------------------------------------------------------------- |
|
154 // |
|
155 // |
|
156 // |
|
157 // ---------------------------------------------------------------------------- |
|
158 // |
|
159 TAny* CAiFwTestContentPlugin5::Extension(TUid aUid) |
|
160 { |
|
161 if (aUid == KExtensionUidProperty && !iFirstExt) |
|
162 { |
|
163 iFirstExt = ETrue; |
|
164 return static_cast<MAiPropertyExtension*>(this); |
|
165 } |
|
166 return NULL; |
|
167 } |
|
168 |
|
169 // ---------------------------------------------------------------------------- |
|
170 // |
|
171 // |
|
172 // |
|
173 // ---------------------------------------------------------------------------- |
|
174 // |
|
175 TAny* CAiFwTestContentPlugin5::GetPropertyL(TInt /*aProperty*/) |
|
176 { |
|
177 return NULL; |
|
178 } |
|
179 |
|
180 // ---------------------------------------------------------------------------- |
|
181 // |
|
182 // |
|
183 // |
|
184 // ---------------------------------------------------------------------------- |
|
185 // |
|
186 void CAiFwTestContentPlugin5::SetPropertyL(TInt /*aProperty*/, TAny* /*aValue*/) |
|
187 { |
|
188 User::Leave(KErrNotSupported); |
|
189 } |
|
190 |
|
191 // ---------------------------------------------------------------------------- |
|
192 // |
|
193 // |
|
194 // |
|
195 // ---------------------------------------------------------------------------- |
|
196 // |
|
197 void CAiFwTestContentPlugin5::HandleEvent(TInt /*aEvent*/, const TDesC& /*aParam*/) |
|
198 { |
|
199 } |
|
200 |
|
201 // ========== OTHER EXPORTED FUNCTIONS ======================================== |
|
202 |
|
203 // End of File. |