Telematics SDK - Interface Specification
v1.33.62
|
Public Member Functions | |
EtwsInfo (GeographicalScope geographicalScope, int msgId, int serialNumber, std::string languageCode, std::string messageText, MessagePriority priority, EtwsWarningType warningType, bool emergencyUserAlert, bool activatePopup, bool primary, std::vector< uint8_t > warningSecurityInformation) | |
GeographicalScope | getGeographicalScope () const |
int | getMessageId () const |
int | getSerialNumber () const |
std::string | getLanguageCode () const |
std::string | getMessageBody () const |
MessagePriority | getPriority () const |
int | getMessageCode () const |
int | getUpdateNumber () const |
EtwsWarningType | getEtwsWarningType () |
bool | isEmergencyUserAlert () |
bool | isPopupAlert () |
bool | isPrimary () |
std::vector< uint8_t > | getWarningSecurityInformation () |
Contains information elements for a GSM/UMTS/E-UTRAN/NG-RAN ETWS warning notification. Supported values for each element are defined in 3GPP TS 23.041.
telux::tel::EtwsInfo::EtwsInfo | ( | GeographicalScope | geographicalScope, |
int | msgId, | ||
int | serialNumber, | ||
std::string | languageCode, | ||
std::string | messageText, | ||
MessagePriority | priority, | ||
EtwsWarningType | warningType, | ||
bool | emergencyUserAlert, | ||
bool | activatePopup, | ||
bool | primary, | ||
std::vector< uint8_t > | warningSecurityInformation | ||
) |
EtwsInfo constructor.
[in] | geographicalScope | GeographicalScope |
[in] | msgId | Unique message identifier |
[in] | serialNumber | Serial number for message |
[in] | languageCode | ISO-639-1 language code for message |
[in] | messageText | Message text |
[in] | priority | MessagePriority |
[in] | warningType | EtwsWarningType |
[in] | emergencyUserAlert | If true message is emergency user alert otherwise not |
[in] | activatePopup | If true message message activate popup flag is set, otherwise popup flag is false. |
[in] | primary | If true ETWS message is primary notification otherwise not |
[in] | warningSecurityInformation | Buffer containing security information about ETWS primary notification such as timestamp and digital signature |
GeographicalScope telux::tel::EtwsInfo::getGeographicalScope | ( | ) | const |
Get the geographicalScope of cellbroadcast message.
int telux::tel::EtwsInfo::getMessageId | ( | ) | const |
Get cellbroadcast message identifier. The message identifier identifies the type of the cell broadcast message defined in spec 3GPP TS 23.041 9.4.1.2.2
int telux::tel::EtwsInfo::getSerialNumber | ( | ) | const |
Get the serial number of broadcast (geographical scope + message code + update number for GSM/UMTS).
std::string telux::tel::EtwsInfo::getLanguageCode | ( | ) | const |
Get the ISO-639-1 language code for cell broadcast message, or empty string if unspecified. This is not applicable for ETWS primary notification.
std::string telux::tel::EtwsInfo::getMessageBody | ( | ) | const |
Get the body of cell broadcast message, or empty string if no body available. For ETWS primary notification based on message identifier pre cannned message will be sent.
MessagePriority telux::tel::EtwsInfo::getPriority | ( | ) | const |
Get the priority for the cell broadcast message.
int telux::tel::EtwsInfo::getMessageCode | ( | ) | const |
Get the cellbroadcast message code.
int telux::tel::EtwsInfo::getUpdateNumber | ( | ) | const |
Get the cellbroadcast message update number.
EtwsWarningType telux::tel::EtwsInfo::getEtwsWarningType | ( | ) |
Get ETWS warning type.
bool telux::tel::EtwsInfo::isEmergencyUserAlert | ( | ) |
Returns the ETWS emergency user alert flag.
bool telux::tel::EtwsInfo::isPopupAlert | ( | ) |
Returns the ETWS activate popup flag.
bool telux::tel::EtwsInfo::isPrimary | ( | ) |
Returns the ETWS format flag. This flag determine whether ETWS message is primary notification or not.
std::vector<uint8_t> telux::tel::EtwsInfo::getWarningSecurityInformation | ( | ) |
Returns security information about ETWS primary notification such as timestamp and digital signature(applicable only for GSM).