Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QCBSMessage class specifies the contents of a cell broadcast message. More...
#include <QCBSMessage>
The QCBSMessage class specifies the contents of a cell broadcast message.
Cell broadcast messages arrive asynchronously from the network and are delivered to applications via the QCellBroadcast::broadcast() signal. The most common use of cell broadcast messages is to display cell location information.
Cell broadcast messages are uniquely identified by a combination of scope(), messageCode(), and updateNumber(). Together with the cell identifier, QNetworkRegistration::cellId(), and the location area code, QNetworkRegistration::locationAreaCode(), client applications can determine if a message is new, or a repetition of an existing message.
See also QCellBroadcast and QNetworkRegistration.
Describes the geographical scope of a cell broadcast message, which is used to help determine if a cell broadcast message is new.
Constant | Value | Description |
---|---|---|
QCBSMessage::CellWide | 0 | The message is specific to the current cell. If a message arrives with the same messageCode() and updateNumber() as an existing message, but QNetworkRegistration::cellId() has changed, then the message is new rather than a repetition. Messages with the CellWide scope should be displayed immediately if possible. |
QCBSMessage::PLMNWide | 1 | The message is specific to the network operator, regardless of cell. |
QCBSMessage::LocationAreaWide | 2 | The message is specific to the location area. If a message arrives with the same messageCode() and updateNumber() as an existing message, but the QNetworkRegistration::locationAreaCode() has changed, then the message is new rather than a repetition. |
QCBSMessage::CellWide2 | 3 | Same as CellWide, but the message does not need to be displayed immediately. |
Describes the language that a cell broadcast message is written in.
Constant | Value | Description |
---|---|---|
QCBSMessage::German | 0 | The message is written in German. |
QCBSMessage::English | 1 | The message is written in English. |
QCBSMessage::Italian | 2 | The message is written in Italian. |
QCBSMessage::French | 3 | The message is written in French. |
QCBSMessage::Spanish | 4 | The message is written in Spanish. |
QCBSMessage::Dutch | 5 | The message is written in Dutch. |
QCBSMessage::Swedish | 6 | The message is written in Swedish. |
QCBSMessage::Danish | 7 | The message is written in Danish. |
QCBSMessage::Portuguese | 8 | The message is written in Portuguese. |
QCBSMessage::Finnish | 9 | The message is written in Finnish. |
QCBSMessage::Norwegian | 10 | The message is written in Norwegian. |
QCBSMessage::Greek | 11 | The message is written in Greek. |
QCBSMessage::Turkish | 12 | The message is written in Turkish. |
QCBSMessage::Hungarian | 13 | The message is written in Hungarian. |
QCBSMessage::Polish | 14 | The message is written in Polish. |
QCBSMessage::Unspecified | 15 | The language that the message is written in is unspecified. |
Constructs an empty QCBSMessage.
Constructs a copy of msg.
Destructs the QCBSMessage.
Returns the channel number for this cell broadcast message. The most common channel number is 50, indicating cell location information.
See also setChannel().
Convert a binary pdu into a CBS message, according to 3GPP TS 03.41 and 3GPP TS 23.041.
Returns the language that this cell broadcast message is expressed in. This can allow applications to distinguish between multiple copies of the same information in different languages.
See also setLanguage().
Returns the cell broadcast message code.
See also setMessageCode().
Returns the number of pages that make up this cell broadcast message.
See also setNumPages().
Returns the page number for this cell broadcast message if the information that it contains is split over multiple pages.
See also setPage().
Returns the geographical scope of the message.
See also setScope().
Sets the channel number for this cell broadcast message to chan.
See also channel().
Sets the language that this cell broadcast message is expressed in to lang.
See also language().
Sets the cell broadcast message code to num.
See also messageCode().
Sets the number of pages in this cell broadcast message to npages.
See also numPages().
Sets the page number for this cell broadcast message to page.
See also page().
Sets the geographical scope of the message to scope.
See also scope().
Sets the text that is contained in this cell broadcast message to str.
See also text().
Sets the update number for this cell broadcast message to num.
See also updateNumber().
Returns the text that is contained in this cell broadcast message.
See also setText().
Convert this CBS message into its binary PDU form, according to 3GPP TS 03.41 and 3GPP TS 23.041.
Returns the update number for this cell broadcast message.
See also setUpdateNumber().
Returns true if this cell broadcast message object is equal to other; otherwise returns false.
Assigns a copy of msg to this object.
Returns true if this cell broadcast message object is equal to other; otherwise returns false.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |