Data Fields
GpsNiNotification Struct Reference

Represents an NI request. More...

Data Fields

GpsUserResponseType default_response
 Default response when time out. More...
 
char extras [GPS_NI_LONG_STRING_MAXLEN]
 A pointer to extra data. More...
 
GpsNiType ni_type
 An NI type used to distinguish different categories of NI events, such as GPS_NI_TYPE_VOICE, GPS_NI_TYPE_UMTS_SUPL, ... More...
 
int notification_id
 An ID generated by HAL to associate NI notifications and UI responses. More...
 
GpsNiNotifyFlags notify_flags
 Notification/verification options, combinations of GpsNiNotifyFlags constants. More...
 
char requestor_id [GPS_NI_SHORT_STRING_MAXLEN]
 Requestor ID. More...
 
GpsNiEncodingType requestor_id_encoding
 Client name decoding scheme. More...
 
size_t size
 set to sizeof(GpsNiNotification) More...
 
char text [GPS_NI_LONG_STRING_MAXLEN]
 Notification message. More...
 
GpsNiEncodingType text_encoding
 Client name decoding scheme. More...
 
int timeout
 Timeout period to wait for user response. More...
 

Detailed Description

Represents an NI request.

Definition at line 522 of file gps.h.

Field Documentation

GpsUserResponseType GpsNiNotification::default_response

Default response when time out.

Definition at line 552 of file gps.h.

char GpsNiNotification::extras[GPS_NI_LONG_STRING_MAXLEN]

A pointer to extra data.

Format: key_1 = value_1 key_2 = value_2

Definition at line 579 of file gps.h.

GpsNiType GpsNiNotification::ni_type

An NI type used to distinguish different categories of NI events, such as GPS_NI_TYPE_VOICE, GPS_NI_TYPE_UMTS_SUPL, ...

Definition at line 536 of file gps.h.

int GpsNiNotification::notification_id

An ID generated by HAL to associate NI notifications and UI responses.

Definition at line 530 of file gps.h.

GpsNiNotifyFlags GpsNiNotification::notify_flags

Notification/verification options, combinations of GpsNiNotifyFlags constants.

Definition at line 541 of file gps.h.

char GpsNiNotification::requestor_id[GPS_NI_SHORT_STRING_MAXLEN]

Requestor ID.

Definition at line 557 of file gps.h.

GpsNiEncodingType GpsNiNotification::requestor_id_encoding

Client name decoding scheme.

Definition at line 567 of file gps.h.

size_t GpsNiNotification::size

set to sizeof(GpsNiNotification)

Definition at line 524 of file gps.h.

char GpsNiNotification::text[GPS_NI_LONG_STRING_MAXLEN]

Notification message.

It can also be used to store client_id in some cases

Definition at line 562 of file gps.h.

GpsNiEncodingType GpsNiNotification::text_encoding

Client name decoding scheme.

Definition at line 572 of file gps.h.

int GpsNiNotification::timeout

Timeout period to wait for user response.

Set to 0 for no time out limit.

Definition at line 547 of file gps.h.