|
1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Encapsulates data which identifies VOD download.* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include "TIptvVodDlDownloadId.h" |
|
23 |
|
24 // ============================= LOCAL FUNCTIONS =============================== |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // TIptvVodDlDownloadId::InternalizeL |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 EXPORT_C void TIptvVodDlDownloadId::InternalizeL(RReadStream& aStream) |
|
33 { |
|
34 iServiceIdAndContentIdAreValid = static_cast<TBool>(aStream.ReadUint8L()); |
|
35 iServiceId = aStream.ReadUint32L(); |
|
36 iContentId = aStream.ReadUint32L(); |
|
37 iFileIdAndDriveAreValid = static_cast<TBool>(aStream.ReadUint8L()); |
|
38 iFileId = aStream.ReadUint32L(); |
|
39 iDrive = aStream.ReadUint32L(); |
|
40 } |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // TIptvVodDlDownloadId::ExternalizeL |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 EXPORT_C void TIptvVodDlDownloadId::ExternalizeL(RWriteStream& aStream) |
|
47 { |
|
48 aStream.WriteUint8L(static_cast<TUint8>(iServiceIdAndContentIdAreValid)); |
|
49 aStream.WriteUint32L(iServiceId); |
|
50 aStream.WriteUint32L(iContentId); |
|
51 aStream.WriteUint8L(static_cast<TUint8>(iFileIdAndDriveAreValid)); |
|
52 aStream.WriteUint32L(iFileId); |
|
53 aStream.WriteUint32L(iDrive); |
|
54 } |
|
55 |
|
56 // ----------------------------------------------------------------------------- |
|
57 // TIptvVodDlDownloadId::CountExternalizeSize |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 EXPORT_C TUint32 TIptvVodDlDownloadId::CountExternalizeSize() |
|
61 { |
|
62 const TInt KExternalizeSize = 1+4+4+1+4+4; |
|
63 return KExternalizeSize; |
|
64 } |
|
65 |
|
66 // ----------------------------------------------------------------------------- |
|
67 // TIptvVodDlDownloadId::Set |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 EXPORT_C void TIptvVodDlDownloadId::Set(TIptvVodDlDownloadId& aDownloadId) |
|
71 { |
|
72 iServiceIdAndContentIdAreValid = aDownloadId.iServiceIdAndContentIdAreValid; |
|
73 iServiceId = aDownloadId.iServiceId; |
|
74 iContentId = aDownloadId.iContentId; |
|
75 iFileIdAndDriveAreValid = aDownloadId.iFileIdAndDriveAreValid; |
|
76 iFileId = aDownloadId.iFileId; |
|
77 iDrive = aDownloadId.iDrive; |
|
78 } |
|
79 |
|
80 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
81 |
|
82 // End of File |