equal
deleted
inserted
replaced
15 * Implementation of class CDownloadDataClient. |
15 * Implementation of class CDownloadDataClient. |
16 * |
16 * |
17 * |
17 * |
18 */ |
18 */ |
19 |
19 |
20 |
|
21 // INCLUDE FILES |
20 // INCLUDE FILES |
22 |
21 |
23 #include <s32mem.h> |
22 #include <s32mem.h> |
24 #include "DownloadDataClient.h" |
23 #include "DownloadDataClient.h" |
25 #include "CodData.h" |
24 #include "CodData.h" |
26 #include "CodUtil.h" |
25 #include "CodUtil.h" |
27 |
26 |
28 // ================= CONSTANTS ======================= |
27 // ================= CONSTANTS ======================= |
29 |
28 |
30 |
|
31 // ================= MEMBER FUNCTIONS ======================= |
29 // ================= MEMBER FUNCTIONS ======================= |
32 |
30 |
33 |
|
34 // --------------------------------------------------------- |
31 // --------------------------------------------------------- |
35 // CMediaDataClient::NewL() |
32 // CMediaDataClient::NewL() |
36 // --------------------------------------------------------- |
33 // --------------------------------------------------------- |
37 // |
34 // |
38 CMediaDataClient* CMediaDataClient::NewL() |
35 CMediaDataClient* CMediaDataClient::NewL() |
106 bytes += iRedirUrl->Size(); |
103 bytes += iRedirUrl->Size(); |
107 bytes += sizeof(iMethod); |
104 bytes += sizeof(iMethod); |
108 bytes += sizeof(iRedirected); |
105 bytes += sizeof(iRedirected); |
109 bytes += iDestFilename->Size(); |
106 bytes += iDestFilename->Size(); |
110 bytes += sizeof(iDownloadedSize); |
107 bytes += sizeof(iDownloadedSize); |
111 bytes += sizeof(iDesRemovable); |
108 bytes += sizeof(iDesRemovableStatus); |
112 bytes += sizeof(iLastErrorId); |
109 bytes += sizeof(iLastErrorId); |
113 bytes += sizeof(iGlobalErrorId); |
110 bytes += sizeof(iGlobalErrorId); |
114 bytes += sizeof(iPausable); |
111 bytes += sizeof(iPausable); |
115 bytes += iTempFilename->Size(); |
112 bytes += iTempFilename->Size(); |
116 |
113 |
305 |
302 |
306 // --------------------------------------------------------- |
303 // --------------------------------------------------------- |
307 // CMediaDataClient::SetDesRemovable() |
304 // CMediaDataClient::SetDesRemovable() |
308 // --------------------------------------------------------- |
305 // --------------------------------------------------------- |
309 // |
306 // |
310 void CMediaDataClient::SetDesRemovable( TBool aDesRemovable ) |
307 void CMediaDataClient::SetDesRemovable( TInt32 aDesRemovable ) |
311 { |
308 { |
312 iDesRemovable = aDesRemovable; |
309 iDesRemovableStatus = aDesRemovable; |
313 } |
310 } |
314 |
311 |
315 // --------------------------------------------------------- |
312 // --------------------------------------------------------- |
316 // CMediaDataClient::SetLastErrorId() |
313 // CMediaDataClient::SetLastErrorId() |
317 // --------------------------------------------------------- |
314 // --------------------------------------------------------- |
318 // |
315 // |
500 |
497 |
501 // iDownloadedSize |
498 // iDownloadedSize |
502 aStream.WriteInt32L(iDownloadedSize); |
499 aStream.WriteInt32L(iDownloadedSize); |
503 |
500 |
504 // iDesRemovable |
501 // iDesRemovable |
505 aStream.WriteInt32L(iDesRemovable); |
502 aStream.WriteInt32L(iDesRemovableStatus); |
506 |
503 |
507 // iLastErrorId |
504 // iLastErrorId |
508 aStream.WriteInt32L(iLastErrorId); |
505 aStream.WriteInt32L(iLastErrorId); |
509 |
506 |
510 // iGlobalErrorId |
507 // iGlobalErrorId |