Package com.jitcaforwin.basic.api.exceptions

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


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


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

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

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

      if (volumeAdjustment < -100 || volumeAdjustment > 100) {
        throw new InvalidSoundVolumeAdjustmentException();
      }
      this.iTunesCom.setProperty("VolumeAdjustment", volumeAdjustment);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new TrackLockedException(this);
    }
  }
View Full Code Here

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

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

      return new ITArtworkCollectionImpl(this.iTunesCom.getPropertyAsDispatchObject("Artwork"));
    } catch (DispatchObjectNullException e) {
      return null; // No artwork available.

    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new TrackDeletedException(this);
    }
  }
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

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.