equal
deleted
inserted
replaced
31 * @param source - thumbnail source location |
31 * @param source - thumbnail source location |
32 * @param userData - rsponse user data |
32 * @param userData - rsponse user data |
33 */ |
33 */ |
34 void CAfThumbnailRequestPrivate::NewLD(MAfAsyncRequestObserver &observer, |
34 void CAfThumbnailRequestPrivate::NewLD(MAfAsyncRequestObserver &observer, |
35 MAfAsyncSession & session, |
35 MAfAsyncSession & session, |
36 TSize resolution, |
|
37 const TDesC& source, |
36 const TDesC& source, |
38 TAny* userData) |
37 TAny* userData) |
39 { |
38 { |
40 CAfThumbnailRequestPrivate* self = new(ELeave)CAfThumbnailRequestPrivate(observer, session, userData); |
39 CAfThumbnailRequestPrivate* self = new(ELeave)CAfThumbnailRequestPrivate(observer, session, userData); |
41 CleanupStack::PushL(self); |
40 CleanupStack::PushL(self); |
42 self->ConstructL(resolution, source); |
41 self->ConstructL(source); |
43 session.PushL(self); |
42 session.PushL(self); |
44 CleanupStack::Pop(self); |
43 CleanupStack::Pop(self); |
45 } |
44 } |
46 |
45 |
47 // ----------------------------------------------------------------------------- |
46 // ----------------------------------------------------------------------------- |
64 } |
63 } |
65 |
64 |
66 // ----------------------------------------------------------------------------- |
65 // ----------------------------------------------------------------------------- |
67 /** |
66 /** |
68 * Second phase constructor |
67 * Second phase constructor |
69 * @param resolution - requested thumbnail resolution |
|
70 * @param source - thumbnail source location |
68 * @param source - thumbnail source location |
71 */ |
69 */ |
72 void CAfThumbnailRequestPrivate::ConstructL(TSize resolution, const TDesC& source) |
70 void CAfThumbnailRequestPrivate::ConstructL(const TDesC& source) |
73 { |
71 { |
74 mIds[0] = resolution.iWidth; |
72 mIds[0] = 0; |
75 mIds[1] = resolution.iHeight; |
73 mIds[1] = 0; |
76 CAfEntry::CopyL(mImgSrc, source); |
74 CAfEntry::CopyL(mImgSrc, source); |
77 mSession.sendAsync(GetThumbnail, |
75 mSession.sendAsync(GetThumbnail, |
78 TIpcArgs(&mIds[0],&mIds[1], &mImgSrc), |
76 TIpcArgs(&mIds[0],&mIds[1], &mImgSrc), |
79 iStatus); |
77 iStatus); |
80 SetActive(); |
78 SetActive(); |