summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/qmi-service-pbm.json113
-rw-r--r--docs/reference/libqmi-glib/libqmi-glib-common.sections10
-rw-r--r--docs/reference/libqmi-glib/libqmi-glib-docs.xml1
-rw-r--r--libqmi-glib/qmi-enums-pbm.h51
4 files changed, 174 insertions, 1 deletions
diff --git a/data/qmi-service-pbm.json b/data/qmi-service-pbm.json
index 668ae9d..430ec72 100644
--- a/data/qmi-service-pbm.json
+++ b/data/qmi-service-pbm.json
@@ -31,6 +31,117 @@
"type" : "TLV",
"format" : "guint32",
"public-format" : "QmiPbmEventRegistrationFlag",
- "prerequisites" : [ { "common-ref" : "Success" } ] } ] }
+ "prerequisites" : [ { "common-ref" : "Success" } ] } ] },
+ // *********************************************************************************
+ { "name" : "Get Capabilities",
+ "type" : "Message",
+ "service" : "PBM",
+ "id" : "0x0002",
+ "version" : "1.0",
+ "input" : [ { "name" : "Phonebook Information",
+ "id" : "0x01",
+ "mandatory" : "yes",
+ "type" : "TLV",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Session Type",
+ "format" : "guint8",
+ "public-format" : "QmiPbmSessionType" },
+ { "name" : "Phonebook Type",
+ "format" : "guint16",
+ "public-format" : "QmiPbmPhonebookType" } ] } ],
+ "output" : [ { "common-ref" : "Operation Result" },
+ { "name" : "Capability Basic Information",
+ "id" : "0x10",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Session Type",
+ "format" : "guint8",
+ "public-format" : "QmiPbmSessionType" },
+ { "name" : "Phonebook Type",
+ "format" : "guint16",
+ "public-format" : "QmiPbmPhonebookType" },
+ { "name" : "Used Records",
+ "format" : "guint16" },
+ { "name" : "Maximum Records",
+ "format" : "guint16" },
+ { "name" : "Maximum Number Length",
+ "format" : "guint8" },
+ { "name" : "Maximum Name Length",
+ "format" : "guint8" } ],
+ "prerequisites" : [ { "common-ref" : "Success" } ] },
+ { "name" : "Group Capability",
+ "id" : "0x11",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Maximum Groups",
+ "format" : "guint8" },
+ { "name" : "Maximum Group Tag Length",
+ "format" : "guint8" } ],
+ "prerequisites" : [ { "common-ref" : "Success" } ] },
+ { "name" : "Additional Number Capability",
+ "id" : "0x12",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Maximum Additional Numbers",
+ "format" : "guint8" },
+ { "name" : "Maximum Additional Number Length",
+ "format" : "guint8" },
+ { "name" : "Maximum Additional Number Tag Length",
+ "format" : "guint8" } ],
+ "prerequisites" : [ { "common-ref" : "Success" } ] },
+ { "name" : "Email Capability",
+ "id" : "0x13",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Maximum Emails",
+ "format" : "guint8" },
+ { "name" : "Maximum Email Address Length",
+ "format" : "guint8" } ],
+ "prerequisites" : [ { "common-ref" : "Success" } ] },
+ { "name" : "Second Name Capability",
+ "id" : "0x14",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Maximum Second Name Length",
+ "format" : "guint8" } ],
+ "prerequisites" : [ { "common-ref" : "Success" } ] },
+ { "name" : "Hidden Records Capability",
+ "id" : "0x15",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Supported",
+ "format" : "guint8",
+ "public-format" : "gboolean" } ],
+ "prerequisites" : [ { "common-ref" : "Success" } ] },
+ { "name" : "Grouping Information Alpha String Capability",
+ "id" : "0x16",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Maximum Records",
+ "format" : "guint8" },
+ { "name" : "Used Records",
+ "format" : "guint8" },
+ { "name" : "Maximum String Length",
+ "format" : "guint8" } ],
+ "prerequisites" : [ { "common-ref" : "Success" } ] },
+ { "name" : "Additional Number Alpha String Capability",
+ "id" : "0x17",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Maximum Records",
+ "format" : "guint8" },
+ { "name" : "Used Records",
+ "format" : "guint8" },
+ { "name" : "Maximum String Length",
+ "format" : "guint8" } ],
+ "prerequisites" : [ { "common-ref" : "Success" } ] } ] }
]
diff --git a/docs/reference/libqmi-glib/libqmi-glib-common.sections b/docs/reference/libqmi-glib/libqmi-glib-common.sections
index f8a4fa8..ea8f759 100644
--- a/docs/reference/libqmi-glib/libqmi-glib-common.sections
+++ b/docs/reference/libqmi-glib/libqmi-glib-common.sections
@@ -627,13 +627,23 @@ qmi_pds_tracking_session_state_get_type
<SECTION>
<FILE>qmi-enums-pbm</FILE>
QmiPbmEventRegistrationFlag
+QmiPbmPhonebookType
+QmiPbmSessionType
<SUBSECTION Methods>
qmi_pbm_event_registration_flag_build_string_from_mask
+qmi_pbm_phonebook_type_build_string_from_mask
+qmi_pbm_session_type_get_string
<SUBSECTION Private>
qmi_pbm_event_registration_flag_get_string
+qmi_pbm_phonebook_type_get_string
+qmi_pbm_session_type_build_string_from_mask
<SUBSECTION Standard>
QMI_TYPE_PBM_EVENT_REGISTRATION_FLAG
+QMI_TYPE_PBM_PHONEBOOK_TYPE
+QMI_TYPE_PBM_SESSION_TYPE
qmi_pbm_event_registration_flag_get_type
+qmi_pbm_phonebook_type_get_type
+qmi_pbm_session_type_get_type
</SECTION>
<SECTION>
diff --git a/docs/reference/libqmi-glib/libqmi-glib-docs.xml b/docs/reference/libqmi-glib/libqmi-glib-docs.xml
index 861f6d8..d10a36d 100644
--- a/docs/reference/libqmi-glib/libqmi-glib-docs.xml
+++ b/docs/reference/libqmi-glib/libqmi-glib-docs.xml
@@ -213,6 +213,7 @@
<section>
<title>PDS Requests</title>
<xi:include href="xml/qmi-message-pbm-indication-register.xml"/>
+ <xi:include href="xml/qmi-message-pbm-get-capabilities.xml"/>
</section>
</chapter>
diff --git a/libqmi-glib/qmi-enums-pbm.h b/libqmi-glib/qmi-enums-pbm.h
index 24db1e2..2b10872 100644
--- a/libqmi-glib/qmi-enums-pbm.h
+++ b/libqmi-glib/qmi-enums-pbm.h
@@ -58,4 +58,55 @@ typedef enum {
QMI_PBM_EVENT_REGISTRATION_FLAG_GAS_UPDATE = 1 << 5,
} QmiPbmEventRegistrationFlag;
+/*****************************************************************************/
+/* Helper enums for the 'Get Capabilities' request */
+
+/**
+ * QmiPbmPhonebookType:
+ * @QMI_PBM_PHONEBOOK_TYPE_ADN: Abbreviated Dialing Number.
+ * @QMI_PBM_PHONEBOOK_TYPE_FDN: Fixed Dialing Number.
+ * @QMI_PBM_PHONEBOOK_TYPE_MSISDN: Mobile Subscriber Integrated Services Digital Network.
+ * @QMI_PBM_PHONEBOOK_TYPE_MBDN: Mail Box Dialing Number.
+ * @QMI_PBM_PHONEBOOK_TYPE_SDN: Service Dialing Number.
+ * @QMI_PBM_PHONEBOOK_TYPE_BDN: Barred Dialing Number.
+ * @QMI_PBM_PHONEBOOK_TYPE_LND: Last Number Dialed.
+ * @QMI_PBM_PHONEBOOK_TYPE_MBN: Mail Box Number.
+ *
+ * Phonebook type.
+ */
+typedef enum {
+ QMI_PBM_PHONEBOOK_TYPE_ADN = 1 << 0,
+ QMI_PBM_PHONEBOOK_TYPE_FDN = 1 << 1,
+ QMI_PBM_PHONEBOOK_TYPE_MSISDN = 1 << 2,
+ QMI_PBM_PHONEBOOK_TYPE_MBDN = 1 << 3,
+ QMI_PBM_PHONEBOOK_TYPE_SDN = 1 << 4,
+ QMI_PBM_PHONEBOOK_TYPE_BDN = 1 << 5,
+ QMI_PBM_PHONEBOOK_TYPE_LND = 1 << 6,
+ QMI_PBM_PHONEBOOK_TYPE_MBN = 1 << 7,
+} QmiPbmPhonebookType;
+
+/**
+ * QmiPbmSessionType:
+ * @QMI_PBM_SESSION_TYPE_GW_PRIMARY: Access phonebooks under GSM DF (ICC) or USIM application (UICC).
+ * @QMI_PBM_SESSION_TYPE_1X_PRIMARY: Access phonebooks under CDMA DF (ICC) or CSIM application (UICC).
+ * @QMI_PBM_SESSION_TYPE_GW_SECONDARY: Access phonebooks under GSM DF (ICC) or USIM application (UICC). Dual standby.
+ * @QMI_PBM_SESSION_TYPE_1X_SECONDARY: Access phonebooks under CDMA DF (ICC) or CSIM application (UICC). Dual standby.
+ * @QMI_PBM_SESSION_TYPE_NONPROVISIONING_SLOT_1: Access phonebooks under a nonprovisioning application in slot 1.
+ * @QMI_PBM_SESSION_TYPE_NONPROVISIONING_SLOT_2: Access phonebooks under a nonprovisioning application in slot 2.
+ * @QMI_PBM_SESSION_TYPE_GLOBAL_PHONEBOOK_SLOT_1: Access phonebooks that are not in any application of the card in slot 1.
+ * @QMI_PBM_SESSION_TYPE_GLOBAL_PHONEBOOK_SLOT_2: Access phonebooks that are not in any application of the card in slot 2.
+ *
+ * Type of phonebook management session.
+ */
+typedef enum {
+ QMI_PBM_SESSION_TYPE_GW_PRIMARY = 0,
+ QMI_PBM_SESSION_TYPE_1X_PRIMARY = 1,
+ QMI_PBM_SESSION_TYPE_GW_SECONDARY = 2,
+ QMI_PBM_SESSION_TYPE_1X_SECONDARY = 3,
+ QMI_PBM_SESSION_TYPE_NONPROVISIONING_SLOT_1 = 4,
+ QMI_PBM_SESSION_TYPE_NONPROVISIONING_SLOT_2 = 5,
+ QMI_PBM_SESSION_TYPE_GLOBAL_PHONEBOOK_SLOT_1 = 6,
+ QMI_PBM_SESSION_TYPE_GLOBAL_PHONEBOOK_SLOT_2 = 7,
+} QmiPbmSessionType;
+
#endif /* _LIBQMI_GLIB_QMI_ENUMS_PBM_H_ */