Package org.gudy.azureus2.plugins

Examples of org.gudy.azureus2.plugins.PluginInterface


 
  public Subscription[]
  getKnownSubscriptions(
    byte[]            hash )
  {
    PluginInterface pi = PluginInitializer.getDefaultInterface();

    try{
      Download download = pi.getDownloadManager().getDownload( hash );
     
      if ( download != null ){
       
        Map  m = download.getMapAttribute( ta_subscription_info );
       
View Full Code Here


   
  public Subscription[]
  getLinkedSubscriptions(
    byte[]            hash )
  {
    PluginInterface pi = PluginInitializer.getDefaultInterface();

    try{
      Download download = pi.getDownloadManager().getDownload( hash );
     
      if ( download != null ){
       
        Map  m = download.getMapAttribute( ta_subscription_info );
       
View Full Code Here

     
      periodic_lookup_in_progress  = true;
    }
   
    try{
      PluginInterface pi = PluginInitializer.getDefaultInterface();
     
      Download[] downloads = pi.getDownloadManager().getDownloads();
         
      long  now = SystemTime.getCurrentTime();
     
      long    newest_time    = 0;
      Download  newest_download  = null;
View Full Code Here

  }
 
  protected int
  getSubscriptionDownloadCount()
  {
    PluginInterface pi = PluginInitializer.getDefaultInterface();
   
    Download[] downloads = pi.getDownloadManager().getDownloads();
   
    int  res = 0;
   
    for( int i=0;i<downloads.length;i++){
     
View Full Code Here

  recordAssociationsSupport(
    byte[]            association_hash,
    SubscriptionImpl[]      subscriptions,
    boolean            full_lookup )
  {
    PluginInterface pi = PluginInitializer.getDefaultInterface();

    boolean  download_found  = false;
    boolean  changed     = false;
   
    try{
      Download download = pi.getDownloadManager().getDownload( association_hash );
     
      if ( download != null ){
         
        if ( subscriptions.length > 0 ){
         
View Full Code Here

        }
       
        final File  torrent_file   = new File( dir, sid + "_" + version + ".torrent" );
        final File  data_file     = new File( dir, sid + "_" + version + ".vuze" );
 
        PluginInterface pi = PluginInitializer.getDefaultInterface();
     
        final DownloadManager dm = pi.getDownloadManager();
       
        Download download = dm.getDownload( torrent.getHash());
       
        if ( download == null ){
         
View Full Code Here

  }
 
  protected MagnetPlugin
  getMagnetPlugin()
  {
    PluginInterface  pi  = AzureusCoreFactory.getSingleton().getPluginManager().getPluginInterfaceByClass( MagnetPlugin.class );
 
    if ( pi == null ){
     
      return( null );
    }
   
    return((MagnetPlugin)pi.getPlugin());
  }
View Full Code Here

    setCategoryOnExisting(
      SubscriptionImpl  subscription,
      String        old_category,
      String        new_category )
    {
    PluginInterface default_pi = PluginInitializer.getDefaultInterface();

      Download[] downloads   = default_pi.getDownloadManager().getDownloads();
               
      for ( Download d: downloads ){
              
        if ( subscriptionExists( d, subscription )){
           
View Full Code Here

   
    public Image
    loadImage(
      String  resource )
    {
      PluginInterface pi = pi_ref.get();
     
      if ( pi == null ){
       
        return( null );
      }
View Full Code Here

    }
   
    public void
    addView(String sParentID, String sViewID, UISWTViewEventListener l)
    {
      PluginInterface pi = pi_ref.get();
     
      delegate.addView( pi, sParentID, sViewID, l );
    }
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.plugins.PluginInterface

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.