Package org.gudy.azureus2.plugins.utils

Examples of org.gudy.azureus2.plugins.utils.Utilities


  }
 
  public InetAddress
  getDefaultPublicAddress()
  {
    Utilities utils = PluginInitializer.getDefaultInterface().getUtilities();
   
    InetAddress address = utils.getPublicAddress();
   
    if ( address != null ){
     
      return( address );
    }
   
    return( utils.getPublicAddress( true ));
  }
View Full Code Here


           
            swt = (UISWTInstance)instance;
           
            uiQuickInit();

            Utilities utilities = default_pi.getUtilities();
           
            final DelayedTask dt = utilities.createDelayedTask(new Runnable()
              {
                public void
                run()
                {
                  Utils.execSWTThread(new AERunnable() {
View Full Code Here

  View newView;
  static int total_ip_count;
 
  public void initialize(PluginInterface pluginInterface) {
    this.pluginInterface = pluginInterface;
    Utilities utils = pluginInterface.getUtilities();
    UIManager  ui_manager = pluginInterface.getUIManager();
    BasicPluginConfigModel config_model = ui_manager.createBasicPluginConfigModel( "plugins", "plugin.AzTrackerFind");
    total_ip_count = 0;
    config_model.addBooleanParameter2("AutoOpen","AzTrackerFind.auto.open",false);
    config_model.addIntParameter2( "timeout_value", "AzTrackerFind.timeout.value", 30);
    config_model.addIntParameter2("AzTrackerFind_port1","AzTrackerFind.port1",6969 );
    config_model.addIntParameter2("AzTrackerFind_port2","AzTrackerFind.port2",0 );
    config_model.addIntParameter2("AzTrackerFind_port3","AzTrackerFind.port3",0);
    config_model.addStringParameter2( "AzTrackerFind_url_user","AzTrackerFind.url.user","username");
    config_model.addStringParameter2("AzTrackerFind_url_password", "AzTrackerFind.url.password", "password");
    config_model.addBooleanParameter2("AzTrackerFind_autoinsert","AzTrackerFind.autoinsert",false);
    config_model.addBooleanParameter2("MilitaryTime", "AzTrackerFind.military.time", false);
    BooleanParameter enable = config_model.addBooleanParameter2("AutoDownload","AzTrackerFind.auto.download",false);
    String default_dir = pluginInterface.getPluginDirectoryName() + System.getProperty("file.separator") + "torrents";
    DirectoryParameter enabled_dir = config_model.addDirectoryParameter2("AutoDownload_dir","AzTrackerFind.autodownload.dir",default_dir);
    enable.addEnabledOnSelection( enabled_dir );
    if (utils.isLinux())
        {
      config_model.addStringParameter2("AzTrackerFind_url_commandline", "AzTrackerFind.url.commandline","firefox");
        }
        else if (utils.isOSX())
        {
          config_model.addLabelParameter2("AzTrackerFind.url.maclabel");
        }
    else
    {
View Full Code Here

  private void start() {
    for (int i = 0; i < updates.length; i++) {
      Update update = updates[i];
      ResourceDownloader[] rds = update.getDownloaders();
      for (int j = 0; j < rds.length; j++) {
        ResourceDownloader rd = rds[j];
        downloaders.add(rd);
      }
    }

    iterDownloaders = downloaders.iterator();
View Full Code Here

   *
   * @since 3.0.0.7
   */
  private boolean nextUpdate() {
    if (iterDownloaders.hasNext()) {
      ResourceDownloader downloader = (ResourceDownloader) iterDownloaders.next();
      downloader.addListener(this);
      downloader.asyncDownload();
      return true;
    }
    return false;
  }
View Full Code Here

              }
             
              setProgress( 0 );
             
              downloader.addListener(
                new ResourceDownloaderAdapter()
                {
                  public void
                  reportPercentComplete(
                    ResourceDownloader  downloader,
                    int          percentage )
View Full Code Here

    props         = new propertyWrapper(_props );
    pluginDir       = _pluginDir;
    config         = new PluginConfigImpl(this,pluginConfigKey);
    given_plugin_id      = _plugin_id;
    plugin_version    = _plugin_version;
    ipc_interface      = new IPCInterfaceImpl( initialiser, plugin );
    state                 = new PluginStateImpl(this, initialiser);
   
    boolean verified   = false;
    boolean bad    = false;
   
View Full Code Here

  }
 
  public IPFilter
  getIPFilter()
  {
    return( new IPFilterImpl());
  }
View Full Code Here

 
  public Logger getLogger()
  {
    if ( logger == null ){
     
      logger = new LoggerImpl( this );
    }
   
    return( logger );
  }
View Full Code Here

    else {
      plug_msg = new MessageAdapter( message )//core created
    }
   
    RawMessage raw_plug = plug_encoder.encodeMessage( plug_msg );
    return new com.aelitis.azureus.core.networkmanager.RawMessage[]{ new RawMessageAdapter( raw_plug )};
  }
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.plugins.utils.Utilities

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.