Qmi.ClientDpm¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
- Inherited:
 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
||
priv_unused  | 
r  | 
Class Details¶
- class Qmi.ClientDpm(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
The
Qmi.ClientDpmstructure contains private data and should only be accessed using the provided API.New in version 1.30.
- close_port(unused, timeout, cancellable, callback, *user_data)¶
 - Parameters:
 unused (
objectorNone) –None. This message doesn’t have any input bundle.timeout (
int) – maximum time to wait for the method to complete, in seconds.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.
Asynchronously sends a Close Port request to the device.
When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call
Qmi.ClientDpm.close_port_finish() to get the result of the operation.New in version 1.30.
- close_port_finish(res)¶
 - Parameters:
 res (
Gio.AsyncResult) – theGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toQmi.ClientDpm.close_port().- Raises:
 - Returns:
 a
Qmi.MessageDpmClosePortOutput, orNoneif error is set. The returned value should be freed withQmi.MessageDpmClosePortOutput.unref().- Return type:
 
Finishes an async operation started with
Qmi.ClientDpm.close_port().New in version 1.30.
- open_port(input, timeout, cancellable, callback, *user_data)¶
 - Parameters:
 input (
Qmi.MessageDpmOpenPortInput) – aQmi.MessageDpmOpenPortInput.timeout (
int) – maximum time to wait for the method to complete, in seconds.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.
Asynchronously sends a Open Port request to the device.
When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call
Qmi.ClientDpm.open_port_finish() to get the result of the operation.New in version 1.30.
- open_port_finish(res)¶
 - Parameters:
 res (
Gio.AsyncResult) – theGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toQmi.ClientDpm.open_port().- Raises:
 - Returns:
 a
Qmi.MessageDpmOpenPortOutput, orNoneif error is set. The returned value should be freed withQmi.MessageDpmOpenPortOutput.unref().- Return type:
 
Finishes an async operation started with
Qmi.ClientDpm.open_port().New in version 1.30.