15
by Lorn Potter
add the rest of ofono API |
1 |
/****************************************************************************
|
2 |
**
|
|
171.1.1
by Slava Monich
[libqofono] Added base classes for modem interfaces |
3 |
** Copyright (C) 2013-2014 Jolla Ltd.
|
15
by Lorn Potter
add the rest of ofono API |
4 |
** Contact: lorn.potter@jollamobile.com
|
5 |
**
|
|
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.
|
|
13 |
**
|
|
14 |
****************************************************************************/
|
|
15 |
||
16 |
#ifndef QOFONOCallVolume_H
|
|
17 |
#define QOFONOCallVolume_H
|
|
18 |
||
171.1.1
by Slava Monich
[libqofono] Added base classes for modem interfaces |
19 |
#include "qofonomodeminterface.h" |
20
by Lorn Potter
fix export visibility and correct dbus type in xml/class manager |
20 |
#include "qofono_global.h" |
171.1.1
by Slava Monich
[libqofono] Added base classes for modem interfaces |
21 |
|
37
by Lorn Potter
add url to ofono documentation |
22 |
//! This class is used to access ofono call volume API
|
23 |
/*!
|
|
24 |
* The API is documented in
|
|
25 |
* http://git.kernel.org/?p=network/ofono/ofono.git;a=blob_plain;f=doc/call-volume-api.txt
|
|
26 |
*/
|
|
171.1.1
by Slava Monich
[libqofono] Added base classes for modem interfaces |
27 |
class QOFONOSHARED_EXPORT QOfonoCallVolume : public QOfonoModemInterface |
15
by Lorn Potter
add the rest of ofono API |
28 |
{
|
29 |
Q_OBJECT
|
|
30 |
Q_PROPERTY(bool muted READ muted WRITE setMuted NOTIFY mutedChanged) |
|
31 |
Q_PROPERTY(quint8 speakerVolume READ speakerVolume WRITE setSpeakerVolume NOTIFY speakerVolumeChanged) |
|
32 |
Q_PROPERTY(quint8 microphoneVolume READ microphoneVolume WRITE setMicrophoneVolume NOTIFY microphoneVolumeChanged) |
|
33 |
||
34 |
public: |
|
35 |
explicit QOfonoCallVolume(QObject *parent = 0); |
|
36 |
~QOfonoCallVolume(); |
|
37 |
||
171.1.2
by Slava Monich
[libqofono] Restore public ABI |
38 |
QString modemPath() const; |
39 |
void setModemPath(const QString &path); |
|
40 |
||
15
by Lorn Potter
add the rest of ofono API |
41 |
bool muted() const; |
42 |
void setMuted(const bool mute); |
|
43 |
||
44 |
quint8 speakerVolume() const; |
|
45 |
void setSpeakerVolume(const quint8 &spvolume); |
|
46 |
||
47 |
quint8 microphoneVolume()const ; |
|
48 |
void setMicrophoneVolume(const quint8 &mpvolume); |
|
49 |
||
171.1.2
by Slava Monich
[libqofono] Restore public ABI |
50 |
bool isValid() const; |
51 |
||
15
by Lorn Potter
add the rest of ofono API |
52 |
Q_SIGNALS: |
53 |
void mutedChanged(bool muted); |
|
54 |
void speakerVolumeChanged(const quint8 &volume); |
|
55 |
void microphoneVolumeChanged(const quint8 &mvolume); |
|
56 |
||
171.1.1
by Slava Monich
[libqofono] Added base classes for modem interfaces |
57 |
protected: |
58 |
QDBusAbstractInterface *createDbusInterface(const QString &path); |
|
59 |
void propertyChanged(const QString &property, const QVariant &value); |
|
15
by Lorn Potter
add the rest of ofono API |
60 |
};
|
61 |
||
62 |
#endif // QOFONOCallVolume_H |