Package com.jitcaforwin.extended.api.internal

Examples of com.jitcaforwin.extended.api.internal.CD


  public CDCollection(IiTunes iTunes, IITSourceCollection itSources) throws JitcaException{
    this();
    for(int i = 1; i <= itSources.getCount(); i++){
      ITSourceKind sourceKind = itSources.item(i).getKind();
      if (sourceKind.is(ITSourceKind.AudioCD()) || sourceKind.is(ITSourceKind.MP3CD())){
        CD cd = CDImpl.create(this.lazy, iTunes, itSources.item(i));
        this.add(cd);
      }
    }
  }
View Full Code Here


  public CDCollectionImpl(IiTunes iTunes, IITSourceCollection itSources) throws JitcaException{
    this();
    for(int i = 1; i <= itSources.getCount(); i++){
      ITSourceKind sourceKind = itSources.item(i).getKind();
      if (sourceKind.is(ITSourceKind.AudioCD()) || sourceKind.is(ITSourceKind.MP3CD())){
        CD cd = CDImpl.create(this.lazy, iTunes, itSources.item(i));
        this.add(cd);
      }
    }
  }
View Full Code Here

  public static void main(String[] args) {
    try {
      IJitcaITunesController iTunes = new JitcaiTunesController(true);
     
      CD cd = iTunes.getCD();
     
      if (cd == null)
      {
        if (iTunes.getCDs() != null){
          System.out.println("More than one CD is available!");
        } else {
          System.out.println("No CD available!");
        }
      } else {
        System.out.println("Start playing: " + cd.getTitle());
        cd.play();
      }
     
      iTunes.close();

    } catch (JitcaException e) {
View Full Code Here

  public static void main(String[] args) {
    try {
      IJitcaITunesController iTunes = new JitcaiTunesController(true);

      CD cd = iTunes.getCD();

      if (cd == null) {
        if (iTunes.getCDs() != null) {
          System.out.println("More than one CD is available!");
        } else {
          System.out.println("No CD available!");
        }
      } else {
        System.out.println("Start playing: " + cd.getTitle());
        cd.play();
      }

      iTunes.close();

    } catch (JitcaException e) {
View Full Code Here

TOP

Related Classes of com.jitcaforwin.extended.api.internal.CD

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.