equal
deleted
inserted
replaced
73 mMsg.ReadL(1, height); |
73 mMsg.ReadL(1, height); |
74 path.CreateL(mMsg.GetDesLengthL(2)); |
74 path.CreateL(mMsg.GetDesLengthL(2)); |
75 mMsg.ReadL(2, path); |
75 mMsg.ReadL(2, path); |
76 mime.CreateL(mMsg.GetDesLengthL(3)); |
76 mime.CreateL(mMsg.GetDesLengthL(3)); |
77 mMsg.ReadL(3, mime); |
77 mMsg.ReadL(3, mime); |
78 if(0 >= width() || |
78 |
79 0 >=height() || |
|
80 0 >= path.Length() || |
|
81 0 >= mime.Length() |
|
82 ) { |
|
83 User::Leave(KErrCorrupt); |
|
84 } |
|
85 |
|
86 mService = CGraphicsSalingHandler::NewL(*this, |
79 mService = CGraphicsSalingHandler::NewL(*this, |
87 session, |
80 session, |
88 path, |
81 path, |
89 mime, |
82 mime, |
90 TSize(width(), height()), |
83 TSize(width(), height()), |
98 // |
91 // |
99 // ----------------------------------------------------------------------------- |
92 // ----------------------------------------------------------------------------- |
100 // |
93 // |
101 void CActivityThumbnailTask::ImageReadyCallBack(TInt error,const CFbsBitmap *bitmap) |
94 void CActivityThumbnailTask::ImageReadyCallBack(TInt error,const CFbsBitmap *bitmap) |
102 { |
95 { |
103 if (KErrNone == error) { |
96 if (EFalse == mMsg.IsNull() && |
|
97 KErrNone == error) { |
104 mMsg.Write(0, TPckgBuf<int>(const_cast<CFbsBitmap*>(bitmap)->Handle())); |
98 mMsg.Write(0, TPckgBuf<int>(const_cast<CFbsBitmap*>(bitmap)->Handle())); |
105 mMsg.Write(1, TPckgBuf<void *>(this)); |
99 mMsg.Write(1, TPckgBuf<void *>(this)); |
106 mMsg.Complete(error); |
100 mMsg.Complete(error); |
107 } else { |
101 } else { |
108 mMsg.Complete(error); |
102 if (EFalse == mMsg.IsNull()) { |
|
103 mMsg.Complete(error); |
|
104 } |
109 mStorage.Pop(this); |
105 mStorage.Pop(this); |
110 delete this; |
106 delete this; |
111 } |
107 } |
112 } |
108 } |
113 |
109 |
122 |
118 |
123 // ----------------------------------------------------------------------------- |
119 // ----------------------------------------------------------------------------- |
124 // |
120 // |
125 // ----------------------------------------------------------------------------- |
121 // ----------------------------------------------------------------------------- |
126 // |
122 // |
127 void CActivityThumbnailTask::BroadcastReceivedL(const RMessage2& ) |
123 void CActivityThumbnailTask::BroadcastReceivedL(const RMessage2&) |
128 { |
124 { |
129 } |
125 } |
130 |
126 |