diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-09 21:07:45 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-09 21:07:45 +0000 |
commit | b1b7998a0f9a6438725fb574e63e27859a6bd2e6 (patch) | |
tree | 36da3f5548f891dbaee3f626bfd2be7457cde967 /modules/localplay/httpq.controller.php | |
parent | d6b68f501f8d378ce2ecabb2f9f423ee234f8ab5 (diff) | |
download | ampache-b1b7998a0f9a6438725fb574e63e27859a6bd2e6.tar.gz ampache-b1b7998a0f9a6438725fb574e63e27859a6bd2e6.tar.bz2 ampache-b1b7998a0f9a6438725fb574e63e27859a6bd2e6.zip |
few minor bug fixes, and some more tweaks for localplay
Diffstat (limited to 'modules/localplay/httpq.controller.php')
-rw-r--r-- | modules/localplay/httpq.controller.php | 49 |
1 files changed, 33 insertions, 16 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 */ |