diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/localplay/httpq.controller.php | 49 | ||||
-rw-r--r-- | modules/localplay/mpd.controller.php | 45 |
2 files changed, 64 insertions, 30 deletions
diff --git a/modules/localplay/httpq.controller.php b/modules/localplay/httpq.controller.php index d1cce1ae..3ceb8c04 100644 --- a/modules/localplay/httpq.controller.php +++ b/modules/localplay/httpq.controller.php @@ -101,29 +101,46 @@ class AmpacheHttpq extends localplay_controller { } // function_map - /** - * preference - * This function returns an array of the preferences and their - * information for Ampache to use All preferences will get a - * localplay_mpd_ appended to their name to avoid conflicts - * however this controller does not need to take that into acount - * REQUIRE for Locaplay - */ - public function get_preferences() { + /** + * is_installed + * This returns true or false if MPD controller is installed + */ + public function is_installed() { + + + } // is_installed + + /** + * install + * This function installs the MPD localplay controller + */ + public function install() { - $preferences = array(); - $preferences[] = array('name'=>'hostname','default'=>'localhost','type'=>'string','description'=>'HttpQ Hostname'); - $preferences[] = array('name'=>'port','default'=>'4800','type'=>'integer','description'=>'HttpQ Port'); - $preferences[] = array('name'=>'password','default'=>'','type'=>'string','description'=>'HttpQ Password'); - return $preferences; + } // install + + /** + * uninstall + * This removes the localplay controller + */ + public function uninstall() { + + + } // uninstall + + /** + * actions + * List all the special kick ass things you can do with MPD + */ + public function actions() { + - } // get_preferences + } // actions /** - * songs + * add * This must take an array of URL's from Ampache * and then add them to HttpQ */ diff --git a/modules/localplay/mpd.controller.php b/modules/localplay/mpd.controller.php index 7925d3e1..8e067960 100644 --- a/modules/localplay/mpd.controller.php +++ b/modules/localplay/mpd.controller.php @@ -104,28 +104,45 @@ class AmpacheMpd extends localplay_controller { } // function_map /** - * preference - * This function returns an array of the preferences and their - * information for Ampache to use All preferences will get a - * localplay_mpd_ appended to their name to avoid conflicts - * however this controller does not need to take that into acount - * REQUIRE for Locaplay + * is_installed + * This returns true or false if MPD controller is installed */ - public function get_preferences() { + public function is_installed() { - $preferences = array(); - $preferences[] = array('name'=>'hostname','default'=>'localhost','type'=>'string','description'=>'MPD Hostname'); - $preferences[] = array('name'=>'port','default'=>'6600','type'=>'integer','description'=>'MPD Port'); - $preferences[] = array('name'=>'password','default'=>'','type'=>'string','description'=>'MPD Password'); + } // is_installed + + /** + * install + * This function installs the MPD localplay controller + */ + public function install() { + + + + } // install + + /** + * uninstall + * This removes the localplay controller + */ + public function uninstall() { + + + } // uninstall + + /** + * actions + * List all the special kick ass things you can do with MPD + */ + public function actions() { - return $preferences; - } // preferences + } // actions /** - * add_songs + * add * This must take an array of URL's from Ampache * and then add them to MPD */ |