|
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: Item parent interface. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CSEARCHITEMPARENT_H |
|
19 #define CSEARCHITEMPARENT_H |
|
20 |
|
21 #include <ximpitemparentbase.h> |
|
22 |
|
23 |
|
24 class CXIMPApiEventBase; |
|
25 class MXIMPPscContext; |
|
26 class CSearchSubscriptionItem; |
|
27 class CSearchKeysSubscriptionItem; |
|
28 |
|
29 |
|
30 #define SEARCH_ITEM_PARENT 0xE000000A |
|
31 |
|
32 /** |
|
33 * Item parent interface. |
|
34 * |
|
35 * |
|
36 */ |
|
37 class MSearchItemParent : public MXIMPItemParentBase |
|
38 { |
|
39 |
|
40 public: |
|
41 enum { KInterfaceId = SEARCH_ITEM_PARENT}; |
|
42 |
|
43 public: // Definitions |
|
44 |
|
45 /** |
|
46 * Remove item |
|
47 * @param aChild Item pointer to remove. |
|
48 */ |
|
49 virtual void RemoveMe( CSearchSubscriptionItem* aChild ) = 0; |
|
50 |
|
51 virtual void RemoveMe( CSearchKeysSubscriptionItem* aChild ) = 0; |
|
52 |
|
53 /** |
|
54 * Add event to event pump |
|
55 */ |
|
56 virtual void AddEventL( CXIMPApiEventBase& aEvent, MXIMPPscContext* aContext ) = 0; |
|
57 |
|
58 |
|
59 protected: // Destruction |
|
60 |
|
61 /** |
|
62 * Object cannot be delted through this interface |
|
63 */ |
|
64 virtual ~MSearchItemParent(){} |
|
65 }; |
|
66 |
|
67 /* ======================================================================== */ |
|
68 |
|
69 |
|
70 |
|
71 #endif // CXIMPIMITEMPARENT_H |