|
1 /* |
|
2 * Copyright (c) 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: Search Keys subscription. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CSEARCHKEYSSUBSCRIPTIONITEM_H |
|
19 #define CSEARCHKEYSSUBSCRIPTIONITEM_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include "ximpsubscriptionitembase.h" |
|
23 #include "searchtypehelpers.h" |
|
24 |
|
25 |
|
26 class MXIMPItemParentBase; |
|
27 class MXIMPPscContext; |
|
28 class CXIMPPscContext; |
|
29 |
|
30 |
|
31 /** |
|
32 * search subscription implementation |
|
33 * |
|
34 * @lib searchdatamodel.dll |
|
35 */ |
|
36 class CSearchKeysSubscriptionItem : public CXIMPSubscriptionItemBase |
|
37 { |
|
38 |
|
39 public: // Construction and destruction |
|
40 |
|
41 /** |
|
42 * Construction |
|
43 * @param aParent. Parent has to be informed when this object is deleted by RemoveMe method. |
|
44 */ |
|
45 static CSearchKeysSubscriptionItem* NewLC( MXIMPItemParentBase& aParent ); |
|
46 |
|
47 /** |
|
48 * Destruction |
|
49 * - Remember to inform parent about delete. |
|
50 */ |
|
51 IMPORT_C virtual ~CSearchKeysSubscriptionItem(); |
|
52 |
|
53 private: // Construction and destruction |
|
54 |
|
55 /** |
|
56 * Construction |
|
57 * @param aParent. Parent has to be informed when this object is deleted by RemoveMe method. |
|
58 */ |
|
59 CSearchKeysSubscriptionItem( MXIMPItemParentBase& aParent ); |
|
60 |
|
61 /** |
|
62 * Construction |
|
63 */ |
|
64 void ConstructL(); |
|
65 |
|
66 public : |
|
67 /** |
|
68 * Set the search key info array |
|
69 * takes ownership and will be transfered to search keys event |
|
70 */ |
|
71 IMPORT_C void SetKeyInfoArray( RSearchKeyInfoImpArray* aKeyInfoArray); |
|
72 |
|
73 |
|
74 public: // From MXIMPSubscriptionItem |
|
75 |
|
76 /** |
|
77 * @see MXIMPSubscriptionItem |
|
78 */ |
|
79 void SynthesiseSubscriptionEventToL( MXIMPPscContext* aContext, TBool aForceEvent ); |
|
80 private: // From CXIMPIMSubscriptionItemBase |
|
81 |
|
82 /** |
|
83 * @see CXIMPIMSubscriptionItemBase |
|
84 */ |
|
85 void CleanExpired(); |
|
86 |
|
87 private : // data |
|
88 |
|
89 /** |
|
90 * RSearchKeyInfoImpArray : Not owned |
|
91 */ |
|
92 RSearchKeyInfoImpArray* iKeyInfoArray; |
|
93 |
|
94 }; |
|
95 |
|
96 |
|
97 /* ======================================================================== */ |
|
98 |
|
99 |
|
100 |
|
101 #endif // CSEARCHKEYSSUBSCRIPTIONITEM_H |