1
/****************************************************************************
3
** Copyright (C) 2014 Canonical Ltd.
4
** Contact: jonas.drange@canonical.com
6
** GNU Lesser General Public License Usage
7
** Alternatively, this file may be used under the terms of the GNU Lesser
8
** General Public License version 2.1 as published by the Free Software
9
** Foundation and appearing in the file LICENSE.LGPL included in the
10
** packaging of this file. Please review the following information to
11
** ensure the GNU Lesser General Public License version 2.1 requirements
12
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
14
****************************************************************************/
16
#ifndef QOFONOMtkSettings_H
17
#define QOFONOMtkSettings_H
20
#include <QDBusVariant>
22
#include "qofono_global.h"
23
//! This class is used to access ofono mtk (MediaTek) settings API
25
* The API is documented in
26
* https://github.com/rilmodem/ofono/blob/master/doc/mtk-settings-api.txt
29
class QOfonoMtkSettingsPrivate;
30
class QOFONOSHARED_EXPORT QOfonoMtkSettings : public QObject
33
Q_PROPERTY(QString modemPath READ modemPath WRITE setModemPath NOTIFY modemPathChanged)
34
Q_PROPERTY(bool has3G READ has3G WRITE setHas3G NOTIFY has3GChanged)
37
explicit QOfonoMtkSettings(QObject *parent = 0);
40
QString modemPath() const;
41
void setModemPath(const QString &path);
44
void setHas3G(bool has3G);
48
void has3GChanged(bool has3G);
49
void modemPathChanged(const QString &path);
54
void updateProperty(const QString &property, const QVariant &value);
56
QOfonoMtkSettingsPrivate *d_ptr;
58
void propertyChanged(const QString &property,const QDBusVariant &value);
61
#endif // QOFONOMtkSettings_H