equal
deleted
inserted
replaced
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 explicit FmRadioHsWidgetProfileReader(QObject *parent = 0); |
|
35 virtual ~FmRadioHsWidgetProfileReader(); |
|
36 |
|
37 signals: |
|
38 //void profileChanged(int profile); |
|
39 void radioRunning(const QVariant &state); |
|
40 |
|
41 public slots: |
|
42 void itemDeleted(const XQSettingsKey &key); |
|
43 void handleChanges(const XQSettingsKey &key, const QVariant &value); |
|
44 void startMonitoringRadioRunningStatus(); |
|
45 |
|
46 private slots: |
|
47 //void currentProfileStatus(const QVariant &value); |
|
48 void currentRadioRunningStatus(const QVariant &value); |
|
49 |
|
50 private: // data |
|
51 XQSettingsManager *mSettingsManager; // For getting and P&S notifications |
|
52 int mRadioStatus; |
|
53 }; |
|
54 |
|
55 #endif /* FMRADIOHSWIDGETPROFILEREADER_H_ */ |
|