<?php
/*

 Copyright (c) 2001 - 2007 Ampache.org
 All rights reserved.

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License v2
 as published by the Free Software Foundation.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

*/

class AmpacheOpenStrands { 

	public $name		='OpenStrands'; 
	public $description	='Interface with MyStrands, recommendations etc'; 
	public $url		='http://www.mystrands.com/openstrands/overview.vm';
	public $version		='000001';
	public $min_ampache	='340007';
	public $max_ampache	='340008';

	/**
	 * Constructor
	 * This function does nothing...
	 */
	public function __construct() { 

		return true; 

	} // PluginLastfm

	/**
	 * install
	 * This is a required plugin function it inserts the required preferences
	 * into Ampache
	 */
	public function install() { 

		Preference::insert('mystrands_user','MyStrands Login',' ','25','string','plugins'); 
		Preference::insert('mystrands_pass','MyStrands Password',' ','25','string','plugins'); 

	} // install

	/**
	 * uninstall
	 * This is a required plugin function it removes the required preferences from
	 * the database returning it to its origional form
	 */
	function uninstall() { 

		Preference::delete('mystrands_pass'); 
		Preference::delete('mystrands_user'); 

	} // uninstall

} // end AmpacheLastfm
?>
