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: IETF SIMPLE Protocol implementation for XIMP Framework |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPRESENCEPLUGINWATCHERINFO_H |
|
20 #define CPRESENCEPLUGINWATCHERINFO_H |
|
21 |
|
22 #include <e32std.h> |
|
23 #include <ximpbase.h> |
|
24 |
|
25 #include "presencelogger.h" |
|
26 |
|
27 /** |
|
28 * CPresencePluginWatcherInfo |
|
29 * |
|
30 * watcher info. |
|
31 * |
|
32 * @lib presenceplugin.dll |
|
33 * @since S60 v3.2 |
|
34 */ |
|
35 NONSHARABLE_CLASS( CPresencePluginWatcherInfo ): public CBase |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Constructor. |
|
41 * @param aId watcher id |
|
42 * @param aSipId watcher SIP identity |
|
43 */ |
|
44 static CPresencePluginWatcherInfo* NewL( |
|
45 const TDesC8& aId, |
|
46 const TDesC& aSipId ); |
|
47 |
|
48 /** |
|
49 * Standard C++ destructor |
|
50 */ |
|
51 virtual ~CPresencePluginWatcherInfo(); |
|
52 |
|
53 /** |
|
54 * Destructor |
|
55 * |
|
56 * @since S60 3.2 |
|
57 * @param none |
|
58 * @return none |
|
59 */ |
|
60 void Destroy(); |
|
61 |
|
62 /** |
|
63 * Match to given info |
|
64 * |
|
65 * @since S60 3.2 |
|
66 * @param aId watcher id |
|
67 * @param aSipId watcher SIP identity |
|
68 * @return ETrue if current entity matches to the parameters |
|
69 */ |
|
70 TBool Match( const TDesC8& aId, |
|
71 const TDesC& aSipId ); |
|
72 /** |
|
73 * SipId |
|
74 * |
|
75 * @since S60 3.2 |
|
76 * @param none |
|
77 * @return TPtrC, sip Uri |
|
78 */ |
|
79 TPtrC SipId(); |
|
80 |
|
81 static TInt LinkOffset(); |
|
82 |
|
83 private: |
|
84 |
|
85 CPresencePluginWatcherInfo( ); |
|
86 |
|
87 /** |
|
88 * Constructor |
|
89 * |
|
90 * @since S60 3.2 |
|
91 * @param aId watcher id |
|
92 * @param aSipId watcher SIP identity |
|
93 */ |
|
94 void ConstructL( |
|
95 const TDesC8& aId, |
|
96 const TDesC& aSipId ); |
|
97 |
|
98 public: // data |
|
99 |
|
100 /** |
|
101 * Linked list |
|
102 * own |
|
103 */ |
|
104 TDblQueLink iLink; |
|
105 |
|
106 private: // data |
|
107 |
|
108 /** |
|
109 * ident id |
|
110 * own |
|
111 */ |
|
112 HBufC8* iId; |
|
113 |
|
114 /** |
|
115 * sip id |
|
116 * own |
|
117 */ |
|
118 HBufC* iSipId; |
|
119 |
|
120 SIMPLE_UNIT_TEST( T_SIMPLEDataModelAdapter ) |
|
121 |
|
122 }; |
|
123 |
|
124 #endif // CPRESENCEPLUGINWATCHERINFO_H |
|