equal
deleted
inserted
replaced
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: LocationPickerCollectionContent declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef LOCATIONPICKERCOLLECTIONCONTENT_H |
|
19 #define LOCATIONPICKERCOLLECTIONCONTENT_H |
|
20 |
|
21 class QStandardItemModel; |
|
22 class LocationPickerProxyModel; |
|
23 class LocationPickerDataManager; |
|
24 |
|
25 /** |
|
26 * Class for handling collection content |
|
27 */ |
|
28 class LocationPickerCollectionContent : public QObject |
|
29 { |
|
30 public: |
|
31 // constructor |
|
32 LocationPickerCollectionContent( quint32 aCollectionid ); |
|
33 //Destructor |
|
34 ~LocationPickerCollectionContent(); |
|
35 //get proxy model |
|
36 LocationPickerProxyModel* getProxyModel(); |
|
37 // gets the data pointed to by index and copies to the aValue |
|
38 void getData( QModelIndex aIndex, quint32& aValue ); |
|
39 //return true if location entry is found |
|
40 bool locationFound(); |
|
41 private: |
|
42 LocationPickerProxyModel *mProxyModel; |
|
43 QStandardItemModel *mModel; |
|
44 LocationPickerDataManager *mDataManager; |
|
45 bool mLocationFound; |
|
46 }; |
|
47 |
|
48 #endif // LOCATIONPICKERCOLLECTIONCONTENT_H |
|