Qmi.Client¶
- Subclasses:
Qmi.ClientAtr
,Qmi.ClientDms
,Qmi.ClientDpm
,Qmi.ClientDsd
,Qmi.ClientFox
,Qmi.ClientGas
,Qmi.ClientGms
,Qmi.ClientIms
,Qmi.ClientImsa
,Qmi.ClientImsp
,Qmi.ClientLoc
,Qmi.ClientNas
,Qmi.ClientOma
,Qmi.ClientPbm
,Qmi.ClientPdc
,Qmi.ClientPds
,Qmi.ClientQos
,Qmi.ClientSar
,Qmi.ClientSsc
,Qmi.ClientUim
,Qmi.ClientVoice
,Qmi.ClientWda
,Qmi.ClientWds
,Qmi.ClientWms
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
ID of the client registered into the QMI device |
||
r/w |
The QMI device |
||
r/w |
QMI service this client is using |
||
r |
Whether the client is valid and usable |
||
r/w |
Major version of the service handled by this client |
||
r/w |
Minor version of the service handled by this client |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Qmi.Client(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
The
Qmi.Client
structure contains private data and should only be accessed using the provided API.New in version 1.0.
- check_version(major, minor)¶
- Parameters:
- Returns:
True
if the version of the service is greater or equal than the one given,False
otherwise.- Return type:
Checks if the version of the service handled by this
Qmi.Client
is greater or equal than the given version.New in version 1.0.
- get_cid()¶
- Returns:
the client ID.
- Return type:
Get the client ID of this
Qmi.Client
.New in version 1.0.
- get_device()¶
- Returns:
a
GObject.Object
that must be freed withGObject.Object.unref
().- Return type:
Get the
Qmi.Device
associated with thisQmi.Client
.New in version 1.0.
- get_next_transaction_id()¶
- Returns:
the next transaction ID.
- Return type:
Acquire the next transaction ID of this
Qmi.Client
. The internal transaction ID gets incremented.New in version 1.0.
- get_service()¶
- Returns:
a
Qmi.Service
.- Return type:
Get the service being used by this
Qmi.Client
.New in version 1.0.
- get_version(major, minor)¶
- Parameters:
- Returns:
- Return type:
Get the version of the service handled by this
Qmi.Client
.New in version 1.0.
- is_valid()¶
-
Checks whether
Qmi.Client
is a valid and usable client.The client is marked as invalid as soon as the client id is released or when the associated
Qmi.Device
is closed.This method may be used if the caller needs to ensure validity before a command is attempted, e.g. if the lifecycle of the object is managed in some other place and the caller just has a reference to the
Qmi.Client
.New in version 1.20.
- peek_device()¶
- Returns:
a
GObject.Object
. Do not free the returned object, it is owned by self.- Return type:
Get the
Qmi.Device
associated with thisQmi.Client
, without increasing the reference count on the returned object.New in version 1.0.
- do_process_indication(message) virtual¶
- Parameters:
message (
GLib.ByteArray
) –
Property Details¶
- Qmi.Client.props.client_cid¶
-
ID of the client registered into the QMI device
New in version 1.0.
- Qmi.Client.props.client_device¶
- Name:
client-device
- Type:
- Default Value:
- Flags:
The QMI device
New in version 1.0.
- Qmi.Client.props.client_service¶
- Name:
client-service
- Type:
- Default Value:
- Flags:
QMI service this client is using
New in version 1.0.
- Qmi.Client.props.client_valid¶
-
Whether the client is valid and usable
New in version 1.20.
- Qmi.Client.props.client_version_major¶
-
Major version of the service handled by this client
New in version 1.0.