|
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 MPresencePublishing |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPRESENTITYGROUPSIMP_H |
|
19 #define CPRESENTITYGROUPSIMP_H |
|
20 |
|
21 #include <presentitygroups.h> |
|
22 #include "ximpapiobjbase.h" |
|
23 #include "presenceapiobjbase.h" |
|
24 #include "presenceoperationdefs.h" |
|
25 |
|
26 class MXIMPContextInternal; |
|
27 class CPresentityGroupInfoImp; |
|
28 |
|
29 /** |
|
30 * MPresencePublishing API object implementation. |
|
31 * |
|
32 * @lib ximpmanager.dll |
|
33 * @since S60 v3.2 |
|
34 */ |
|
35 NONSHARABLE_CLASS( CPresentityGroupsImp ): public CXIMPApiObjBase, |
|
36 public MPresentityGroups |
|
37 { |
|
38 public: |
|
39 /** The class ID. */ |
|
40 enum { KClassId = PRIMP_CLSID_CPRESENTITYGROUPSIMP }; |
|
41 |
|
42 |
|
43 public: |
|
44 static CPresentityGroupsImp* NewL( MXIMPContextInternal& aContext ); |
|
45 ~CPresentityGroupsImp(); |
|
46 |
|
47 |
|
48 public: |
|
49 CPresentityGroupsImp( MXIMPContextInternal& aContext ); |
|
50 |
|
51 |
|
52 public: // From MXIMPBase |
|
53 |
|
54 /** |
|
55 * Implementation of MXIMPBase interface methods |
|
56 * @see MXIMPBase |
|
57 */ |
|
58 XIMPIMP_DECLARE_IF_BASE_METHODS |
|
59 |
|
60 |
|
61 public: //From MPresentityGroups |
|
62 |
|
63 TXIMPRequestId SubscribePresentityGroupListL(); |
|
64 TXIMPRequestId UnsubscribePresentityGroupListL(); |
|
65 TXIMPRequestId CreatePresentityGroupL( const MXIMPIdentity& aGroupId, |
|
66 const TDesC16& aGroupDisplayName ); |
|
67 TXIMPRequestId DeletePresentityGroupL( const MXIMPIdentity& aGroupId ); |
|
68 TXIMPRequestId UpdatePresentityGroupDisplayNameL( const MXIMPIdentity& aGroupId, |
|
69 const TDesC16& aGroupDisplayName ); |
|
70 |
|
71 TXIMPRequestId SubscribePresentityGroupContentL( const MXIMPIdentity& aGroupId ); |
|
72 TXIMPRequestId UnsubscribePresentityGroupContentL( const MXIMPIdentity& aGroupId ); |
|
73 TXIMPRequestId AddPresentityGroupMemberL( const MXIMPIdentity& aGroupId, |
|
74 const MXIMPIdentity& aMemberId, |
|
75 const TDesC16& aMemberDisplayName ); |
|
76 TXIMPRequestId RemovePresentityGroupMemberL( const MXIMPIdentity& aGroupId, |
|
77 const MXIMPIdentity& aMemberId ); |
|
78 TXIMPRequestId UpdatePresentityGroupMemberDisplayNameL( const MXIMPIdentity& aGroupId, |
|
79 const MXIMPIdentity& aMemberId, |
|
80 const TDesC16& aMemberDisplayName ); |
|
81 |
|
82 public: //Helpers |
|
83 |
|
84 HBufC8* PackGroupInfoLC( const CPresentityGroupInfoImp& infoImp ); |
|
85 HBufC8* PackIdentityLC( const MXIMPIdentity& aIdentity ); |
|
86 TXIMPRequestId QueueOperationL( NPresenceOps::TPresenceOpTypes aOperation, |
|
87 const MXIMPIdentity& aGroupId, |
|
88 const TDesC16& aGroupDisplayName ); |
|
89 TXIMPRequestId QueueOperationL( NPresenceOps::TPresenceOpTypes aOperation, |
|
90 const MXIMPIdentity& aGroupId, |
|
91 const MXIMPIdentity& aMemberId, |
|
92 const TDesC16& aMemberDisplayName ); |
|
93 TXIMPRequestId QueueOperationL( NPresenceOps::TPresenceOpTypes aOperation, |
|
94 const MXIMPIdentity& aGroupId, |
|
95 const MXIMPIdentity& aMemberId ); |
|
96 |
|
97 private: // data |
|
98 |
|
99 /** |
|
100 * Context session proxy for accessing context server. |
|
101 * Ref. |
|
102 */ |
|
103 MXIMPContextInternal& iContext; |
|
104 |
|
105 }; |
|
106 |
|
107 |
|
108 #endif // CPRESENTITYGROUPSIMP_H |