|
1 /* |
|
2 * Copyright (c) 2004 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: Tracked Presence ID lookup implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPENGTRACKEDPRESENCEIDENTRYLOOKUP_H |
|
19 #define CPENGTRACKEDPRESENCEIDENTRYLOOKUP_H |
|
20 |
|
21 // INCLUDES |
|
22 #include "CPEngTrackedPresenceIDEntry.h" |
|
23 #include <E32Base.h> |
|
24 |
|
25 |
|
26 |
|
27 //FORWARD DECLARATIONS |
|
28 class CPEngTrackedPresenceID2; |
|
29 |
|
30 |
|
31 /** |
|
32 * Tracked Presence ID lookup implementation. |
|
33 * |
|
34 * @lib |
|
35 * @since 3.0 |
|
36 */ |
|
37 NONSHARABLE_CLASS( CPEngTrackedPresenceIDEntryLookUp ) : public CPEngTrackedPresenceIDEntry |
|
38 { |
|
39 //----------------------------------------------------------------------- |
|
40 public: /* Construction */ |
|
41 |
|
42 /** |
|
43 * Instantiates CPEngTrackedPresenceIDEntryLookUp object. |
|
44 * |
|
45 * @param aPresenceID Tracked Presence ID. |
|
46 * @return New CPEngTrackedPresenceIDEntryLookUp instance. |
|
47 */ |
|
48 static CPEngTrackedPresenceIDEntryLookUp* NewL(); |
|
49 |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 * Virtual by CBase. |
|
54 */ |
|
55 ~CPEngTrackedPresenceIDEntryLookUp(); |
|
56 |
|
57 |
|
58 |
|
59 private: // Constructor |
|
60 |
|
61 /** |
|
62 * C++ default constructor. |
|
63 */ |
|
64 CPEngTrackedPresenceIDEntryLookUp(); |
|
65 |
|
66 |
|
67 |
|
68 //----------------------------------------------------------------------- |
|
69 public: /* Lookup services */ |
|
70 |
|
71 |
|
72 /** |
|
73 * Overridden Presence ID accessor to return lookup data. |
|
74 * |
|
75 * @since 3.0 |
|
76 * @return Presence ID lookup key as set |
|
77 * previously with SetLookupKey(). |
|
78 */ |
|
79 virtual TPtrC PresenceID() const; |
|
80 |
|
81 |
|
82 /** |
|
83 * Sets new look up key. |
|
84 * Note! Sets lookup key to point given data. |
|
85 * |
|
86 * @since 3.0 |
|
87 * @param aPresenceID New Presence ID lookup key |
|
88 */ |
|
89 void SetLookupKey( const TDesC& aPresenceID ); |
|
90 |
|
91 |
|
92 /** |
|
93 * Resets the lookup key to empty descriptor. |
|
94 * |
|
95 * @since 3.0 |
|
96 */ |
|
97 void Reset(); |
|
98 |
|
99 |
|
100 private: //Data |
|
101 |
|
102 //OWN: Presence Id lookup key |
|
103 TPtrC iLookupKey; |
|
104 }; |
|
105 |
|
106 #endif // CPENGTRACKEDPRESENCEIDENTRYLOOKUP_H |
|
107 |
|
108 |
|
109 |