|
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: Implementation of MPersonPresenceInfo object. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPERSONPRESENCEINFOIMP_H |
|
19 #define CPERSONPRESENCEINFOIMP_H |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <s32strm.h> |
|
23 #include <ximpbase.h> |
|
24 #include <personpresenceinfo.h> |
|
25 #include "ximpapidataobjbase.h" |
|
26 #include "presenceapiobjbase.h" |
|
27 |
|
28 |
|
29 class CPresenceInfoFieldCollectionImp; |
|
30 class CPresenceInfoFilterImp; |
|
31 |
|
32 /** |
|
33 * Implementation of MPersonPresenceInfo object. |
|
34 * |
|
35 * @since S60 v3.2 |
|
36 */ |
|
37 NONSHARABLE_CLASS( CPersonPresenceInfoImp ): public CXIMPApiDataObjBase, |
|
38 public MPersonPresenceInfo |
|
39 { |
|
40 public: |
|
41 |
|
42 /** The class ID. */ |
|
43 enum { KClassId = PRIMP_CLSID_CPERSONPRESENCEINFOIMP }; |
|
44 |
|
45 public: |
|
46 |
|
47 IMPORT_C static CPersonPresenceInfoImp* NewLC(); |
|
48 |
|
49 virtual ~CPersonPresenceInfoImp(); |
|
50 |
|
51 private: |
|
52 |
|
53 CPersonPresenceInfoImp(); |
|
54 void ConstructL(); |
|
55 |
|
56 /** |
|
57 * @see CXIMPApiDataObjBase |
|
58 */ |
|
59 XIMPIMP_DECLARE_DATAOBJ_BASE_PRIV_METHODS |
|
60 |
|
61 public: // From MXIMPBase |
|
62 |
|
63 /** |
|
64 * Implementation of MXIMPBase interface methods |
|
65 * @see MXIMPBase |
|
66 */ |
|
67 XIMPIMP_DECLARE_IF_BASE_METHODS |
|
68 |
|
69 /** |
|
70 * @see CXIMPApiDataObjBase |
|
71 */ |
|
72 XIMPIMP_DECLARE_DATAOBJ_BASE_METHODS |
|
73 |
|
74 public: // New functions |
|
75 |
|
76 /** |
|
77 * Internalizes object data from given stream. |
|
78 * @param aStream Stream to read. |
|
79 */ |
|
80 IMPORT_C void InternalizeL( RReadStream& aStream ); |
|
81 |
|
82 |
|
83 public: // from MPersonPresenceInfo |
|
84 |
|
85 /** |
|
86 * @see MPersonPresenceInfo |
|
87 */ |
|
88 const MPresenceInfoFieldCollection& Fields() const; |
|
89 MPresenceInfoFieldCollection& Fields(); |
|
90 |
|
91 public: // new methods |
|
92 |
|
93 /** |
|
94 * Remove from this info field implementation the fields which do not match |
|
95 * the given filter. |
|
96 * @param aFilter The filter implementation |
|
97 */ |
|
98 void FilterWithL( const CPresenceInfoFilterImp& aFilter ); |
|
99 |
|
100 private: // data |
|
101 |
|
102 // owned |
|
103 CPresenceInfoFieldCollectionImp* iFields; |
|
104 }; |
|
105 |
|
106 |
|
107 #endif // CPERSONPRESENCEINFOIMP_H |
|
108 |
|
109 |
|
110 |