/usr/include/solid/control/modemmanager.h is in kde-workspace-dev 4:4.8.4-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | /* This file is part of the KDE project
Copyright (C) 2010 Lamarque Souza <lamarque@gmail.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef SOLID_CONTROL_MODEMMANAGER
#define SOLID_CONTROL_MODEMMANAGER
#include <QtCore/QObject>
#include <QtCore/QVariant>
#include <solid/networking.h>
#include "solid_control_export.h"
#include "modemmanagerinterface.h"
#include "modeminterface.h"
namespace Solid
{
namespace Control
{
namespace Ifaces
{
class ModemManager;
}
class Network;
typedef QList<ModemInterface*> ModemInterfaceList;
/**
* This class allow to query the underlying system to discover the available
* modem interfaces and reachable network. It has also the
* responsibility to notify when a modem interface or a modem appear or disappear.
*
* Note that it's implemented as a singleton and encapsulates the backend logic.
*/
namespace ModemManager
{
/**
* Get the manager connection state
*/
SOLIDCONTROL_EXPORT Solid::Networking::Status status();
/**
* Retrieves the list of all modem interfaces Unique Device Identifiers (UDIs)
* in the system. This method is the equivalent of enumerateDevices described
* in Modem Manager specification.
* @return the list of modem interfaces available in this system
*/
SOLIDCONTROL_EXPORT ModemInterfaceList modemInterfaces();
/**
* Find a new ModemManagerInterface object given its UDNI. This pointer is owned by the Solid
* infrastructure.
*
* @param udi the identifier of the modem interface to find
* @returns a valid ModemManagerInterface object if there's a device having the given UDI, an invalid one otherwise
*/
SOLIDCONTROL_EXPORT ModemInterface * findModemInterface(const QString &udi, const ModemInterface::GsmInterfaceType ifaceType);
/**
* Retrieves the interface types supported by this modem manager.
*
* @return the interface types supported by the modem manager
*
* @since 4.5
*/
SOLIDCONTROL_EXPORT Solid::Control::ModemInterface::Type supportedInterfaceTypes();
class SOLIDCONTROL_EXPORT Notifier : public QObject
{
Q_OBJECT
Q_SIGNALS:
/**
* This signal is emitted when the system's connection state changes
*/
void statusChanged(Solid::Networking::Status status);
/**
* This signal is emitted when a new modem interface is available.
*
* @param udi the network interface identifier
*/
void modemInterfaceAdded(const QString &udi);
/**
* This signal is emitted when a network interface is not available anymore.
*
* @param udi the network interface identifier
*/
void modemInterfaceRemoved(const QString &udi);
};
SOLIDCONTROL_EXPORT Notifier *notifier();
}
} // Control
} // Solid
#endif
|