1 /* |
|
2 * Copyright (c) 2010 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: LocationPickerCollectionListView declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef LOCATIONPICKERCOLLECTIONLISTVIEW_H |
|
19 #define LOCATIONPICKERCOLLECTIONLISTVIEW_H |
|
20 |
|
21 #include <HbView> |
|
22 |
|
23 class HbListView; |
|
24 class HbAction; |
|
25 class QStandardItemModel; |
|
26 class LocationPickerCollectionContent; |
|
27 class LocationPickerAppWindow; |
|
28 class LocationPickerDataManager; |
|
29 |
|
30 /** Class for handling Collections view of location picker |
|
31 * |
|
32 */ |
|
33 class LocationPickerCollectionListView : public HbView |
|
34 { |
|
35 Q_OBJECT |
|
36 public: |
|
37 |
|
38 // constructor |
|
39 LocationPickerCollectionListView( LocationPickerAppWindow *aWindow, QGraphicsItem* aParent = 0); |
|
40 |
|
41 // destructor |
|
42 ~LocationPickerCollectionListView(); |
|
43 |
|
44 // slot used to delete the child view, ie collection content view. |
|
45 void deleteCollectionContentView(); |
|
46 |
|
47 |
|
48 private slots: |
|
49 |
|
50 // slot to handle event when a collection is selected |
|
51 void handleActivated( const QModelIndex &aIndex ); |
|
52 |
|
53 private: |
|
54 HbListView *mListView; |
|
55 QStandardItemModel *mModel; |
|
56 LocationPickerCollectionContent *mCollectionContentView; |
|
57 |
|
58 LocationPickerAppWindow *mWindow; |
|
59 LocationPickerDataManager *mDataManager; |
|
60 HbAction *mSecondaryBackAction; |
|
61 }; |
|
62 |
|
63 #endif // LOCATIONPICKERCOLLECTIONLISTVIEW_H |
|