summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-09-03 14:41:27 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-09-06 19:53:02 +0200
commit77fd9daac71d389bd0acfcf1bc83d1dc7931b663 (patch)
tree8e9aa3bc40b852f4058024e078694235aaf6f000
parentfc634a1f860bd1818149a7b9c4cd9e28e5627735 (diff)
wms: implement "Event Report" indication
-rw-r--r--data/qmi-service-wms.json76
-rw-r--r--libqmi-glib/qmi-enums-wms.h67
2 files changed, 142 insertions, 1 deletions
diff --git a/data/qmi-service-wms.json b/data/qmi-service-wms.json
index 824bc10..7c3517b 100644
--- a/data/qmi-service-wms.json
+++ b/data/qmi-service-wms.json
@@ -13,6 +13,10 @@
"type" : "Message-ID-Enum" },
// *********************************************************************************
+ { "name" : "QMI Indication WMS",
+ "type" : "Indication-ID-Enum" },
+
+ // *********************************************************************************
{ "name" : "Reset",
"type" : "Message",
"service" : "WMS",
@@ -34,6 +38,76 @@
"contents" : [ { "name" : "Report",
"format" : "guint8",
"public-format" : "gboolean" } ] } ],
- "output" : [ { "common-ref" : "Operation Result" } ] }
+ "output" : [ { "common-ref" : "Operation Result" } ] },
+
+ { "name" : "Event Report",
+ "type" : "Indication",
+ "service" : "WMS",
+ "id" : "0x0001",
+ "output" : [ { "name" : "MT Message",
+ "id" : "0x10",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Storage Type",
+ "format" : "guint8",
+ "public-format" : "QmiWmsStorageType" },
+ { "name" : "Memory Index",
+ "format" : "guint32" } ] },
+ { "name" : "Transfer Route MT Message",
+ "id" : "0x11",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Ack Indicator",
+ "format" : "guint8",
+ "public-format" : "QmiWmsAckIndicator" },
+ { "name" : "Transaction ID",
+ "format" : "guint32" },
+ { "name" : "Format",
+ "format" : "guint8",
+ "public-format" : "QmiWmsMessageFormat" },
+ { "name" : "Raw Data",
+ "format" : "array",
+ "array-size" : { "format" : "guint16" },
+ "array-element" : { "format" : "guint8" } } ] },
+ { "name" : "Message Mode",
+ "id" : "0x12",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "guint8",
+ "public-format" : "QmiWmsMessageMode" },
+ { "name" : "ETWS Message",
+ "id" : "0x13",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "sequence",
+ "contents" : [ { "name" : "Notification Type",
+ "format" : "guint8",
+ "public-format" : "QmiWmsNotificationType" },
+ { "name" : "Raw Data",
+ "format" : "array",
+ "array-size" : { "format" : "guint16" },
+ "array-element" : { "format" : "guint8" } } ] },
+ { "name" : "ETWS PLMN Information",
+ "id" : "0x14",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "sequence",
+ "contents" : [ { "name" : "MCC",
+ "format" : "guint16" },
+ { "name" : "MNC",
+ "format" : "guint16" } ] },
+ { "name" : "SMSC Address",
+ "id" : "0x15",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "string" },
+ { "name" : "SMS on IMS",
+ "id" : "0x16",
+ "mandatory" : "no",
+ "type" : "TLV",
+ "format" : "guint8",
+ "public-format" : "gboolean" } ] }
]
diff --git a/libqmi-glib/qmi-enums-wms.h b/libqmi-glib/qmi-enums-wms.h
index 5f95b81..84e609d 100644
--- a/libqmi-glib/qmi-enums-wms.h
+++ b/libqmi-glib/qmi-enums-wms.h
@@ -23,4 +23,71 @@
#ifndef _LIBQMI_GLIB_QMI_ENUMS_WMS_H_
#define _LIBQMI_GLIB_QMI_ENUMS_WMS_H_
+/*****************************************************************************/
+/* Helper enums for the 'QMI WMS Event Report' indication */
+
+/**
+ * QmiWmsStorageType:
+ * @QMI_WMS_STORAGE_TYPE_UIM: Message stored in UIM.
+ * @QMI_WMS_STORAGE_TYPE_NV: Message stored in non-volatile memory.
+ *
+ * Type of messaging storage
+ */
+typedef enum {
+ QMI_WMS_STORAGE_TYPE_UIM = 0x00,
+ QMI_WMS_STORAGE_TYPE_NV = 0x01
+} QmiWmsStorageType;
+
+/**
+ * QmiWmsAckIndicator:
+ * @QMI_WMS_ACK_INDICATOR_SEND: ACK needs to be sent.
+ * @QMI_WMS_ACK_INDICATOR_DO_NOT_SEND: ACK doesn't need to be sent.
+ *
+ * Indication of whether ACK needs to be sent or not.
+ */
+typedef enum {
+ QMI_WMS_ACK_INDICATOR_SEND = 0x00,
+ QMI_WMS_ACK_INDICATOR_DO_NOT_SEND = 0x01
+} QmiWmsAckIndicator;
+
+/**
+ * QmiWmsMessageFormat:
+ * @QMI_WMS_MESSAGE_FORMAT_CDMA: CDMA message.
+ * @QMI_WMS_MESSAGE_FORMAT_GSM_WCDMA_POINT_TO_POINT: Point-to-point 3GPP message.
+ * @QMI_WMS_MESSAGE_FORMAT_GSM_WCDMA_BROADCAST: Broadcast 3GPP message.
+ *
+ * Type of message.
+ */
+typedef enum {
+ QMI_WMS_MESSAGE_FORMAT_CDMA = 0x00,
+ QMI_WMS_MESSAGE_FORMAT_GSM_WCDMA_POINT_TO_POINT = 0x06,
+ QMI_WMS_MESSAGE_FORMAT_GSM_WCDMA_BROADCAST = 0x07
+} QmiWmsMessageFormat;
+
+/**
+ * QmiWmsMessageMode:
+ * @QMI_WMS_MESSAGE_MODE_CDMA: Message sent using 3GPP2 technologies.
+ * @QMI_WMS_MESSAGE_MODE_GSM_WCDMA: Message sent using 3GPP technologies.
+ *
+ * Message mode.
+ */
+typedef enum {
+ QMI_WMS_MESSAGE_MODE_CDMA = 0x00,
+ QMI_WMS_MESSAGE_MODE_GSM_WCDMA = 0x01
+} QmiWmsMessageMode;
+
+/**
+ * QmiWmsNotificationType:
+ * @QMI_WMS_NOTIFICATION_TYPE_PRIMARY: Primary.
+ * @QMI_WMS_NOTIFICATION_TYPE_SECONDARY_GSM: Secondary GSM.
+ * @QMI_WMS_NOTIFICATION_TYPE_SECONDARY_UMTS: Secondary UMTS.
+ *
+ * Type of notification.
+ */
+typedef enum {
+ QMI_WMS_NOTIFICATION_TYPE_PRIMARY = 0x00,
+ QMI_WMS_NOTIFICATION_TYPE_SECONDARY_GSM = 0x01,
+ QMI_WMS_NOTIFICATION_TYPE_SECONDARY_UMTS = 0x02
+} QmiWmsNotificationType;
+
#endif /* _LIBQMI_GLIB_QMI_ENUMS_WMS_H_ */