|
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: Presence to everyone configuration item |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPSCPRESENCETOEVERYONECONFIGURATIONITEM_H |
|
19 #define CPSCPRESENCETOEVERYONECONFIGURATIONITEM_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include "ximpconfigurationitembase.h" |
|
23 |
|
24 class CPresenceInfoFilterImp; |
|
25 |
|
26 /** |
|
27 * Presence to everyone configuration item |
|
28 * |
|
29 * @since S60 v3.2 |
|
30 */ |
|
31 class CPresenceToEveryoneConfigurationItem : public CXIMPConfigurationItemBase |
|
32 { |
|
33 public: // Construction and destruction |
|
34 |
|
35 /** |
|
36 * Construction |
|
37 * @param aParent. Parent has to be informed when this object is deleted by RemoveMe method. |
|
38 */ |
|
39 static CPresenceToEveryoneConfigurationItem* NewLC( MXIMPItemParentBase& aParent ); |
|
40 |
|
41 /** |
|
42 * Destruction |
|
43 * - Remember to inform parent about delete. |
|
44 */ |
|
45 ~CPresenceToEveryoneConfigurationItem(); |
|
46 |
|
47 private: // Construction and destruction |
|
48 |
|
49 /** |
|
50 * Construction |
|
51 * @param aParent. Parent has to be informed when this object is deleted by RemoveMe method. |
|
52 */ |
|
53 CPresenceToEveryoneConfigurationItem( MXIMPItemParentBase& aParent ); |
|
54 |
|
55 /** |
|
56 * Construction |
|
57 */ |
|
58 void ConstructL(); |
|
59 |
|
60 public: // New methods |
|
61 |
|
62 /** |
|
63 * Current presence information filter. |
|
64 * @return Current presence information filter. |
|
65 */ |
|
66 IMPORT_C CPresenceInfoFilterImp& ConfigurationPif(); |
|
67 |
|
68 /** |
|
69 * Set current presence information filter. Overwrites existing one. |
|
70 * Ownership is transferred to callee. |
|
71 * @param aPif Current presence information filter. |
|
72 */ |
|
73 IMPORT_C void SetConfigurationPif( CPresenceInfoFilterImp* aPif ); |
|
74 |
|
75 /** |
|
76 * Collect aggregated presence information filter without given context. |
|
77 * @param aContext. Exluded context from aggregated pif. |
|
78 * @return Aggregated pif without exluded context. |
|
79 */ |
|
80 IMPORT_C CPresenceInfoFilterImp* CollectConfigurationPifWithoutCtxL( |
|
81 MXIMPPscContext* aContext ); |
|
82 |
|
83 |
|
84 public: // From MXIMPSubscriptionItem |
|
85 |
|
86 /** |
|
87 * @see MXIMPSubscriptionItem |
|
88 */ |
|
89 void SynthesiseSubscriptionEventToL( MXIMPPscContext* aContext, TBool aForceEvent ); |
|
90 |
|
91 public: // From MXIMPConfigurationItem |
|
92 |
|
93 private: // From CXIMPSubscriptionItemBase |
|
94 |
|
95 /** |
|
96 * @see CXIMPSubscriptionItemBase |
|
97 */ |
|
98 void CleanExpired(); |
|
99 |
|
100 private: // Data |
|
101 |
|
102 /** |
|
103 * Current presence information filter. |
|
104 */ |
|
105 CPresenceInfoFilterImp* iPif; |
|
106 }; |
|
107 |
|
108 |
|
109 /* ======================================================================== */ |
|
110 |
|
111 |
|
112 |
|
113 #endif // CPSCPRESENCETOEVERYONECONFIGURATIONITEM_H |