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