Package com.aelitis.azureus.ui.selectedcontent

Examples of com.aelitis.azureus.ui.selectedcontent.SelectedContentV3


  public SelectedContentV3 createSelectedContentObject()
      throws Exception {

    boolean ourContent = DataSourceUtils.isPlatformContent(this);
   
    SelectedContentV3 sc = new SelectedContentV3();
    if (assetHash == null) {
      // Contains no content
      return sc;
    }

    dm = getDownloadManger();
    if (dm != null) {
      sc.setDisplayName(PlatformTorrentUtils.getContentTitle2(dm));
      sc.setDownloadManager(dm);
      return sc;
    }else{
      if ( torrent != null ){
        sc.setTorrent( torrent );
      }
    }

    sc.setDisplayName(getTorrentName());
    if (sc.getDisplayName() == null) {
      TOTorrent torrent = getTorrent();
      if (torrent != null) {
        sc.setDisplayName(TorrentUtils.getLocalisedName(torrent));
        sc.setHash(torrent.getHashWrapper().toBase32String(), ourContent);
      }
    }
   
    if (sc.getHash() == null ){
     
      if ( assetHash != null ){

        sc.setHash(assetHash, true);
      }
    }

    sc.setThumbURL(assetImageURL);
    sc.setImageBytes(imageBytes);

    return sc;

  }
View Full Code Here


    if (ds instanceof VuzeActivitiesEntry) {
      return ((VuzeActivitiesEntry) ds).isPlayable();
    }
   
    if (ds instanceof SelectedContentV3) {
      SelectedContentV3 sel = (SelectedContentV3) ds;
      return sel.canPlay();
    }
   
    return false;
  }
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.ui.selectedcontent.SelectedContentV3

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.