summaryrefslogtreecommitdiffstats
path: root/modules/localplay/mpd.controller.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-09 21:07:45 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-09 21:07:45 +0000
commitb1b7998a0f9a6438725fb574e63e27859a6bd2e6 (patch)
tree36da3f5548f891dbaee3f626bfd2be7457cde967 /modules/localplay/mpd.controller.php
parentd6b68f501f8d378ce2ecabb2f9f423ee234f8ab5 (diff)
downloadampache-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/mpd.controller.php')
-rw-r--r--modules/localplay/mpd.controller.php45
1 files changed, 31 insertions, 14 deletions
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
*/