diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-03 19:07:28 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-06 19:53:02 +0200 |
commit | 38602a11929ce748f6198b3b22b9983b54a834ba (patch) | |
tree | bd96b72d56a0fbc9ba55953469239ae40f40d413 | |
parent | 74cd71c101fcccbaef01a91e8aa5640bda39f9c6 (diff) |
wms: implement "Raw Read" request/response
-rw-r--r-- | data/qmi-service-wms.json | 48 | ||||
-rw-r--r-- | libqmi-glib/qmi-enums-wms.h | 23 |
2 files changed, 69 insertions, 2 deletions
diff --git a/data/qmi-service-wms.json b/data/qmi-service-wms.json index 90e7f37..ad40d9e 100644 --- a/data/qmi-service-wms.json +++ b/data/qmi-service-wms.json @@ -246,6 +246,52 @@ "mandatory" : "yes", "type" : "TLV", "format" : "guint32", - "prerequisites" : [ { "common-ref" : "Success" } ] } ] } + "prerequisites" : [ { "common-ref" : "Success" } ] } ] }, + + // ********************************************************************************* + { "name" : "Raw Read", + "type" : "Message", + "service" : "WMS", + "id" : "0x0022", + "version" : "1.1", + "input" : [ { "name" : "Message Memory Storage ID", + "id" : "0x01", + "mandatory" : "yes", + "type" : "TLV", + "format" : "sequence", + "contents" : [ { "name" : "Storage Type", + "format" : "guint8", + "public-format" : "QmiWmsStorageType" }, + { "name" : "Memory Index", + "format" : "guint32" } ] }, + { "name" : "Message Mode", + "id" : "0x10", + "mandatory" : "no", + "type" : "TLV", + "format" : "guint8", + "public-format" : "QmiWmsMessageMode" }, + { "name" : "SMS on IMS", + "id" : "0x11", + "mandatory" : "no", + "type" : "TLV", + "format" : "guint8", + "public-format" : "gboolean" } ], + "output" : [ { "common-ref" : "Operation Result" }, + { "name" : "Raw Message Data", + "id" : "0x01", + "mandatory" : "yes", + "type" : "TLV", + "format" : "sequence", + "contents" : [ { "name" : "Message Tag", + "format" : "guint8", + "public-format" : "QmiWmsMessageTagType" }, + { "name" : "Format", + "format" : "guint8", + "public-format" : "QmiWmsMessageFormat" }, + { "name" : "Raw Data", + "format" : "array", + "array-size" : { "format" : "guint16" }, + "array-element" : { "format" : "guint8" } } ], + "prerequisites" : [ { "common-ref" : "Success" } ] } ] } ] diff --git a/libqmi-glib/qmi-enums-wms.h b/libqmi-glib/qmi-enums-wms.h index 24115d7..35229af 100644 --- a/libqmi-glib/qmi-enums-wms.h +++ b/libqmi-glib/qmi-enums-wms.h @@ -55,13 +55,15 @@ typedef enum { * @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. + * @QMI_WMS_MESSAGE_FORMAT_MWI: Message Waiting Indicator. * * 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 + QMI_WMS_MESSAGE_FORMAT_GSM_WCDMA_BROADCAST = 0x07, + QMI_WMS_MESSAGE_FORMAT_MWI = 0x08 } QmiWmsMessageFormat; /** @@ -318,4 +320,23 @@ typedef enum { QMI_WMS_MESSAGE_DELIVERY_FAILURE_TYPE_PERMANENT = 0x01 } QmiWmsMessageDeliveryFailureType; +/*****************************************************************************/ +/* Helper enums for the 'QMI WMS Read Raw' request/response */ + +/** + * QmiWmsMessageTagType: + * @QMI_WMS_MESSAGE_TAG_TYPE_MT_READ: Received SMS, already read. + * @QMI_WMS_MESSAGE_TAG_TYPE_MT_NOT_READ: Received SMS, not read. + * @QMI_WMS_MESSAGE_TAG_TYPE_MO_SENT: Sent SMS. + * @QMI_WMS_MESSAGE_TAG_TYPE_MO_NOT_SENT: Not yet sent SMS. + * + * Type of message tag. + */ +typedef enum { + QMI_WMS_MESSAGE_TAG_TYPE_MT_READ = 0x00, + QMI_WMS_MESSAGE_TAG_TYPE_MT_NOT_READ = 0x01, + QMI_WMS_MESSAGE_TAG_TYPE_MO_SENT = 0x02, + QMI_WMS_MESSAGE_TAG_TYPE_MO_NOT_SENT = 0x03 +} QmiWmsMessageTagType; + #endif /* _LIBQMI_GLIB_QMI_ENUMS_WMS_H_ */ |