|
Qt bindings for oFono cellular services 1.30
|
This class is used to access an oFono modem object and its properties. More...
#include <ofonomodem.h>
Public Types | |
| enum | SelectionSetting { AutomaticSelect , ManualSelect } |
| How the modem object should select a modem. More... | |
Public Slots | |
| void | setPowered (bool powered) |
| void | setOnline (bool online) |
| void | setLockdown (bool lockdown) |
Public Member Functions | |
| OfonoModem (SelectionSetting setting, const QString &modemPath, QObject *parent=0) | |
| bool | isValid () const |
| Returns true if D-Bus modem object exists. | |
| QString | path () const |
| Returns the D-Bus object path of the modem. | |
| QString | errorName () const |
| Get the D-Bus error name of the last operation. | |
| QString | errorMessage () const |
| Get the D-Bus error message of the last operation. | |
| bool | powered () const |
| bool | online () const |
| bool | lockdown () const |
| bool | emergency () const |
| QString | name () const |
| QString | manufacturer () const |
| QString | model () const |
| QString | revision () const |
| QString | serial () const |
| QString | type () const |
| QStringList | features () const |
| QStringList | interfaces () const |
This class is used to access an oFono modem object and its properties.
oFono modem properties are documented in http://git.kernel.org/?p=network/ofono/ofono.git;a=blob_plain;f=doc/modem-api.txt
How the modem object should select a modem.
| OfonoModem::OfonoModem | ( | SelectionSetting | setting, |
| const QString & | modemPath, | ||
| QObject * | parent = 0 |
||
| ) |
| setting | sets the modem selection policy for the object |
| modemPath | if modem selection policy is ManualSelect, then this contains the D-Bus path to the modem object. Otherwise, it is ignored. |
| QString OfonoModem::errorMessage | ( | ) | const |
Get the D-Bus error message of the last operation.
Returns the D-Bus error message of the last operation (setting a property or calling a method) if it has failed
| QString OfonoModem::errorName | ( | ) | const |
Get the D-Bus error name of the last operation.
Returns the D-Bus error name of the last operation (setting a property or calling a method) if it has failed