|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef HGSELECTIONOBSERVERIFACE_H_ |
|
20 #define HGSELECTIONOBSERVERIFACE_H_ |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class CCoeControl; |
|
26 |
|
27 /** |
|
28 * Selection observer interface. |
|
29 */ |
|
30 class MHgSelectionObserver |
|
31 { |
|
32 public: |
|
33 |
|
34 /** |
|
35 * Handle selection. |
|
36 * |
|
37 * @param aIndex Selected item index. |
|
38 */ |
|
39 virtual void HandleSelectL( TInt aIndex ) = 0; |
|
40 |
|
41 /** |
|
42 * Handle opening. |
|
43 * |
|
44 * @param aIndex Opened item index. |
|
45 */ |
|
46 virtual void HandleOpenL( TInt aIndex ) = 0; |
|
47 |
|
48 |
|
49 /** |
|
50 * Handle selection from certain CCoeControl |
|
51 * |
|
52 * @param aIndex Selected item index. |
|
53 * @param aControl CCoeontrol calling this method. |
|
54 */ |
|
55 virtual void HandleSelectL( TInt aIndex, CCoeControl* /*aControl*/ ) { HandleSelectL(aIndex); } |
|
56 |
|
57 /** |
|
58 * Handle open from certain CCoeControl |
|
59 * |
|
60 * @param aIndex Opened item index. |
|
61 * @param aControl CCoeontrol calling this method. |
|
62 */ |
|
63 virtual void HandleOpenL( TInt aIndex, CCoeControl* /*aControl*/ ) { HandleOpenL(aIndex); } |
|
64 }; |
|
65 |
|
66 #endif // HGSELECTIONOBSERVERIFACE_H_ |