2 * This file is part of ofono-qt
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
6 * Contact: Alexander Kanavin <alexander.kanavin@nokia.com>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * version 2.1 as published by the Free Software Foundation.
12 * This library 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. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
24 #ifndef OFONOMODEMMANAGER_H
25 #define OFONOMODEMMANAGER_H
27 #include <QtCore/QObject>
29 #include <QDBusObjectPath>
30 #include <QStringList>
31 #include "libofono-qt_global.h"
33 //! Provides access to the list of available modems and changes in that list.
34 class OFONO_QT_EXPORT OfonoModemManager : public QObject {
40 OfonoModemManager(QObject *parent=0);
44 //! Returns a list of d-bus object paths that represent available modems
45 QStringList modems() const;
48 //! Issued when a modem has been added
49 void modemAdded(const QString &modemPath);
51 //! Issued when a modem has been removed
52 void modemRemoved(const QString &modemPath);
55 void onModemAdded(const QDBusObjectPath &path, const QVariantMap &map);
56 void onModemRemoved(const QDBusObjectPath &path);