Examples of ShareManager


Examples of org.gudy.azureus2.plugins.sharing.ShareManager

            // properly
         
          try{
            PluginInterface pi = AzureusCoreFactory.getSingleton().getPluginManager().getDefaultPluginInterface();
           
            ShareManager sm = pi.getShareManager();
           
            Tracker  tracker = pi.getTracker();
           
            ShareResource[] shares = sm.getShares();
           
            TOTorrent torrent = dm.getTorrent();
           
            byte[] target_hash = torrent.getHash();
           
View Full Code Here

Examples of org.gudy.azureus2.plugins.sharing.ShareManager

      }

      // share manager init is async so we need to deal with this
      PluginInterface default_pi = PluginInitializer.getDefaultInterface();
      try {
        final ShareManager share_manager = default_pi.getShareManager();

        default_pi.addListener(new PluginListener() {
          public void initializationComplete() {
          }

          public void closedownInitiated() {
            int share_count = share_manager.getShares().length;
            COConfigurationManager.setParameter("GUI_SWT_share_count_at_close",
                share_count);
          }

          public void closedownComplete() {
          }
        });

        if (share_manager.getShares().length > 0
            || COConfigurationManager.getIntParameter("GUI_SWT_share_count_at_close") > 0) {

          Utils.execSWTThreadLater(0, new Runnable() {
            public void run() {
              uiFunctions.openView(UIFunctions.VIEW_MYSHARES, null);
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.