equal
deleted
inserted
replaced
|
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 "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: Codec to pack and unpack event objects. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef XIMPEVENTCODEC_H |
|
19 #define XIMPEVENTCODEC_H |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 class CXIMPApiEventBase; |
|
24 class RReadStream; |
|
25 |
|
26 |
|
27 /** |
|
28 * Codec to pack and unpack event objects. |
|
29 * |
|
30 * @lib ximpdatamodel.dll |
|
31 * @since S60 v3.2 |
|
32 */ |
|
33 NONSHARABLE_CLASS( XIMPEventCodec ) |
|
34 { |
|
35 public: |
|
36 |
|
37 /** |
|
38 * |
|
39 * |
|
40 * |
|
41 * @param |
|
42 * |
|
43 * @return |
|
44 * |
|
45 */ |
|
46 IMPORT_C static HBufC8* PackL( CXIMPApiEventBase& aEventObj, |
|
47 TInt32& aTypeOfEvent ); |
|
48 IMPORT_C static void PackL( CXIMPApiEventBase& aEventObj, |
|
49 TInt32& aTypeOfEvent, |
|
50 CBufFlat* aBuffer ); |
|
51 |
|
52 /** |
|
53 * |
|
54 * |
|
55 * |
|
56 * @param |
|
57 * |
|
58 * @return |
|
59 * |
|
60 */ |
|
61 IMPORT_C static CXIMPApiEventBase* UnPackL( const TDesC8& aEventData, |
|
62 TInt32& aTypeOfEvent ); |
|
63 |
|
64 |
|
65 private: |
|
66 |
|
67 XIMPEventCodec(); |
|
68 ~XIMPEventCodec(); |
|
69 |
|
70 }; |
|
71 |
|
72 |
|
73 #endif // XIMPEVENTCODEC_H |