34
|
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 RADIOHSWIDGETPROFILEREADER_H_
|
|
19 |
#define RADIOHSWIDGETPROFILEREADER_H_
|
|
20 |
|
|
21 |
// System includes
|
|
22 |
#include <QObject>
|
|
23 |
#include <QVariant>
|
|
24 |
|
|
25 |
// Forward declarations
|
|
26 |
class RadioHsWidget;
|
|
27 |
class XQSettingsManager;
|
|
28 |
class XQSettingsKey;
|
|
29 |
|
|
30 |
class RadioHsWidgetProfileReader : public QObject
|
|
31 |
{
|
|
32 |
Q_OBJECT
|
|
33 |
|
|
34 |
public:
|
|
35 |
explicit RadioHsWidgetProfileReader(RadioHsWidget *parent = 0);
|
|
36 |
virtual ~RadioHsWidgetProfileReader();
|
|
37 |
|
|
38 |
void startMonitoringRadioRunningStatus();
|
|
39 |
|
38
|
40 |
bool isInOfflineMode();
|
34
|
41 |
|
|
42 |
public slots:
|
|
43 |
void handleDeletedItem(const XQSettingsKey &key);
|
|
44 |
void handleChanges(const XQSettingsKey &key, const QVariant &value);
|
|
45 |
|
|
46 |
private:
|
|
47 |
void radioRunningStatus(const QVariant &value);
|
|
48 |
|
|
49 |
private: // data
|
|
50 |
/*!
|
|
51 |
Stores the reference to parent. This is used to call parents
|
|
52 |
functions when notifications are received.
|
|
53 |
*/
|
|
54 |
RadioHsWidget &mParent;
|
|
55 |
/*! For getting values and notifications of changes from P&S keys. */
|
|
56 |
XQSettingsManager *mSettingsManager;
|
|
57 |
/*!
|
|
58 |
Stores internally the status of radio application read from the P&S
|
|
59 |
key.
|
|
60 |
*/
|
|
61 |
int mRadioStatus;
|
|
62 |
};
|
|
63 |
|
|
64 |
#endif /* RADIOHSWIDGETPROFILEREADER_H_ */
|