FileDocCategorySizeDatePackage
PlatformManagerPluginDelegate.javaAPI DocAzureus 3.0.3.42749Wed Jul 25 13:02:00 BST 2007org.gudy.azureus2.platform

PlatformManagerPluginDelegate

public class PlatformManagerPluginDelegate extends Object implements org.gudy.azureus2.plugins.update.UpdatableComponent, org.gudy.azureus2.plugins.Plugin
author
TuxPaper
created
Jul 24, 2007

Fields Summary
Constructors Summary
Methods Summary
public voidcheckForUpdate(org.gudy.azureus2.plugins.update.UpdateChecker checker)

	
public intgetMaximumCheckTime()

		return( 0 );
	
public java.lang.StringgetName()

		return( "Mixin only" );
	
public voidinitialize(org.gudy.azureus2.plugins.PluginInterface pluginInterface)

		PlatformManager platform = PlatformManagerFactory.getPlatformManager();

		int platformType = platform.getPlatformType();
		if (platformType == PlatformManager.PT_WINDOWS) {
			PlatformManagerUpdateChecker plugin = new PlatformManagerUpdateChecker();
			plugin.initialize(pluginInterface);
		} else if (platformType == PlatformManager.PT_UNIX) {
			PlatformManagerUnixPlugin plugin = new PlatformManagerUnixPlugin();
			plugin.initialize(pluginInterface);
		} else {
			Properties pluginProperties = pluginInterface.getPluginProperties();
			pluginProperties.setProperty("plugin.name", "Platform-Specific Support");
			pluginProperties.setProperty("plugin.version", "1.0");
			pluginProperties.setProperty("plugin.version.info",
					"Not required for this platform");
		}