Snapshot
Overview
This status bar applet simply shows the status of the battery, whether it's charging or discharging, it's percent charged, and the time remaining until it's either drained or fully charged.
Files Needed
- /usr/lib/hildon-status-bar/libbattery.so
- The applet library
- /usr/share/applications/hildon-status-bar/hildon-status-bar-battery.desktop
- The configuration file which tells mobile-basic-flash to load this applet and add it to the marquee
- /usr/share/icons/hildon/48x48/status/moblin-nobattery.png
- The button image to show when the device is on AC with no battery attached
- /usr/share/icons/hildon/48x48/status/moblin-battery_full0.png
- The button image to show when the device is on Battery with nearly 0% charge left
- /usr/share/icons/hildon/48x48/status/moblin-battery_full25.png
- The button image to show when the device is on Battery with 25% charge left
- /usr/share/icons/hildon/48x48/status/moblin-battery_full50.png
- The button image to show when the device is on Battery with 50% charge left
- /usr/share/icons/hildon/48x48/status/moblin-battery_full75.png
- The button image to show when the device is on Battery with 75% charge left
- /usr/share/icons/hildon/48x48/status/moblin-battery_full100.png
- The button image to show when the device is on Battery with 100% charge left
- /usr/share/icons/hildon/48x48/status/moblin-ac_full0.png
- The button image to show when the device is on AC with 0% charge left
- /usr/share/icons/hildon/48x48/status/moblin-ac_full25.png
- The button image to show when the device is on AC with 25% charge left
- /usr/share/icons/hildon/48x48/status/moblin-ac_full50.png
- The button image to show when the device is on AC with 50% charge left
- /usr/share/icons/hildon/48x48/status/moblin-ac_full75.png
- The button image to show when the device is on AC with 75% charge left
- /usr/share/icons/hildon/48x48/status/moblin-ac_full100.png
- The button image to show when the device is on AC with 100% charge left
- /etc/init.d/moblin-applets
- The init script which loads all the available ACPI modules on boot. This is needed so that we can talk to the battery through HAL
Applet Design
Code Reuse
This applet was built entirely from scratch
