1 /* |
|
2 * Copyright (c) 2009 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: FM Radio widget profile reader |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef FMRADIOHSWIDGETPROFILEREADER_H_ |
|
19 #define FMRADIOHSWIDGETPROFILEREADER_H_ |
|
20 |
|
21 // System includes |
|
22 #include <QObject> |
|
23 #include <QVariant> |
|
24 |
|
25 // Forward declarations |
|
26 class XQSettingsManager; |
|
27 class XQSettingsKey; |
|
28 |
|
29 class FmRadioHsWidgetProfileReader : public QObject |
|
30 { |
|
31 Q_OBJECT |
|
32 |
|
33 public: |
|
34 FmRadioHsWidgetProfileReader(QObject *parent = 0); |
|
35 virtual ~FmRadioHsWidgetProfileReader(); |
|
36 |
|
37 QVariant radioStatus(); |
|
38 |
|
39 signals: |
|
40 void profileChanged(int profile); |
|
41 void radioRunning(QVariant state); |
|
42 |
|
43 public slots: |
|
44 void itemDeleted(const XQSettingsKey& key); |
|
45 //void handleChanges(const XQSettingsKey& key, const QVariant& value); |
|
46 void handleRadioRunningChanges(const XQSettingsKey& key, const QVariant& value); |
|
47 |
|
48 private slots: |
|
49 void currentProfileStatus(QVariant value); |
|
50 void currentRadioRunningStatus(QVariant value); |
|
51 |
|
52 void startMonitoringRadioRunningStatus(); |
|
53 |
|
54 private: // data |
|
55 XQSettingsManager *mSettingsManager; // For getting and P&S notifications |
|
56 int mRadioStatus; |
|
57 |
|
58 }; |
|
59 |
|
60 #endif /* FMRADIOHSWIDGETPROFILEREADER_H_ */ |
|