29 class FmRadioHsWidgetProfileReader : public QObject |
29 class FmRadioHsWidgetProfileReader : public QObject |
30 { |
30 { |
31 Q_OBJECT |
31 Q_OBJECT |
32 |
32 |
33 public: |
33 public: |
34 FmRadioHsWidgetProfileReader(QObject *parent = 0); |
34 explicit FmRadioHsWidgetProfileReader(QObject *parent = 0); |
35 virtual ~FmRadioHsWidgetProfileReader(); |
35 virtual ~FmRadioHsWidgetProfileReader(); |
36 |
36 |
37 QVariant radioStatus(); |
|
38 |
|
39 signals: |
37 signals: |
40 void profileChanged(int profile); |
38 //void profileChanged(int profile); |
41 void radioRunning(QVariant state); |
39 void radioRunning(const QVariant &state); |
42 |
40 |
43 public slots: |
41 public slots: |
44 void itemDeleted(const XQSettingsKey& key); |
42 void itemDeleted(const XQSettingsKey &key); |
45 //void handleChanges(const XQSettingsKey& key, const QVariant& value); |
43 void handleChanges(const XQSettingsKey &key, const QVariant &value); |
46 void handleRadioRunningChanges(const XQSettingsKey& key, const QVariant& value); |
44 void startMonitoringRadioRunningStatus(); |
47 |
45 |
48 private slots: |
46 private slots: |
49 void currentProfileStatus(QVariant value); |
47 //void currentProfileStatus(const QVariant &value); |
50 void currentRadioRunningStatus(QVariant value); |
48 void currentRadioRunningStatus(const QVariant &value); |
51 |
|
52 void startMonitoringRadioRunningStatus(); |
|
53 |
49 |
54 private: // data |
50 private: // data |
55 XQSettingsManager *mSettingsManager; // For getting and P&S notifications |
51 XQSettingsManager *mSettingsManager; // For getting and P&S notifications |
56 int mRadioStatus; |
52 int mRadioStatus; |
57 |
|
58 }; |
53 }; |
59 |
54 |
60 #endif /* FMRADIOHSWIDGETPROFILEREADER_H_ */ |
55 #endif /* FMRADIOHSWIDGETPROFILEREADER_H_ */ |