Package org.gudy.azureus2.plugins.download

Examples of org.gudy.azureus2.plugins.download.DownloadManager.removeListener()


      }
    });
    Object[] dms = globalManager.getDownloadManagers().toArray();
    for (int i = 0; i < dms.length; i++) {
      DownloadManager dm = (DownloadManager) dms[i];
      dm.removeListener(this);
    }
    if (currentCategory != null) {
      currentCategory.removeCategoryListener(this);
    }
    CategoryManager.removeCategoryManagerListener(this);
View Full Code Here


       
        public void
        diskManagerRemoved(
          DiskManager  dm )
        {
          dm.removeListener( disk_listener );
        }

      };

      global_manager.addListener(
View Full Code Here

       
        for ( Map.Entry<DownloadManager,DownloadManagerListener> e: copy.entrySet()){
       
          DownloadManager dm = e.getKey();
                   
          dm.removeListener( e.getValue());
         
          dm_listener_map.remove( dm );
         
          // System.out.println( "Removed " + dm.getDisplayName() + " - size=" + dm_listener_map.size());
        }
View Full Code Here

  }
 
  private void unregisterListeners() {
    try {
      GlobalManager gm = AzureusCoreFactory.getSingleton().getGlobalManager();
      gm.removeListener(this);
      Iterator itr = gm.getDownloadManagers().iterator();
      while(itr.hasNext()) {
        DownloadManager dm = (DownloadManager)itr.next();
        downloadManagerRemoved(dm);
      }
View Full Code Here

      manager.removeListener(this);
    }
   
    try {
      GlobalManager gm = AzureusCoreFactory.getSingleton().getGlobalManager();
      gm.removeListener(gmListener);
    } catch (Exception e) {
      Debug.out(e);
    }

    if (folder != null && !folder.isDisposed()){
View Full Code Here

      }

      public void destroyInitiated() {
        try {
          GlobalManager gm = AzureusCoreFactory.getSingleton().getGlobalManager();
          gm.removeListener(this);
        } catch (Exception e) {
          Debug.out(e);
        }
      }
View Full Code Here

    Object[] listeners = fileLogging.getListeners().toArray();
    for (int i = 0; i < listeners.length; i++) {
      if (listeners[i] instanceof PluginFileLoggerAdapater) {
        PluginFileLoggerAdapater l = (PluginFileLoggerAdapater) listeners[i];
        if (l.listener == listener) {
          fileLogging.removeListener(l);
        }
      }
    }
  }
 
View Full Code Here

           
               TOTorrent t = getTorrent();

               if ( t != null ){
                
                 t.removeListener( (TOTorrentListener)tps_data[1] );
               }
              
                setUserData( TPS_Key, null );
              }
          }
View Full Code Here

     
      dynamic_xcode_map = null;
    
      DownloadManager dm = PluginInitializer.getDefaultInterface().getDownloadManager();

      dm.removeListener( this );
     
      removeListener( this );
     
      TranscodeFileImpl[]  transcode_files = getFiles();
     
View Full Code Here

                        try
                        {
                            if(download.getState() != Download.ST_STOPPED)
                                download.stop();
                            download.remove(true,true);
                            dm.removeListener(this);
                           
                        } catch (DownloadException e) {
                            e.printStackTrace();
                        } catch (DownloadRemovalVetoException e1) {
                            e1.printStackTrace();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.