|
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: Implementation of psy settings engine class. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "pospsysettingsengine.h" |
|
19 #include <QDebug> |
|
20 |
|
21 //--------------------------------------------------------------------- |
|
22 // PosPsySettingsEngine::PosPsySettingsEngine() |
|
23 // Constructor |
|
24 //--------------------------------------------------------------------- |
|
25 PosPsySettingsEngine::PosPsySettingsEngine() |
|
26 { |
|
27 qDebug() << "+ PosSettingsEngine::PosPsySettingsEngine()"; |
|
28 d_ptr = new PosPsySettingsEnginePrivate(*this); |
|
29 qDebug() << "- PosSettingsEngine::PosPsySettingsEngine()"; |
|
30 } |
|
31 |
|
32 //--------------------------------------------------------------------- |
|
33 // PosPsySettingsEngine::~PosPsySettingsEngine() |
|
34 // Destructor |
|
35 //--------------------------------------------------------------------- |
|
36 PosPsySettingsEngine::~PosPsySettingsEngine() |
|
37 { |
|
38 qDebug() << "+ PosSettingsEngine::~PosPsySettingsEngine()"; |
|
39 delete d_ptr; |
|
40 d_ptr = NULL; |
|
41 qDebug() << "- PosSettingsEngine::~PosPsySettingsEngine()"; |
|
42 } |
|
43 |
|
44 //--------------------------------------------------------------------- |
|
45 // PosPsySettingsEngine::listPsys( QList<PosPsyInfo>& psyList ) |
|
46 // |
|
47 //--------------------------------------------------------------------- |
|
48 int PosPsySettingsEngine::listPsys(QList<PosPsyInfo>& psyList) |
|
49 { |
|
50 qDebug() << "+ PosSettingsEngine::listPsys()"; |
|
51 int ret = d_ptr->listPsys(psyList); |
|
52 qDebug() << "- PosSettingsEngine::listPsys()" << ret; |
|
53 return ret; |
|
54 } |
|
55 |
|
56 //--------------------------------------------------------------------- |
|
57 // PosPsySettingsEngine::changePsyState( TUid psyModuleId, PosPsyState psyState ) |
|
58 // |
|
59 //--------------------------------------------------------------------- |
|
60 int PosPsySettingsEngine::changePsyState(TUid psyModuleId, |
|
61 PosPsyState psyState) |
|
62 { |
|
63 qDebug() << "+ PosSettingsEngine::changePsyState()"; |
|
64 qDebug() << "psystate = " << psyState; |
|
65 int ret = d_ptr->changePsyState(psyModuleId, psyState); |
|
66 qDebug() << "- PosSettingsEngine::changePsyState()" << ret; |
|
67 return ret; |
|
68 } |
|
69 |
|
70 //--------------------------------------------------------------------- |
|
71 // PosPsySettingsEngine::handlePositionTechnologyChange |
|
72 // |
|
73 //--------------------------------------------------------------------- |
|
74 void PosPsySettingsEngine::handlePositionTechnologyChange() |
|
75 { |
|
76 qDebug() << "+ PosSettingsEngine::handlePositionTechnologyChange()"; |
|
77 // emit the signal when there is a change in the list of available psys |
|
78 emit PSYChange(); |
|
79 qDebug() << "- PosSettingsEngine::handlePositionTechnologyChange()"; |
|
80 } |
|
81 |