Hardware Reference
In-Depth Information
for touchscreen users). Its second is to provide a way of moving between separate pages. These are determined by the
configuration file system/master_standard.conf , which looks like this:
<?php
class MasterBar
{
public static $automaticInclude = false;
public static function getPages()
{
return array("Multimedia"=>"wmm.php", "News"=>"wfeeds.php",
"Information"=>"wnews.php", "Life"=>"wlife.php",
"Status"=>"wstatus.php", "Administration"=>"wsystem.php");
}
public static function generate(&$appman)
{
if (self::$automaticInclude) {
return $appman->getMasterBar(getPages());
} else {
return "";
}
}
}
?>
The details of this should be obvious! Because you can now build your own custom pages using the existing applets,
and adapt them according to the browser using the getBrowser method above. Now, let's look at what applets are available.
Existing Applets
The supplied applets are split into several broad categories—media, lifestyle, information, and administration. Most
applets use the Bearskin abstractions since one of the many benefits of using a loosely coupled component-based
development model is that many small tools can be combined into larger ones. These web applets are one such
case. Each applet presented here relies on underlying code and data from simpler front ends. With this in mind,
the configuration of each applet will be given in its entirety, from basic data to web-oriented page, so as to give an
immediate understanding of the entire data flow, without scattering the information between its subcategories of
Bearskin command, abstraction, configuration, and on.
Media
These applets allow you to control the playback of media in its various forms and include a CD player, a volume mixer,
an MP3 jukebox, a VLC server and client, and a front end for displaying the TV guide.
The CD player is a very simple abstraction of the Bearskin cdplayer command that allows control of the disc,
as shown in Figure 7-4 , along with the album and track names present. The bridge between the PHP applet code and
the Bearskin system command is handled by zinc/system/cdplayer.inc , with zinc/conf/cdplayer.conf being
used to indicate the location of the executable and device to use.
Search WWH ::




Custom Search