|
1 /* |
|
2 * Copyright (c) 2006, 2007 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 MXIMPContext |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPRESENCEFEATURESIMP_H |
|
19 #define CPRESENCEFEATURESIMP_H |
|
20 |
|
21 #include <presencefeatures.h> |
|
22 #include "ximpapiobjbase.h" |
|
23 #include "presenceapiobjbase.h" |
|
24 |
|
25 class CPresencePublishingImp; |
|
26 class CPresenceObjectFactoryImp; |
|
27 class CPresentityGroupsImp; |
|
28 class CPresenceWatchingImp; |
|
29 class CPresenceAuthorizationImp; |
|
30 class MXIMPContext; |
|
31 class MXIMPContextInternal; |
|
32 |
|
33 |
|
34 /** |
|
35 * MXIMPContext API object implementation. |
|
36 * |
|
37 * @lib ximpmanager.dll |
|
38 * @since S60 v3.2 |
|
39 */ |
|
40 NONSHARABLE_CLASS( CPresenceFeaturesImp ): public MPresenceFeatures, |
|
41 public CXIMPApiObjBase |
|
42 |
|
43 { |
|
44 public: |
|
45 /** The class ID. */ |
|
46 enum { KClassId = PRIMP_CLSID_CPRESENCEFEATURESIMP }; |
|
47 |
|
48 |
|
49 public: |
|
50 |
|
51 IMPORT_C static CPresenceFeaturesImp* NewL( MXIMPContext* aContext ); |
|
52 virtual ~CPresenceFeaturesImp(); |
|
53 |
|
54 |
|
55 private: |
|
56 |
|
57 CPresenceFeaturesImp(); |
|
58 void SetCtxL(MXIMPContext* aContext); |
|
59 void ConstructL(MXIMPContext* aContext); |
|
60 |
|
61 |
|
62 public: // From MXIMPBase |
|
63 |
|
64 /** |
|
65 * Implementation of MXIMPBase interface methods |
|
66 * @see MXIMPBase |
|
67 */ |
|
68 XIMPIMP_DECLARE_IF_BASE_METHODS |
|
69 |
|
70 |
|
71 public: //From MPresenceFeatures |
|
72 |
|
73 |
|
74 MPresenceObjectFactory& PresenceObjectFactory() const; |
|
75 MPresenceWatching& PresenceWatching() const; |
|
76 MPresencePublishing& PresencePublishing() const; |
|
77 MPresentityGroups& PresentityGroups() const; |
|
78 MPresenceAuthorization& PresenceAuthorization() const; |
|
79 |
|
80 //private: // Helpers |
|
81 |
|
82 /** |
|
83 * Converts a string to a uid. |
|
84 * String must be in Hex and begin with "0x". |
|
85 */ |
|
86 //void ConvertStringToUidL( const TDesC8& aData, TUid& aUid ); |
|
87 |
|
88 |
|
89 private: // data |
|
90 |
|
91 /** |
|
92 * Context for having a connection context server. |
|
93 */ |
|
94 MXIMPContextInternal* iCtxInternal; |
|
95 |
|
96 |
|
97 /** |
|
98 * Object factory sub interface. |
|
99 */ |
|
100 CPresenceObjectFactoryImp* iPresObjFactory; |
|
101 |
|
102 /** |
|
103 * Own presence management sub interface. |
|
104 */ |
|
105 CPresencePublishingImp* iPresPub; |
|
106 |
|
107 /** |
|
108 * Presentity group management sub interface |
|
109 */ |
|
110 CPresentityGroupsImp* iPresGroup; |
|
111 |
|
112 /** |
|
113 * Presence watching management sub interface |
|
114 */ |
|
115 CPresenceWatchingImp* iPresWatch; |
|
116 |
|
117 /** |
|
118 * Presence authorization management sub interface |
|
119 */ |
|
120 CPresenceAuthorizationImp* iPresAuth; |
|
121 |
|
122 /** |
|
123 * Event pump. |
|
124 * Own. |
|
125 */ |
|
126 // CXIMPContextEventPump* iEventPump; |
|
127 }; |
|
128 |
|
129 |
|
130 #endif // CPRESENCEFEATURESIMP_H |