From 632f611689562bb79dfb18065b6d0851a5c2077e Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Tue, 1 Mar 2011 16:43:28 +0000 Subject: added bluetooth - part 1 --- h-source/Application/Include/hardware.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'h-source/Application/Include/hardware.php') 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) @@ -529,6 +531,22 @@ class Webcams extends Hardware public static $interface = "not-specified,USB,Firewire,Parallel,Wifi,Serial"; + public static function vendorsList() + { + 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)); -- cgit v1.2.3