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: LocationPickerToolBar declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef LOCATIONPICKERTOOLBAR_H |
|
19 #define LOCATIONPICKERTOOLBAR_H |
|
20 |
|
21 #include <HbToolBar> |
|
22 |
|
23 // forward declarations |
|
24 class HbAction; |
|
25 class LocationPickerAppWindow; |
|
26 |
|
27 /** Class used to create toolbar for location picker |
|
28 * |
|
29 */ |
|
30 class LocationPickerToolBar : public HbToolBar |
|
31 { |
|
32 Q_OBJECT |
|
33 public: |
|
34 |
|
35 /** Constructor |
|
36 */ |
|
37 LocationPickerToolBar( LocationPickerAppWindow *aWindow, QGraphicsItem *aParent = 0 ); |
|
38 |
|
39 /** disable tabs if no locations |
|
40 */ |
|
41 void disableTabs(); |
|
42 |
|
43 private slots: |
|
44 |
|
45 /** Slot triggered when All tab is selected |
|
46 */ |
|
47 void AllTabTriggered(); |
|
48 |
|
49 /** Slot triggered when Collection tab is selected |
|
50 */ |
|
51 void CollectionTabTriggered(); |
|
52 |
|
53 /** Slot triggered when Search tab is selected |
|
54 */ |
|
55 void SearchTabTriggered(); |
|
56 |
|
57 private: |
|
58 // Actions defined for the tabs |
|
59 HbAction *mAllAction; |
|
60 HbAction *mCollectionAction; |
|
61 HbAction *mSearchAction; |
|
62 |
|
63 // pointer to the main window |
|
64 LocationPickerAppWindow* mWindow; |
|
65 }; |
|
66 |
|
67 |
|
68 #endif // LOCATIONPICKERTOOLBAR_H |
|