1 /* |
|
2 * Copyright (c) 2007-2008 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: oss presence features implementation for XIMP Framework |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __COSSPROTOCOLPRESENCERFEATURES_H__ |
|
20 #define __COSSPROTOCOLPRESENCERFEATURES_H__ |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <protocolpresencefeatures.h> |
|
25 #include <protocolpresencewatching.h> |
|
26 #include <protocolpresencepublishing.h> |
|
27 #include <protocolpresentitygroups.h> |
|
28 #include <protocolpresenceauthorization.h> |
|
29 #include "cossprotocolconnectionmanager.h" |
|
30 class COSSProtocolPresentityGroups; |
|
31 class COSSProtocolpresentitygroups; |
|
32 class COssProtocolPresencePublishing; |
|
33 class COssProtocolPresenceAuthorization; |
|
34 /** |
|
35 * COSSProtocolPresenceFeatures |
|
36 * |
|
37 * COSSProtocolPresenceFeatures provide |
|
38 * access following feature specific sub-interfaces: |
|
39 * - MProtocolPresenceWatching |
|
40 * - MProtocolPresencePublishing |
|
41 * - MProtocolPresentityGroups |
|
42 * - MProtocolPresenceAuthorization |
|
43 * |
|
44 */ |
|
45 class COSSProtocolPresenceFeatures : |
|
46 public CBase, |
|
47 public MProtocolPresenceFeatures |
|
48 { |
|
49 |
|
50 public: |
|
51 |
|
52 static COSSProtocolPresenceFeatures* NewL( COSSProtocolConnectionManager& aConnMan ); |
|
53 |
|
54 |
|
55 ~COSSProtocolPresenceFeatures(); |
|
56 |
|
57 private: |
|
58 |
|
59 COSSProtocolPresenceFeatures(); |
|
60 |
|
61 |
|
62 void ConstructL( COSSProtocolConnectionManager& aConnMan ); |
|
63 |
|
64 public: // from MXIMPBase |
|
65 /** |
|
66 * @see MXIMPBase |
|
67 */ |
|
68 TAny* GetInterface( TInt32 aInterfaceId, |
|
69 TIfGetOps aOptions ); |
|
70 /** |
|
71 * @see MXIMPBase |
|
72 */ |
|
73 const TAny* GetInterface( TInt32 aInterfaceId, |
|
74 TIfGetOps aOptions ) const; |
|
75 |
|
76 /** |
|
77 * @see MXIMPBase |
|
78 */ |
|
79 TInt32 GetInterfaceId() const; |
|
80 |
|
81 public : // From MProtocolPresenceFeatures |
|
82 |
|
83 /** |
|
84 * @see MProtocolPresenceFeatures |
|
85 */ |
|
86 MProtocolPresenceWatching& PresenceWatching(); |
|
87 /** |
|
88 * @see MProtocolPresenceFeatures |
|
89 */ |
|
90 MProtocolPresencePublishing& PresencePublishing(); |
|
91 /** |
|
92 * @see MProtocolPresenceFeatures |
|
93 */ |
|
94 MProtocolPresentityGroups& PresentityGroups(); |
|
95 /** |
|
96 * @see MProtocolPresenceFeatures |
|
97 */ |
|
98 MProtocolPresenceAuthorization& PresenceAuthorization(); |
|
99 |
|
100 private : //data members |
|
101 /** |
|
102 * presentity group |
|
103 * Own |
|
104 */ |
|
105 COSSProtocolpresentitygroups* iPresentityGroups; |
|
106 /** |
|
107 * presence publishing |
|
108 * Own |
|
109 */ |
|
110 COssProtocolPresencePublishing* iPresencePublishing; |
|
111 /** |
|
112 * presence authorisation |
|
113 * Own |
|
114 */ |
|
115 COssProtocolPresenceAuthorization* iAuthrozation; |
|
116 |
|
117 }; |
|
118 |
|
119 #endif //__COSSPROTOCOLPRESENCERFEATURES_H__ |
|
120 |
|
121 // end of file |
|