1
/* This file is part of the KDE project
2
Copyright (C) 2006 Will Stephenson <wstephenson@kde.org>
3
Copyright (C) 2006-2007 Kevin Ottens <ervin@kde.org>
4
Copyright (C) 2010-2011 Lamarque Souza <lamarque@gmail.com>
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Library General Public
8
License version 2 as published by the Free Software Foundation.
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.
15
You should have received a copy of the GNU Library General Public License
16
along with this library; see the file COPYING.LIB. If not, write to
17
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
Boston, MA 02110-1301, USA.
21
#ifndef SOLID_MODEMMANAGER_P_H
22
#define SOLID_MODEMMANAGER_P_H
28
#include "managerbase_p.h"
30
#include "modemmanager.h"
31
#include "modemmanagerinterface.h"
39
class ModemManagerInterface;
42
class ModemManagerPrivate : public ModemManager::Notifier, public ManagerBasePrivate
46
ModemManagerPrivate();
47
~ModemManagerPrivate();
49
ModemInterfaceList modemInterfaces();
50
ModemInterface *findModemInterface(const QString &udi, const ModemInterface::GsmInterfaceType ifaceType);
53
void _k_modemInterfaceAdded(const QString &udi);
54
void _k_modemInterfaceRemoved(const QString &udi);
55
void _k_destroyed(QObject *object);
58
typedef QPair<ModemInterface *, QObject *> ModemInterfaceIfacePair;
60
ModemInterfaceList buildDeviceList(const QStringList &udiList);
61
ModemInterfaceIfacePair findRegisteredModemInterface(const QString &udi, const ModemInterface::GsmInterfaceType ifaceType);
63
QMap<QString, QMap<ModemInterface::GsmInterfaceType, ModemInterfaceIfacePair> > m_modemInterfaceMap;
64
ModemInterface m_invalidDevice;