44 #include <QtDBus/QtDBus> 45 #include <QtDBus/QDBusConnection> 46 #include <QtDBus/QDBusError> 47 #include <QtDBus/QDBusInterface> 48 #include <QtDBus/QDBusMessage> 49 #include <QtDBus/QDBusReply> 50 #include <QtDBus/QDBusPendingCallWatcher> 51 #include <QtDBus/QDBusObjectPath> 52 #include <QtDBus/QDBusPendingCall> 56 #ifndef QT_NO_BEARERMANAGEMENT 85 qDBusRegisterMetaType<ObjectPathProperties>();
86 qDBusRegisterMetaType<PathPropertiesList>();
100 modemList << modem.
path;
112 if (device.isPowered() && device.isOnline())
127 qWarning() <<
"PropertyCHanged not connected";
158 return map.
value(property);
169 return reply.
value();
277 qWarning() <<
"PropertyCHanged not connected";
306 return reply.
value();
314 var = map.
value(property);
394 operatorList << netop.
path;
408 qWarning() <<
"PropertyCHanged not connected";
440 var = map.
value(property);
450 return reply.
value();
506 qWarning() <<
"PropertyCHanged not connected";
538 var = map.
value(property);
548 return reply.
value();
609 qWarning() <<
"PropertyCHanged not connected";
641 var = map.
value(property);
651 return reply.
value();
674 contextList << context.
path;
706 qWarning() <<
"PropertyCHanged not connected";
738 var = map.
value(property);
748 return reply.
value();
825 qWarning() <<
"PropertyCHanged not connected";
857 var = map.
value(property);
867 return reply.
value();
907 qWarning() <<
"PropertyCHanged not connected";
932 qWarning() <<
"PropertyCHanged not connected";
942 qWarning() <<
"PropertyCHanged not connected";
959 var = map.
value(property);
969 return reply.
value();
984 #endif // QT_NO_BEARERMANAGEMENT The QVariant class acts like a union for the most common Qt data types.
static QDBusConnection dbusConnection
~QOfonoNetworkRegistrationInterface()
#define OFONO_SIM_MANAGER_INTERFACE
QVariant getProperty(const QString &)
QOfonoNetworkOperatorInterface(const QString &dbusPathName, QObject *parent=0)
const QDBusMessage & message() const
Returns the message that generated this call.
#define QT_END_NAMESPACE
This macro expands to.
QString path() const
Returns the object path that this interface is associated with.
QVariant qVariantFromValue(const T &)
~QOfonoNetworkOperatorInterface()
T qdbus_cast(const QDBusArgument &arg)
The QDBusArgument class is used to marshall and demarshall D-Bus arguments.
void propertyChangedContext(const QString &, const QString &, const QDBusVariant &)
void propertyChangedContext(const QString &, const QString &, const QDBusVariant &)
QVariantMap getProperties()
QDBusObjectPath currentModem()
bool setProp(const QString &, const QVariant &var)
#define OFONO_DATA_CONTEXT_INTERFACE
~QOfonoManagerInterface()
void connectNotify(const char *signal)
Catch signal connections.
The QDBusReply class stores the reply for a method call to a remote object.
QVariantMap getProperties()
QDBusConnection connection() const
Returns the connection this interface is assocated with.
QOfonoModemInterface(const QString &dbusModemPathName, QObject *parent=0)
void connectNotify(const char *signal)
Catch signal connections.
#define OFONO_NETWORK_OPERATOR_INTERFACE
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
static QDBusConnection systemBus()
Returns a QDBusConnection object opened with the system bus.
QOfonoSmsInterface(const QString &dbusModemPathName, QObject *parent=0)
~QOfonoDataConnectionManagerInterface()
QVariantMap getProperties()
The QString class provides a Unicode character string.
QMap< QString, QVariant > QVariantMap
The QObject class is the base class of all Qt objects.
QString getOperatorName()
QOfonoPrimaryDataContextInterface(const QString &dbusPathName, QObject *parent=0)
#define OFONO_DATA_CONNECTION_MANAGER_INTERFACE
void propertyChanged(const QString &, const QDBusVariant &)
#define OFONO_SMS_MANAGER_INTERFACE
ErrorType type() const
Returns this error's ErrorType.
void propertyChanged(const QString &, const QDBusVariant &value)
QVariant getProperty(const QString &)
QVariant getProperty(const QString &)
QOfonoDBusHelper(QObject *parent=0)
Q_CORE_EXPORT void qDebug(const char *,...)
~QOfonoPrimaryDataContextInterface()
void disconnectNotify(const char *signal)
Catch signal disconnections.
The QDBusAbstractInterface class is the base class for all D-Bus interfaces in the QtDBus binding...
void connectNotify(const char *signal)
Catch signal connections.
bool isValid() const
Returns true if no error occurred; otherwise, returns false.
void immediateMessage(const QString &message, const QVariantMap &info)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QString errorMessage() const
Returns the human-readable message associated with the error that was received.
QString path() const
Returns the path of the object that this message is being sent to (in the case of a method call) or b...
QVariantMap getProperties()
QVariantMap getProperties()
QList< QDBusObjectPath > getOperators()
#define OFONO_MANAGER_INTERFACE
QOfonoNetworkRegistrationInterface(const QString &dbusModemPathName, QObject *parent=0)
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
const T value(const Key &key) const
Returns the value associated with the key key.
The QStringList class provides a list of strings.
QDBusMessage callWithArgumentList(QDBus::CallMode mode, const QString &method, const QList< QVariant > &args)
Places a call to the remote method specified by method on this interface, using args as arguments...
const QDBusError & error()
Returns the error code that was returned from the remote function call.
Q_CORE_EXPORT void qWarning(const char *,...)
QOfonoSimInterface(const QString &dbusModemPathName, QObject *parent=0)
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
QString path() const
Returns this object path.
QVariant getProperty(const QString &)
QString defaultInterface()
QStringList getTechnologies()
void connectNotify(const char *signal)
Catch signal connections.
static QVariant fromValue(const T &value)
Returns a QVariant containing a copy of value.
#define OFONO_MODEM_INTERFACE
void propertyChanged(const QString &, const QDBusVariant &value)
void disconnectNotify(const char *signal)
Catch signal disconnections.
QVariantMap getProperties()
void disconnectNotify(const char *signal)
Catch signal disconnections.
void connectNotify(const char *signal)
Catch signal connections.
QString getManufacturer()
bool connect(const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot)
Connects the signal specified by the service, path, interface and name parameters to the slot slot in...
QDBusPendingCall asyncCallWithArgumentList(const QString &method, const QList< QVariant > &args)
Places a call to the remote method specified by method on this interface, using args as arguments...
bool setApn(const QString &name)
void connectNotify(const char *signal)
Catch signal connections.
void propertyChangedContext(const QString &, const QString &, const QDBusVariant &)
QVariant getProperty(const QString &)
QOfonoDataConnectionManagerInterface(const QString &dbusPathName, QObject *parent=0)
void propertyChangedContext(const QString &, const QString &, const QDBusVariant &)
#define OFONO_MANAGER_PATH
void connectNotify(const char *signal)
Catch signal connections.
void disconnectNotify(const char *signal)
Catch signal disconnections.
The QDBusConnection class represents a connection to the D-Bus bus daemon.
QVariant getProperty(const QString &)
void endStructure()
Closes a D-Bus structure opened with beginStructure().
QObject * parent() const
Returns a pointer to the parent object.
The QDBusObjectPath class enables the programmer to identify the OBJECT_PATH type provided by the D-B...
void sendMessage(const QString &to, const QString &message)
QList< QDBusObjectPath > getPrimaryContexts()
bool contains(const Key &key) const
Returns true if the map contains an item with key key; otherwise returns false.
QList< QDBusObjectPath > getModems()
QStringList getFeatures()
void disconnectNotify(const char *signal)
Catch signal disconnections.
QVariant property(const char *name) const
Returns the value of the object's name property.
void incomingMessage(const QString &message, const QVariantMap &info)
void beginStructure()
Opens a new D-Bus structure suitable for appending new arguments.
The QDBusMessage class represents one message sent or received over the D-Bus bus.
MessageType type() const
Returns the message type.
void propertyChanged(const QString &, const QDBusVariant &value)
QOfonoManagerInterface(QObject *parent=0)
QVariant getProperty(const QString &)
QVariantMap getSettings()
void disconnectNotify(const char *signal)
Catch signal disconnections.
void propertyChangedContext(const QString &, const QString &, const QDBusVariant &)
T value() const
Returns the stored value converted to the template type T.
QVariant getProperty(const QString &)
void disconnectNotify(const char *signal)
Catch signal disconnections.
QVariantMap getProperties()
QStringList getInterfaces()
QDataStream & operator<<(QDataStream &out, const QUrl &url)
Writes url url to the stream out and returns a reference to the stream.
QVariantMap getProperties()
Type value() const
Returns the remote function's calls return value.
void disconnectNotify(const char *signal)
Catch signal disconnections.
The QDBusVariant class enables the programmer to identify the variant type provided by the D-Bus type...
void propertyChanged(const QString &, const QDBusVariant &value)
The QList class is a template class that provides lists.
void connectNotify(const char *signal)
Catch signal connections.
QDBusMessage call(const QString &method, const QVariant &arg1=QVariant(), const QVariant &arg2=QVariant(), const QVariant &arg3=QVariant(), const QVariant &arg4=QVariant(), const QVariant &arg5=QVariant(), const QVariant &arg6=QVariant(), const QVariant &arg7=QVariant(), const QVariant &arg8=QVariant())
Calls the method method on this interface and passes the parameters to this function to the method...
QDataStream & operator>>(QDataStream &in, QUrl &url)
Reads a url into url from the stream in and returns a reference to the stream.
QString message() const
Returns the message that the callee associated with this error.
#define OFONO_NETWORK_REGISTRATION_INTERFACE