|
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 subscribed presence information. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPROTOCOLPRESENCEWATCHINGDATAHOSTIMP_H |
|
19 #define CPROTOCOLPRESENCEWATCHINGDATAHOSTIMP_H |
|
20 |
|
21 #include <protocolpresencewatchingdatahost.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 class MPresenceInfo; |
|
31 class MXIMPObjectCollection; |
|
32 |
|
33 /** |
|
34 * Implementation for managing cached subscribed presence information. |
|
35 * |
|
36 * @since S60 v3.2 |
|
37 */ |
|
38 class CProtocolPresenceWatchingDataHostImp : public CXIMPApiObjBase, |
|
39 public MProtocolPresenceWatchingDataHost |
|
40 { |
|
41 public: // Definitions |
|
42 |
|
43 /** The class ID. */ |
|
44 enum { KClassId = PRIMP_CLSID_CPROTOCOLPRESENCEWATCHINGDATAHOST }; |
|
45 |
|
46 public: // Construction and destruction |
|
47 |
|
48 /** |
|
49 * Construction |
|
50 */ |
|
51 IMPORT_C static CProtocolPresenceWatchingDataHostImp* NewL( MXIMPHost& aHost ); |
|
52 |
|
53 /** |
|
54 * Destruction |
|
55 */ |
|
56 virtual ~CProtocolPresenceWatchingDataHostImp(); |
|
57 |
|
58 private: |
|
59 |
|
60 CProtocolPresenceWatchingDataHostImp( MXIMPHost& aHost ); |
|
61 void ConstructL(); |
|
62 |
|
63 public: // From MXIMPBase |
|
64 |
|
65 /** |
|
66 * Implementation of MXIMPBase interface methods |
|
67 * @see MXIMPBase |
|
68 */ |
|
69 XIMPIMP_DECLARE_IF_BASE_METHODS |
|
70 |
|
71 public: //From MProtocolPresenceWatchingDataHost |
|
72 |
|
73 TXIMPRequestId HandleSubscribedPresentityPresenceL( |
|
74 MXIMPIdentity* aPresentityId, |
|
75 MPresenceInfo* aPresenceInfo ); |
|
76 const MXIMPDataSubscriptionState& PresentityPresenceDataSubscriptionState( |
|
77 const MXIMPIdentity& aPresentityId ) const; |
|
78 TXIMPRequestId SetPresentityPresenceDataSubscriptionStateL( |
|
79 MXIMPIdentity* aPresentityId, |
|
80 MXIMPDataSubscriptionState* aSubscriptionState, |
|
81 MXIMPStatus* aStatus ); |
|
82 private: // Data |
|
83 |
|
84 /** |
|
85 * Access to host. |
|
86 */ |
|
87 MXIMPHost& iHost; |
|
88 |
|
89 }; |
|
90 |
|
91 |
|
92 #endif // CPROTOCOLPRESENCEWATCHINGDATAHOSTIMP_H |