Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
org.mozilla.pfs.PluginFinderService Class Reference

List of all members.

Public Member Functions

org.mozilla.pfs.PluginInfo getPluginInfo (java.lang.String aMimetype, java.lang.String aClientOS, java.lang.String aLocale)

Detailed Description

Definition at line 40 of file PluginFinderService.java.


Member Function Documentation

Definition at line 42 of file PluginFinderService.java.

                                                                                                                                    {
    org.mozilla.pfs.PluginInfo response = new org.mozilla.pfs.PluginInfo();
    
    if (aMimetype.equals("application/x-shockwave-flash")) {
      response.setPid(1);
      response.setName("Flash Player");
      response.setVersion("7");
      response.setIconUrl("http://goat.austin.ibm.com:8080/flash.gif");
      response.setXPILocation("http://www.nexgenmedia.net/flashlinux/flash-linux.xpi");
      response.setInstallerShowsUI(false);
      response.setManualInstallationURL("");
      response.setLicenseURL("");
    } else if (aMimetype.equals("application/x-mtx")) {
      response.setPid(2);
      response.setName("Viewpoint Media Player");
      response.setVersion("5");
      response.setIconUrl(null);
      response.setXPILocation("http://www.nexgenmedia.net/flashlinux/invalid.xpi");
      response.setInstallerShowsUI(false);
      response.setManualInstallationURL("http://www.viewpoint.com/pub/products/vmp.html");   
      response.setLicenseURL("http://www.viewpoint.com/pub/privacy.html");
    } else {
      response.setPid(-1);
    }
    
    response.setRequestedMimetype(aMimetype);
    return response;
    
  }

Here is the call graph for this function:


The documentation for this class was generated from the following file: