1
/***************************************************************************
3
** Copyright (C) 2013 Jolla Ltd. **
4
** Contact: Petri M. Gerdt <petri.gerdt@jollamobile.com> **
6
** This file is part of Timed **
8
** Timed is free software; you can redistribute it and/or modify **
9
** it under the terms of the GNU Lesser General Public License **
10
** version 2.1 as published by the Free Software Foundation. **
12
** Timed is distributed in the hope that it will be useful, but **
13
** WITHOUT ANY WARRANTY; without even the implied warranty of **
14
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. **
15
** See the GNU Lesser General Public License for more details. **
17
** You should have received a copy of the GNU Lesser General Public **
18
** License along with Timed. If not, see http://www.gnu.org/licenses/ **
20
***************************************************************************/
22
#ifndef MODEMWATCHER_H
23
#define MODEMWATCHER_H
27
#include <QDBusVariant>
30
class QDBusPendingCallWatcher;
31
class QDBusServiceWatcher;
33
class ModemWatcher : public QObject
38
explicit ModemWatcher(const QString objectPath, const QString interface, QObject *parent = 0);
40
bool interfaceAvailable() const;
41
QString objectPath() const;
42
QString interface() const;
45
void interfaceAvailableChanged(bool available);
50
bool m_interfaceAvailable;
51
QDBusServiceWatcher *m_ofonoWatcher;
53
void checkInterfaceAvailability(QVariant variant);
56
void onModemPropertyChanged(QString objectPath, QDBusVariant value);
58
void getPropertiesReply(QDBusPendingCallWatcher *call);
60
#endif // MODEMWATCHER_H