ModemManager::Bearer

Search for usage in LXR

ModemManager::Bearer Class Reference

#include <bearer.h>

Inheritance diagram for ModemManager::Bearer:

Public Types

typedef QList< PtrList
 
typedef QSharedPointer< BearerPtr
 
- Public Types inherited from QObject
typedef  QObjectList
 

Signals

void connectedChanged (bool connected)
 
void interfaceChanged (const QString &iface)
 
void ip4ConfigChanged (const ModemManager::IpConfig &ipv4Config)
 
void ip6ConfigChanged (const ModemManager::IpConfig &ipv6Config)
 
void ipTimeoutChanged (uint ipTimeout)
 
void propertiesChanged (const QVariantMap &properties)
 
void suspendedChanged (bool suspended)
 

Public Member Functions

 Bearer (const QString &path, QObject *parent=nullptr)
 
QDBusPendingReply< void > connectBearer ()
 
QDBusPendingReply< void > disconnectBearer ()
 
QString interface () const
 
IpConfig ip4Config () const
 
IpConfig ip6Config () const
 
uint ipTimeout () const
 
bool isConnected () const
 
bool isSuspended () const
 
QVariantMap properties () const
 
void setTimeout (int timeout)
 
int timeout () const
 
QString uni () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 

Additional Inherited Members

- Properties inherited from QObject
 objectName
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Detailed Description

The Bearer class.

This class provides access to specific actions that may be performed on available bearers.

Definition at line 130 of file bearer.h.

Member Typedef Documentation

◆ List

Definition at line 135 of file bearer.h.

◆ Ptr

Constructor & Destructor Documentation

◆ Bearer()

Bearer::Bearer ( const QString & path,
QObject * parent = nullptr )
explicit

Definition at line 155 of file bearer.cpp.

◆ ~Bearer()

Bearer::~Bearer ( )
override

Definition at line 178 of file bearer.cpp.

Member Function Documentation

◆ connectBearer()

QDBusPendingReply< void > Bearer::connectBearer ( )

Requests activation of a packet data connection with the network using this bearer's properties.

Upon successful activation, the modem can send and receive packet data and, depending on the addressing capability of the modem, a connection manager may need to start PPP, perform DHCP, or assign the IP address returned by the modem to the data interface. Upon successful return, the ip4Config() and/or ip6Config() properties become valid and may contain IP configuration information for the data interface associated with this bearer.

Definition at line 225 of file bearer.cpp.

◆ disconnectBearer()

QDBusPendingReply< void > Bearer::disconnectBearer ( )

Disconnect and deactivate this packet data connection.

Any ongoing data session will be terminated and IP addresses become invalid when this method is called.

Definition at line 231 of file bearer.cpp.

◆ interface()

QString Bearer::interface ( ) const
Returns
the operating system name for the network data interface that provides packet data using this bearer.

Connection managers must configure this interface depending on the IP "method" given by the ip4Config() or ip6Config() properties set by bearer activation.

If MM_BEARER_IP_METHOD_STATIC or MM_BEARER_IP_METHOD_DHCP methods are given, the interface will be an ethernet-style interface suitable for DHCP or setting static IP configuration on, while if the MM_BEARER_IP_METHOD_PPP method is given, the interface will be a serial TTY which must then have PPP run over it.

Definition at line 183 of file bearer.cpp.

◆ ip4Config()

ModemManager::IpConfig Bearer::ip4Config ( ) const

If the bearer was configured for IPv4 addressing, upon activation this property contains the addressing details for assignment to the data interface.

Definition at line 201 of file bearer.cpp.

◆ ip6Config()

ModemManager::IpConfig Bearer::ip6Config ( ) const

If the bearer was configured for IPv6 addressing, upon activation this property contains the addressing details for assignment to the data interface.

Definition at line 207 of file bearer.cpp.

◆ ipTimeout()

uint Bearer::ipTimeout ( ) const
Returns
maximum time to wait for a successful IP establishment, when PPP is used.

Definition at line 213 of file bearer.cpp.

◆ isConnected()

bool Bearer::isConnected ( ) const
Returns
whether or not the bearer is connected and thus whether packet data communication using this bearer is possible.

Definition at line 189 of file bearer.cpp.

◆ isSuspended()

bool Bearer::isSuspended ( ) const

In some devices, packet data service will be suspended while the device is handling other communication, like a voice call.

If packet data service is suspended (but not deactivated) this property will be true

Definition at line 195 of file bearer.cpp.

◆ properties()

QVariantMap Bearer::properties ( ) const
Returns
map of properties used when creating the bearer
See also
IpConfig

Definition at line 219 of file bearer.cpp.

◆ setTimeout()

void Bearer::setTimeout ( int timeout)

Sets the timeout in milliseconds for all async method DBus calls.

-1 means the default DBus timeout (usually 25 seconds).

Definition at line 237 of file bearer.cpp.

◆ timeout()

int Bearer::timeout ( ) const

Returns the current value of the DBus timeout in milliseconds.

-1 means the default DBus timeout (usually 25 seconds).

Definition at line 243 of file bearer.cpp.

◆ uni()

QString Bearer::uni ( ) const
Returns
the DBUS path (uni) to the object

Definition at line 311 of file bearer.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.