PoiCategory class specifies a POI category. More...
Public Member Functions | |
| PoiCategory () | |
| Class constructor. | |
| PoiCategory (int notifDist, boolean notifOnRoad, String name, String sound) | |
| String | getName () |
| Returns POI category name. | |
| void | setName (String name) |
| Sets POI category name. | |
| String | getSound () |
| Returns sound file name as from the following pattern "sounds/(name).ogg". | |
| void | setSound (String fileName) |
| Sets sound file name as from the following pattern "sounds/(name).ogg". | |
| int | getNotificationDistance () |
| void | setNotificationDistance (int notificationDistance) |
| boolean | isNotifyOnlyWhenOnRoad () |
| void | setNotifyOnlyWhenOnRoad (boolean notifyOnlyWhenOnRoad) |
| String | toString () |
Static Public Member Functions | |
| static Bundle | writeBundle (PoiCategory poiCat) |
| static PoiCategory | readBundle (Bundle b) |
Public Attributes | |
| int | lNotificationDistance |
| Notification distance for POI warning. | |
| boolean | bNotifyOnlyWhenOnRoad |
| Notify only when POI is on road. | |
| String | strName |
| String | strSound |
PoiCategory class specifies a POI category.
It is used as a parameter for defining POI warnings in ApiPoi#setPoiWarning(PoiCategory, int) function.
| PoiCategory | ( | ) |
Class constructor.
Referenced by readBundle(), and writeBundle().
| PoiCategory | ( | int | notifDist, |
| boolean | notifOnRoad, | ||
| String | name, | ||
| String | sound ) |
| String getName | ( | ) |
Returns POI category name.
For default categories it is string representation of a number, for UPI(user defined POI) files it is its name.
Referenced by writeBundle().
| int getNotificationDistance | ( | ) |
References lNotificationDistance.
Referenced by writeBundle().
| String getSound | ( | ) |
Returns sound file name as from the following pattern "sounds/(name).ogg".
Referenced by writeBundle().
| boolean isNotifyOnlyWhenOnRoad | ( | ) |
References bNotifyOnlyWhenOnRoad.
Referenced by writeBundle().
|
static |
References PoiCategory().
Referenced by ApiPoi.getPoiCategoryList(), and ApiPoi.setPoiWarning().
| void setName | ( | String | name | ) |
Sets POI category name.
For default categories it is string representation of a number, for UPI(user defined POI) files it is its name.
| name | A string to POI category name. |
| void setNotificationDistance | ( | int | notificationDistance | ) |
| notificationDistance | notification distance for POI warning. |
| void setNotifyOnlyWhenOnRoad | ( | boolean | notifyOnlyWhenOnRoad | ) |
| notifyOnlyWhenOnRoad | notify only when POI is on road. |
| void setSound | ( | String | fileName | ) |
Sets sound file name as from the following pattern "sounds/(name).ogg".
| fileName | A string to sound file name as from the following pattern "sounds/(name).ogg" |
| String toString | ( | ) |
References bNotifyOnlyWhenOnRoad, lNotificationDistance, strName, and strSound.
|
static |
References PoiCategory(), getName(), getNotificationDistance(), getSound(), and isNotifyOnlyWhenOnRoad().
Referenced by ApiPoi.setPoiWarning().
| boolean bNotifyOnlyWhenOnRoad |
Notify only when POI is on road.
Referenced by isNotifyOnlyWhenOnRoad(), and toString().
| int lNotificationDistance |
Notification distance for POI warning.
Referenced by getNotificationDistance(), and toString().
| String strName |
Referenced by toString().
| String strSound |
Referenced by toString().