equal
deleted
inserted
replaced
70 * 2nd phase of construction |
70 * 2nd phase of construction |
71 */ |
71 */ |
72 void CAfStorageClientPrivate::ConstructL() |
72 void CAfStorageClientPrivate::ConstructL() |
73 { |
73 { |
74 mImplementation.connectL(); |
74 mImplementation.connectL(); |
75 } |
|
76 |
|
77 // ----------------------------------------------------------------------------- |
|
78 /** |
|
79 * Function implementation |
|
80 * @see AfStorageClient::addActivity(const CAfEntry &,const QPixmap&) |
|
81 */ |
|
82 int CAfStorageClientPrivate::addActivity(const CAfEntry &entry, TInt imageHandle) |
|
83 { |
|
84 return execute(AddActivity, entry, imageHandle); |
|
85 } |
|
86 |
|
87 // ----------------------------------------------------------------------------- |
|
88 /** |
|
89 * Function implementation |
|
90 * @see AfStorageClient::updateActivity(const CAfEntry &,const QPixmap&) |
|
91 */ |
|
92 int CAfStorageClientPrivate::updateActivity(const CAfEntry &entry, TInt imageHandle) |
|
93 { |
|
94 return execute(UpdateActivity, entry, imageHandle); |
|
95 } |
75 } |
96 |
76 |
97 // ----------------------------------------------------------------------------- |
77 // ----------------------------------------------------------------------------- |
98 /** |
78 /** |
99 * Function implementation |
79 * Function implementation |
178 } |
158 } |
179 |
159 |
180 // ----------------------------------------------------------------------------- |
160 // ----------------------------------------------------------------------------- |
181 /** |
161 /** |
182 * Function implementation |
162 * Function implementation |
183 * @see AfStorageClient::getThumbnail(const TSize &size, const TDesC &imagePath, void *userData) |
163 * @see AfStorageClient::getThumbnail(const TDesC &imagePath, void *userData) |
184 */ |
164 */ |
185 int CAfStorageClientPrivate::getThumbnail(const TSize &size, const TDesC &imagePath, void *userData) |
165 int CAfStorageClientPrivate::getThumbnail(const TDesC &imagePath, void *userData) |
186 { |
166 { |
187 TRAPD(errNo, mImplementation.getThumbnailL(size, imagePath, userData);) |
167 TRAPD(errNo, mImplementation.getThumbnailL(imagePath, userData);) |
188 return errNo; |
168 return errNo; |
189 } |
169 } |
190 |
170 |
191 // ----------------------------------------------------------------------------- |
171 // ----------------------------------------------------------------------------- |
192 /** |
172 /** |
217 */ |
197 */ |
218 int CAfStorageClientPrivate::execute(int function, const CAfEntry &sourceEntry, TInt imageHandle) |
198 int CAfStorageClientPrivate::execute(int function, const CAfEntry &sourceEntry, TInt imageHandle) |
219 { |
199 { |
220 TRAPD(errNo, |
200 TRAPD(errNo, |
221 switch (function) { |
201 switch (function) { |
222 case AddActivity: |
|
223 case UpdateActivity: |
|
224 case SaveActivity: |
202 case SaveActivity: |
225 case RemoveActivity: |
203 case RemoveActivity: |
226 case RemoveApplicationActivities: |
204 case RemoveApplicationActivities: |
227 case LaunchActivity: |
205 case LaunchActivity: |
228 mImplementation.executeL(function, sourceEntry, imageHandle); |
206 mImplementation.executeL(function, sourceEntry, imageHandle); |