Copyright 2010-2017 Obihai Technology, Inc.
158
<
Notifications
list
=
'
*,my-mic,my-trash
'
width
=
'
$eval($sys.hidetabs?@dispW,($sys.ntabs==4)?@lkpg1,@lkpg1v2)
'
align
=
'
right
'
xpos
=
'
0
'
base-url
=
'
http://192.168.15.149/icons/
'
>
<
my-trash
icon
=
'
trash.png
'
refresh-id
=
'
mytrash
'
xspace
=
'
60
'
width
=
'
34
'
height
=
'
34
'
/>
<
my-mic
icon
=
'
mic.png
'
refresh-id
=
'
mymic
'
xspace
=
'
45
'
width
=
'
35
'
height
=
'
35
'
/>
</
Notifications
>
</
TitleBarStyle
>
Below is the result of rendering the above XML (with 4 Line Key Tabs and the the
Tomáš
skin):
The <Notifications> Element
The general structure of the element:
<
Notifications
list
=
'
a,b,c,d,...
'
width
=
'200'
align
=
'
right
'
xpos
=
'
0
'
base-url
=
'
http://myserver.abcd.com/icons/
'
>
<
a
icon
=
'a
-icon.png
'
refresh-id
=
'
a-status
'
xspace
=
'
40
'
/>
<
b
icon
=
'
b-icon.png
'
refresh-id
=
'
b-status
'
xspace
=
'
35
'
/>
<
c
icon
=
'c
-icon.png
'
refresh-id
=
'
c-status
'
xspace
=
'
30
'
/>
<
d
icon
=
'd
-icon.png
'
refresh-id
=
'
d-status
'
xspace
=
'
30
'
/>
<!-- ... -->
</
Notifications
>
A description of the supported attributes in the element:
<Notifications>
Attribute
Description
list
A comma separated list of the names of the notification elements whose icons are to be drawn on the Title Bar in the
notifications area, and in the order as listed. A * element name includes all the built-in elements (in the built-in order). For a
built-in notification element name in the list (* or explicitly named), it is optional to include a child element of the same
name; the icon will be displayed according to the built-in attributes if the corresponding child element is not given. For user-
defined notification element name in the list, there should be a corresponding child element of the same name that describes
where to get the user-defined icon image and how it should be displayed.
Note that all valid icons are packed in the notification area; no space reserved for invalid icons or undefined notification
elements.
width
Defines the pixel width of entire notification area on the Title Bar
align
Either "left" or "right". Specifies if the displayed icons should be left aligned or right aligned in the notification area. Icons are
drawn from left to right if left aligned, or right to left if right aligned
xpos
Defines the starting x pixel position of the notification area, with respect to the left edge of the LCD
base-url
The base-url to be inherited by all child element. The value is prepended to the icon attribute in each child element to form
the complete URL (or file path) to get the icon image
The <Notifications> element contains a number of child elements, each with a unique element name that matches one
of the members in the
list
attribute and specifies an icon to show in the notification area of the title bar. There are a
number of built-in notification elements with their names and meaning listed in the following table:
Built-in
<Notifications>
Element
Description
Values of $state
au
Audio device status: the icon shows which audio
device is active, if any
none
: No active audio (phone is idle)
bt
: Bluetooth headset audio is active
handset
: Handset audio is active
speaker
: Speakephone audio is active
headset
: Headset audio is active
rj9
: RJ9 headset audio is active
trs
: 3.5mm Headset audio is active