Package com.jitcaforwin.basic.enums

Examples of com.jitcaforwin.basic.enums.ITSourceKind


   * @throws JitcaException
   */
  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 static IITSource newIITSource(DispatchObject o) throws JitcaGeneralException{
    try{
      ITSourceImpl source = new ITSourceImpl(o);
      ITSourceKind sourceKind = source.getKind();
     
      if (sourceKind.is(ITSourceKind.IPod())){
        return new ITIPodSourceImpl(o);
      } else {
        return source;
      }
    } catch(DispatchObjectNullException e){
View Full Code Here

    }
   
  }

  public ITSourceKind getKind() throws JitcaGeneralException {
    return new ITSourceKind(this.iTunesCom.getPropertyAsEnum("Kind"));
  }
View Full Code Here

  }

  public static IITSource newIITSource(DispatchObject o) {
    try {
      ITSourceImpl source = new ITSourceImpl(o);
      ITSourceKind sourceKind = source.getKind();

      if (sourceKind.is(ITSourceKind.IPod())) {
        return new ITIPodSourceImpl(o);
      } else {
        return source;
      }
    } catch (DispatchObjectNullException e) {
View Full Code Here

  }

  public ITSourceKind getKind() throws SourceDeletedException {
    try {
      return new ITSourceKind(this.iTunesCom.getPropertyAsEnum("Kind"));
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new SourceDeletedException(this);
    }
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.basic.enums.ITSourceKind

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.