dms: implement "Get PIN Status" request/response

This commit is contained in:
Aleksander Morgado 2012-06-27 18:19:23 +02:00
parent d6f104d772
commit 72000ab975
2 changed files with 60 additions and 1 deletions

View File

@ -246,5 +246,36 @@
"format" : "guint8" },
{ "name" : "Unblock Retries Left",
"format" : "guint8" } ],
"prerequisites": [ { "common-ref" : "No Success" } ] } ] }
"prerequisites": [ { "common-ref" : "No Success" } ] } ] },
// *********************************************************************************
{ "name" : "Get PIN Status",
"type" : "Message",
"service" : "DMS",
"id" : "0x002B",
"output" : [ { "common-ref" : "Operation Result" },
{ "name" : "PIN1 Status",
"id" : "0x11",
"mandatory" : "no",
"type" : "TLV",
"format" : "struct",
"contents" : [ { "name" : "Current Status",
"format" : "guint8",
"public-format" : "QmiDmsPinStatus" },
{ "name" : "Verify Retries Left",
"format" : "guint8" },
{ "name" : "Unblock Retries Left",
"format" : "guint8" } ] },
{ "name" : "PIN2 Status",
"id" : "0x12",
"mandatory" : "no",
"type" : "TLV",
"format" : "struct",
"contents" : [ { "name" : "Current Status",
"format" : "guint8",
"public-format" : "QmiDmsPinStatus" },
{ "name" : "Verify Retries Left",
"format" : "guint8" },
{ "name" : "Unblock Retries Left",
"format" : "guint8" } ] } ] }
]

View File

@ -121,4 +121,32 @@ typedef enum {
QMI_DMS_PIN_ID_PIN2 = 2
} QmiDmsPinId;
/*****************************************************************************/
/* Helper enums for the 'QMI DMS Get PIN Status' message */
/**
* QmiDmsPinStatus:
* @QMI_DMS_PIN_STATUS_NOT_INITIALIZED: Not initialized.
* @QMI_DMS_PIN_STATUS_ENABLED_NOT_VERIFIED: Enabled, not verified.
* @QMI_DMS_PIN_STATUS_ENABLED_VERIFIED: Enabled, verified.
* @QMI_DMS_PIN_STATUS_DISABLED: Disabled.
* @QMI_DMS_PIN_STATUS_BLOCKED: Blocked.
* @QMI_DMS_PIN_STATUS_PERMANENTLY_BLOCKED: Permanently Blocked.
* @QMI_DMS_PIN_STATUS_UNBLOCKED: Unblocked.
* @QMI_DMS_PIN_STATUS_CHANGED: Changed.
*
* The PIN status.
*/
typedef enum {
QMI_DMS_PIN_STATUS_NOT_INITIALIZED = 0,
QMI_DMS_PIN_STATUS_ENABLED_NOT_VERIFIED = 1,
QMI_DMS_PIN_STATUS_ENABLED_VERIFIED = 2,
QMI_DMS_PIN_STATUS_DISABLED = 3,
QMI_DMS_PIN_STATUS_BLOCKED = 4,
QMI_DMS_PIN_STATUS_PERMANENTLY_BLOCKED = 5,
QMI_DMS_PIN_STATUS_UNBLOCKED = 6,
QMI_DMS_PIN_STATUS_CHANGED = 7,
} QmiDmsPinStatus;
#endif /* _LIBQMI_GLIB_QMI_ENUMS_DMS_H_ */