|
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: Data object sent in download request.* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CIPTVVODDLDOWNLOADREQ_H |
|
21 #define CIPTVVODDLDOWNLOADREQ_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 #include "CIptvUtil.h" |
|
26 #include <s32mem.h> |
|
27 #include "MIptvStreamObject.h" |
|
28 |
|
29 // CLASS DECLARATION |
|
30 /** |
|
31 * Used for IPC communication. Encapsulates download request parameters. |
|
32 */ |
|
33 class CIptvVodDlDownloadReq : public CBase, public MIptvStreamObject |
|
34 { |
|
35 public: |
|
36 /** |
|
37 * Two-phased constructor. |
|
38 * @param |
|
39 */ |
|
40 IMPORT_C static CIptvVodDlDownloadReq* NewL(); |
|
41 |
|
42 /** |
|
43 * Read data and construct this item from it. |
|
44 * @param |
|
45 */ |
|
46 IMPORT_C void InternalizeL(RReadStream& aStream); |
|
47 |
|
48 |
|
49 /** |
|
50 * Write internal data to binary format which can be sent over IPC. |
|
51 * @param |
|
52 */ |
|
53 IMPORT_C void ExternalizeL(RWriteStream& aStream); |
|
54 |
|
55 /** |
|
56 * Counts size of the externalize result. User can call this to find out |
|
57 * how much data will be received from ExternalizeL. |
|
58 */ |
|
59 IMPORT_C TUint32 CountExternalizeSize(); |
|
60 |
|
61 /** |
|
62 * Destructor. |
|
63 */ |
|
64 ~CIptvVodDlDownloadReq(); |
|
65 |
|
66 private: // New functions |
|
67 /** |
|
68 * C++ default constructor. |
|
69 */ |
|
70 CIptvVodDlDownloadReq(); |
|
71 |
|
72 /** |
|
73 * By default Symbian 2nd phase constructor is private. |
|
74 * @param |
|
75 */ |
|
76 void ConstructL(); |
|
77 |
|
78 public: // Data members |
|
79 |
|
80 /** |
|
81 * Service provider ID identifier. |
|
82 */ |
|
83 TIptvServiceId iServiceId; |
|
84 |
|
85 /** |
|
86 * Content ID. |
|
87 */ |
|
88 TIptvContentId iContentId; |
|
89 |
|
90 TUint32 iIapId; |
|
91 TUint32 iIndex; |
|
92 |
|
93 /** |
|
94 * Download type flags: EDlTypeStream|Immediate.. |
|
95 */ |
|
96 TIptvDownloadType iDlType; |
|
97 |
|
98 }; |
|
99 |
|
100 #endif // CIPTVVODDLDOWNLOADREQ.H |
|
101 |
|
102 // End of File |