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