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: LocationPickerAppWindow declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef LOCATIONPICKERAPPWINDOW_H |
|
19 #define LOCATIONPICKERAPPWINDOW_H |
|
20 #include <HbMainWindow> |
|
21 |
|
22 #include "locationpickertypes.h" |
|
23 |
|
24 // Forward declarations |
|
25 class LocationPickerSearchView; |
|
26 class LocationPickerDocumentLoader; |
|
27 class LocationPickerView; |
|
28 class LocationPickerService; |
|
29 class LocationPickerProxyModel; |
|
30 class LocationPickerContent; |
|
31 |
|
32 class LocationPickerAppWindow: public HbMainWindow |
|
33 { |
|
34 Q_OBJECT |
|
35 public: |
|
36 // constructor |
|
37 LocationPickerAppWindow(QWidget *parent=0, Hb::WindowFlags |
|
38 windowFlags=Hb::WindowFlagNone); |
|
39 |
|
40 // destructor |
|
41 ~LocationPickerAppWindow(); |
|
42 |
|
43 #ifdef LOCPICKER_UNIT_TEST |
|
44 public slots: |
|
45 #else |
|
46 private slots: |
|
47 #endif |
|
48 //Connect the slots for Potrait view |
|
49 void connectSlots(); |
|
50 public slots: |
|
51 // a list item is selected |
|
52 void itemSelected( quint32 aLm ); |
|
53 #ifdef LOCPICKER_UNIT_TEST |
|
54 public slots: |
|
55 #else |
|
56 private slots: |
|
57 #endif |
|
58 |
|
59 //activate search view |
|
60 void activateSearchView(); |
|
61 //activate locationpicker view |
|
62 void activateLocationPickerView(); |
|
63 //changes the orientation |
|
64 void changeOrientation( Qt::Orientation ); |
|
65 //complete the service |
|
66 void serviceComplete(); |
|
67 //slot to close details dialog (if open) |
|
68 void closeDetailsDialog(); |
|
69 |
|
70 #ifdef LOCPICKER_UNIT_TEST |
|
71 public: |
|
72 #else |
|
73 private: |
|
74 #endif |
|
75 // search view |
|
76 LocationPickerSearchView* mLocationPickerSearchView; |
|
77 //document loader |
|
78 LocationPickerDocumentLoader* mLocationPickerDocumentLoader; |
|
79 //location picker potrait view |
|
80 LocationPickerView* mLocationPickerView; |
|
81 //locationpicker content |
|
82 LocationPickerContent* mLocationPickerContent; |
|
83 //location picker service; |
|
84 LocationPickerService *mService; |
|
85 }; |
|
86 #endif // LOCATIONPICKERAPPWINDOW_H |
|