Package com.jitcaforwin.basic.exceptions

Examples of com.jitcaforwin.basic.exceptions.TrackDeletedException


  public ITRatingKind getAlbumRatingKind() throws TrackDeletedException  {
    try {
      return new ITRatingKind(this.iTunesCom.getPropertyAsEnum("AlbumRatingKind"));
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    }
  }
View Full Code Here


  public ITRatingKind getRatingKind() throws TrackDeletedException  {
    try {
      return new ITRatingKind(this.iTunesCom.getPropertyAsEnum("RatingKind"));
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    }
  }
View Full Code Here

    try {
      return new ITPlaylistCollectionImpl(this.iTunesCom.getPropertyAsDispatchObject("Playlists"));
    } catch (DispatchObjectNullException e) {
      return null; // Track is part of not playlist. (Should not be).
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    }
  }
View Full Code Here

    try {
      return new ITArtworkImpl(this.itemDispatchObject(index));
    } catch (DispatchObjectNullException e) {
      return null;
    } catch (ITUNES_E_OBJECTDELETED e){
      throw new TrackDeletedException();
    } catch (ObjectDeletedException e) {
      throw new TrackDeletedException();
    }
  }
View Full Code Here

  public void delete() throws TrackLockedException, TrackDeletedException {
    try {
      this.iTunesCom.callProcedure("Delete");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new TrackLockedException(this);
    }
  }
View Full Code Here

  public void play() throws TrackDeletedException {
    try {
      this.iTunesCom.callProcedure("Play");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    }
  }
View Full Code Here

      return new ITArtworkImpl(this.iTunesCom.callFunction("AddArtworkFromFile", artwork.getAbsolutePath())
          .getDispatch());
    } catch (DispatchObjectNullException e) {
      throw new JitcaFileException("Artwork form file could not be added to Track.");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    }
  }
View Full Code Here

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

  public IITPlaylist getPlaylist() throws TrackDeletedException {
    try {
      return ITPlaylistImpl.newIITPlaylist(this.iTunesCom.getPropertyAsDispatchObject("Playlist"));
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    }
  }
View Full Code Here

  public String getAlbum() throws TrackDeletedException {
    try {
      return this.iTunesCom.getPropertyAsString("Album");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    }
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.basic.exceptions.TrackDeletedException

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.