Package com.aelitis.azureus.ui.swt.devices

Examples of com.aelitis.azureus.ui.swt.devices.TranscodeChooser


    return true;
  }

  protected void deviceSelected(final ISelectedContent[] contents,
      final boolean allow_retry) {
    TranscodeChooser deviceChooser = new TranscodeChooser() {
      public void closed() {
        DeviceManager deviceManager = DeviceManagerFactory.getSingleton();
        if (selectedTranscodeTarget != null && selectedProfile != null) {
          for (int i = 0; i < contents.length; i++) {
            ISelectedContent selectedContent = contents[i];

            DownloadManager dm = selectedContent.getDownloadManager();
            if (dm == null) {
              continue;
            }
            DiskManagerFileInfo[] files = dm.getDiskManagerFileInfo();
            for (DiskManagerFileInfo file : files) {
              try {
                deviceManager.getTranscodeManager().getQueue().add(
                    selectedTranscodeTarget,
                    selectedProfile,
                    (org.gudy.azureus2.plugins.disk.DiskManagerFileInfo) PluginCoreUtils.convert(
                        file, false), false);
              } catch (TranscodeException e) {
                Debug.out(e);
              }
            }
          }
        }
      }
    };

    deviceChooser.show(new Runnable() {
      public void run() {
        if (allow_retry) {

          deviceSelected(contents, false);
        }
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.ui.swt.devices.TranscodeChooser

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.