|
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: Event object interface.* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CIPTVEVENT_H |
|
22 #define CIPTVEVENT_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include "CIptvUtil.h" |
|
27 #include "MIptvStreamObject.h" |
|
28 |
|
29 // CONSTANTS |
|
30 |
|
31 // MACROS |
|
32 |
|
33 // DATA TYPES |
|
34 |
|
35 // FUNCTION PROTOTYPES |
|
36 |
|
37 // FORWARD DECLARATIONS |
|
38 |
|
39 // CLASS DECLARATION |
|
40 class RDesReadStream; |
|
41 class RDesWriteStream; |
|
42 |
|
43 /** |
|
44 * Interface class which defines common functions for event objects. |
|
45 * This class is used when sending events from CIptvEventGenerator to CIptvEventListener. |
|
46 */ |
|
47 class MIptvEvent : public MIptvStreamObject |
|
48 { |
|
49 public: // New functions |
|
50 |
|
51 //From MIptvStreamObject |
|
52 virtual void InternalizeL(RReadStream& aStream) = 0; |
|
53 virtual void ExternalizeL(RWriteStream& aStream) = 0; |
|
54 virtual TUint32 CountExternalizeSize() = 0; |
|
55 |
|
56 /** |
|
57 * Constructs copy of this object and returns pointer to it. |
|
58 * Ownership moves to caller. |
|
59 */ |
|
60 virtual MIptvEvent* GetCopyL() = 0; |
|
61 |
|
62 /** |
|
63 * CIptvEvents needs to destruct MIptvEvent type class |
|
64 */ |
|
65 virtual void Destruct() = 0; |
|
66 |
|
67 }; |
|
68 |
|
69 #endif // CIPTVEVENT_H |
|
70 |
|
71 // End of File |