Package com.jitcaforwin.basic.exceptions

Examples of com.jitcaforwin.basic.exceptions.PlaylistDeletedException


      params[1] = searchFields.getValue();
      return new ITTrackCollectionImpl(this.iTunesCom.callFunction("Search", params).getDispatch());
    } catch (DispatchObjectNullException e) {
      return null; // no results found
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    }

  }
View Full Code Here


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

  // TESTTODO
  public IITSource getSource() throws PlaylistDeletedException {
    try {
      return ITSourceImpl.newIITSource(this.iTunesCom.getPropertyAsDispatchObject("Source"));
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    }
  }
View Full Code Here

  public long getDuration() throws PlaylistDeletedException, PlaylistException {
    try {
      return this.iTunesCom.getPropertyAsLong("Duration");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    } catch (S_FALSE e) {
      throw new PlaylistException("The playlist does not have a total duration!");
    }
  }
View Full Code Here

  // TESTTODO
  public boolean isShuffle() throws PlaylistDeletedException {
    try {
      return this.iTunesCom.getPropertyAsBoolean("Shuffle");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    }
  }
View Full Code Here

  // TESTTODO
  public void setShuffle(boolean shouldShuffle) throws PlaylistDeletedException, PlaylistException {
    try {
      this.iTunesCom.setProperty("Shuffle", shouldShuffle);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    } catch (S_FALSE e) {
      throw new PlaylistException("This playlist does not support shuffle mode.");
    }
  }
View Full Code Here

  // TESTTODO
  public double getSize() throws PlaylistDeletedException, PlaylistException {
    try {
      return this.iTunesCom.getPropertyAsDouble("Size");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    } catch (S_FALSE e) {
      throw new PlaylistException("The playlist does not have a total size.");
    }
  }
View Full Code Here

  // TESTTODO
  public ITPlaylistRepeatMode getSongRepeat() throws PlaylistDeletedException {
    try {
      return new ITPlaylistRepeatMode(this.iTunesCom.getPropertyAsEnum("SongRepeat"));
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    }
  }
View Full Code Here

  // TESTTODO
  public void setSongRepeat(ITPlaylistRepeatMode repeatMode) throws PlaylistDeletedException, PlaylistException {
    try {
      this.iTunesCom.setProperty("SongRepeat", repeatMode.getValue());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    } catch (S_FALSE e) {
      throw new PlaylistException("This playlist does not support repeat mode.");
    }
  }
View Full Code Here

  // TESTTODO
  public String getTime() throws PlaylistDeletedException {
    try {
      return this.iTunesCom.getPropertyAsString("Time");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new PlaylistDeletedException(this);
    }
  }
View Full Code Here

TOP

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

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.