|
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: LocationPickerDataManager implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "locationpickerdatamanager.h" |
|
19 #include "locationpickerdatamanager_p.h" |
|
20 |
|
21 |
|
22 // ---------------------------------------------------------------------------- |
|
23 // LocationPickerDataManager::LocationPickerDataManager() |
|
24 // ---------------------------------------------------------------------------- |
|
25 |
|
26 LocationPickerDataManager::LocationPickerDataManager() : |
|
27 d_ptr( new LocationPickerDataManagerPrivate() ) |
|
28 { |
|
29 } |
|
30 |
|
31 // ---------------------------------------------------------------------------- |
|
32 // LocationPickerDataManager::LocationPickerDataManager() |
|
33 // ---------------------------------------------------------------------------- |
|
34 |
|
35 LocationPickerDataManager::LocationPickerDataManager( |
|
36 QStandardItemModel &aModel, TViewType aViewType ) : |
|
37 d_ptr( new LocationPickerDataManagerPrivate( aModel, aViewType) ) |
|
38 { |
|
39 } |
|
40 |
|
41 |
|
42 // ---------------------------------------------------------------------------- |
|
43 // LocationPickerDataManager::~LocationPickerDataManager() |
|
44 // ---------------------------------------------------------------------------- |
|
45 LocationPickerDataManager::~LocationPickerDataManager() |
|
46 { |
|
47 delete d_ptr; |
|
48 } |
|
49 |
|
50 // ---------------------------------------------------------------------------- |
|
51 // LocationPickerDataManager::populateModel() |
|
52 // ---------------------------------------------------------------------------- |
|
53 bool LocationPickerDataManager::populateModel( quint32 aCollectionId ) |
|
54 { |
|
55 Q_D( LocationPickerDataManager); |
|
56 return( d->populateModel( aCollectionId ) ); |
|
57 } |
|
58 |
|
59 |
|
60 // ---------------------------------------------------------------------------- |
|
61 // LocationPickerDataManager::getData() |
|
62 // ---------------------------------------------------------------------------- |
|
63 |
|
64 void LocationPickerDataManager::getData( int aIndex, quint32& aValue ) |
|
65 { |
|
66 Q_D( LocationPickerDataManager); |
|
67 return( d->getData( aIndex, aValue ) ); |
|
68 } |
|
69 |
|
70 // ---------------------------------------------------------------------------- |
|
71 // LocationPickerDataManager::getLocationItem() |
|
72 // ---------------------------------------------------------------------------- |
|
73 |
|
74 void LocationPickerDataManager::getLocationItem( quint32 aLmId, QLocationPickerItem& aItem ) |
|
75 { |
|
76 Q_D( LocationPickerDataManager); |
|
77 return( d->getLocationItem( aLmId, aItem ) ); |
|
78 } |