diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-03-01 16:43:28 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-03-01 16:43:28 +0000 |
commit | 632f611689562bb79dfb18065b6d0851a5c2077e (patch) | |
tree | 88bf555767f641934d1d9ee6359d6399992ecc11 /h-source/Application/Include | |
parent | e9973f35a33f0ad72ff2fbd74250283d0e23e375 (diff) |
added bluetooth - part 1
Diffstat (limited to 'h-source/Application/Include')
-rw-r--r-- | h-source/Application/Include/hardware.php | 20 | ||||
-rw-r--r-- | h-source/Application/Include/languages.php | 20 |
2 files changed, 38 insertions, 2 deletions
diff --git a/h-source/Application/Include/hardware.php b/h-source/Application/Include/hardware.php index f10993b..2ea5dd5 100644 --- a/h-source/Application/Include/hardware.php +++ b/h-source/Application/Include/hardware.php @@ -24,7 +24,7 @@ if (!defined('EG')) die('Direct access not allowed!'); class Hardware { - public static $controllers = array('notebooks','wifi','videocards','printers','scanners','threegcards','soundcards','webcams'); //used by UsersController::login() + public static $controllers = array('notebooks','wifi','videocards','printers','scanners','threegcards','soundcards','webcams','bluetooth'); //used by UsersController::login() //classId => controller public static $deviceClasses = array( @@ -42,6 +42,7 @@ class Hardware '3G-card' => 'Crystal/usb_22.png', 'soundcard' => 'H2O/audio-card_22.png', 'webcam' => 'H2O/camera-web_22.png', + 'bluetooth' => 'H2O/preferences-system-bluetooth-22.png', ); public static $typeToController = array( @@ -53,6 +54,7 @@ class Hardware '3G-card' => 'threegcards', 'soundcard' => 'soundcards', 'webcam' => 'webcams', + 'bluetooth' => 'bluetooth', ); public static function getControllerFromType($type) @@ -533,4 +535,20 @@ class Webcams extends Hardware { return implode(',',array_values(self::$vendors)); } +} + +class Bluetooth extends Hardware +{ + public static $vendors = array( + "Samsung" => "Samsung", + ); + + public static $select = 'yes,no'; + + public static $interface = "not-specified,USB"; + + public static function vendorsList() + { + return implode(',',array_values(self::$vendors)); + } }
\ No newline at end of file diff --git a/h-source/Application/Include/languages.php b/h-source/Application/Include/languages.php index ee4fdcc..8ce107c 100644 --- a/h-source/Application/Include/languages.php +++ b/h-source/Application/Include/languages.php @@ -211,7 +211,8 @@ class Lang "delete the wiki page" => "cancella la pagina", "list of blocked pages" => "lista delle pagine bloccate", "special pages" => "pagine speciali", - "Watch all the actions carried out by administrators" => "Guarda tutte le azioni compiute dagli amministratori" + "Watch all the actions carried out by administrators" => "Guarda tutte le azioni compiute dagli amministratori", + "No bluetooth devices found" => "Non รจ stato trovato alcun dispositivo bluetooth", ), 'es' => array ( @@ -596,6 +597,10 @@ class MyStrings 'webcams' => array( 'element' => 'webcam', ), + + 'bluetooth' => array( + 'element' => 'bluetooth', + ), ), 'fr' => array( @@ -631,6 +636,10 @@ class MyStrings 'webcams' => array( 'element' => 'webcam', ), + + 'bluetooth' => array( + 'element' => 'bluetooth', + ), ), 'it' => array( @@ -666,6 +675,10 @@ class MyStrings 'webcams' => array( 'element' => 'webcam', ), + + 'bluetooth' => array( + 'element' => 'bluetooth', + ), ), 'es' => array( @@ -701,6 +714,10 @@ class MyStrings 'webcams' => array( 'element' => 'webcam', ), + + 'bluetooth' => array( + 'element' => 'bluetooth', + ), ), ); @@ -714,6 +731,7 @@ class MyStrings '3G-card' => 'threegcards', 'soundcard' => 'soundcards', 'webcam' => 'webcams', + 'bluetooth' => 'bluetooth', ); public static function getTypes() |