Package com.jitcaforwin.basic.api.exceptions

Examples of com.jitcaforwin.basic.api.exceptions.TrackDeletedException


      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

  public void setAlbum(String album) throws TrackDeletedException, TrackLockedException {
    try {
      this.iTunesCom.setProperty("Album", album);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new TrackLockedException(this);
    }

  }
View Full Code Here

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

  public void setArtist(String artist) throws TrackDeletedException, TrackLockedException {
    try {
      this.iTunesCom.setProperty("Artist", artist);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new TrackLockedException(this);
    }
  }
View Full Code Here

  public long getBitRate() throws TrackDeletedException {
    try {
      return this.iTunesCom.getPropertyAsLong("BitRate");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    }
  }
View Full Code Here

  public long getBPM() throws TrackDeletedException {
    try {
      return this.iTunesCom.getPropertyAsLong("BPM");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    }
  }
View Full Code Here

  public void setBPM(long beatsPerMinute) throws TrackDeletedException, TrackLockedException {
    try {
      this.iTunesCom.setProperty("BPM", beatsPerMinute);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new TrackLockedException(this);
    }
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.basic.api.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.