|
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 for managing cached authorization information. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPROTOCOLPRESENCEAUTHORIZATIONDATAHOSTIMP |
|
19 #define CPROTOCOLPRESENCEAUTHORIZATIONDATAHOSTIMP |
|
20 |
|
21 #include <protocolpresenceauthorizationdatahost.h> |
|
22 |
|
23 #include "ximpapiobjbase.h" |
|
24 #include "presenceapiobjbase.h" |
|
25 #include "ximpitemparent.h" |
|
26 #include "presencetypehelpers.h" |
|
27 #include "ximpoperationdefs.h" |
|
28 |
|
29 class MXIMPHost; |
|
30 |
|
31 /** |
|
32 * Implementation for managing cached authorization information |
|
33 * |
|
34 * @since S60 v3.2 |
|
35 */ |
|
36 class CProtocolPresenceAuthorizationDataHostImp : public CXIMPApiObjBase, |
|
37 public MProtocolPresenceAuthorizationDataHost |
|
38 { |
|
39 public: // Definitions |
|
40 |
|
41 /** The class ID. */ |
|
42 enum { KClassId = PRIMP_CLSID_CPROTOCOLPRESENCEAUTHORIZATIONDATAHOST }; |
|
43 |
|
44 public: // Construction and destruction |
|
45 |
|
46 /** |
|
47 * Construction |
|
48 */ |
|
49 IMPORT_C static CProtocolPresenceAuthorizationDataHostImp* NewL( MXIMPHost& aHost ); |
|
50 |
|
51 /** |
|
52 * Destruction |
|
53 */ |
|
54 virtual ~CProtocolPresenceAuthorizationDataHostImp(); |
|
55 |
|
56 private: |
|
57 |
|
58 CProtocolPresenceAuthorizationDataHostImp( MXIMPHost& aHost ); |
|
59 void ConstructL(); |
|
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 public: //From MProtocolPresenceAuthorizationDataHost |
|
70 |
|
71 TXIMPRequestId HandlePresenceGrantRequestListL( |
|
72 MXIMPObjectCollection* aGrantRequestList ); |
|
73 TXIMPRequestId HandlePresenceGrantRequestReceivedL( |
|
74 MPresenceGrantRequestInfo* aGrantRequest ); |
|
75 TXIMPRequestId HandlePresenceGrantRequestObsoletedL( |
|
76 MXIMPIdentity* aGrantRequestor ); |
|
77 const MXIMPDataSubscriptionState& PresenceGrantRequestDataSubscriptionState() const; |
|
78 TXIMPRequestId SetPresenceGrantRequestDataSubscriptionStateL( |
|
79 MXIMPDataSubscriptionState* aSubscriptionState, |
|
80 MXIMPStatus* aStatus ); |
|
81 |
|
82 // Handling presence blocking |
|
83 |
|
84 TXIMPRequestId HandlePresenceBlockListL( |
|
85 MXIMPObjectCollection* aBlockList ); |
|
86 TXIMPRequestId HandlePresenceBlockedL( |
|
87 MPresenceBlockInfo* aBlockInfo ); |
|
88 TXIMPRequestId HandlePresenceBlockCanceledL( |
|
89 MXIMPIdentity* aBlockedIdentity ); |
|
90 const MXIMPDataSubscriptionState& PresenceBlockDataSubscriptionState() const; |
|
91 TXIMPRequestId SetPresenceBlockDataSubscriptionStateL( |
|
92 MXIMPDataSubscriptionState* aSubscriptionState, |
|
93 MXIMPStatus* aStatus ); |
|
94 |
|
95 private: // Data |
|
96 |
|
97 /** |
|
98 * Access to host. |
|
99 */ |
|
100 MXIMPHost& iHost; |
|
101 }; |
|
102 |
|
103 |
|
104 /* ======================================================================== */ |
|
105 |
|
106 |
|
107 |
|
108 #endif // CPROTOCOLPRESENCEAUTHORIZATIONDATAHOSTIMP |