Package com.jitcaforwin.cominterface.resultobject

Examples of com.jitcaforwin.cominterface.resultobject.ResultObject


  }

  // TestTODO
  public IITTrack addTrack(IITTrack trackToAdd) throws JitcaTrackException, PlaylistDeletedException, PlaylistReadOnlyException {
    try {
      ResultObject result = this.iTunesCom.callFunction("AddTrack", trackToAdd.getDispatchObject());
      IITTrack track = ITTrackImpl.create(result.getDispatch());
      if (track == null) {
        throw new JitcaTrackException("Error occured during addTrack. Track could not be added.");
      }
      return track;
    } catch (ITUNES_E_OBJECTDELETED e) {
View Full Code Here


    super(o);
  }

  public IITPlaylist getPlaylist() throws WindowDeletedException {
    try {
      ResultObject playlist = this.iTunesCom.callFunction("Playlist");
      return ITPlaylistImpl.newIITPlaylist(playlist.getDispatch());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    }
  }
View Full Code Here

  public JitcaCollectionImpl(DispatchObject o) throws DispatchObjectNullException{
    super(o);
  }

  public long getCount() throws JitcaGeneralException {
    ResultObject count = this.iTunesCom.callFunction("Count");
    return count.getLong();
  }
View Full Code Here

    // Not supported yet.
    throw new MethodNotImplemented("Method _NewEnum not implemented yet.");
  }
 
  protected DispatchObject itemDispatchObject(long index) throws JitcaGeneralException {
    ResultObject result = this.iTunesCom.callFunction("Item", (int) index);
    return result.getDispatch();
  }
View Full Code Here

    ResultObject result = this.iTunesCom.callFunction("Item", (int) index);
    return result.getDispatch();
  }
  
  protected DispatchObject itemByNameDispatchObject(String name) throws JitcaGeneralException {
    ResultObject result = this.iTunesCom.callFunction("ItemByName", name);
    return result.getDispatch();
  }
View Full Code Here

 
  protected DispatchObject itemByPersistentIDDispatchObject(long highID, long lowID) throws JitcaGeneralException {
    Object params[] = new Object[2];
    params[0] = new Long(highID);
    params[1] = new Long(lowID);
    ResultObject result = this.iTunesCom.callFunction("ItemByName", params);
    return result.getDispatch();
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.cominterface.resultobject.ResultObject

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.