Package com.jitcaforwin.cominterface.resultobject

Examples of com.jitcaforwin.cominterface.resultobject.ResultObject


  // TestTODO
  public IITPlaylist createPlaylistInSource(String playlistName,
      IITSource source) throws JitcaGeneralException,
      ObjectLockedException, ObjectDeletedException {
    ResultObject result = this.iTunesCom.callFunction(
        "CreatePlaylistInSource", playlistName,
        source.getDispatchObject());
    return ITPlaylistImpl.newIITPlaylist(result.getDispatch());
  }
View Full Code Here


  }

  // TestTODO
  public IITPlaylist createFolder(String folderName)
      throws JitcaGeneralException {
    ResultObject result = this.iTunesCom.callFunction("CreateFolder",
        folderName);
    DispatchObject dispatch = result.getDispatch();
    return ITPlaylistImpl.newIITPlaylist(dispatch);
  }
View Full Code Here

  // TestTODO
  public IITPlaylist createFolderInSource(String folderName, IITSource source)
      throws JitcaGeneralException, ObjectLockedException,
      ObjectDeletedException {
    ResultObject result = this.iTunesCom.callFunction(
        "CreateFolderInSource", folderName, source.getDispatchObject());
    return ITPlaylistImpl.newIITPlaylist(result.getDispatch());
  }
View Full Code Here

  }

  // TestTODO
  public boolean canSetShuffle(IITPlaylist playlist)
      throws JitcaGeneralException {
    ResultObject result = this.iTunesCom.callFunction("CanSetShuffle",
        playlist.getDispatchObject());
    return result.getBoolean();
  }
View Full Code Here

  }

  // TestTODO
  public boolean canSetSongRepeat(IITPlaylist playlist)
      throws JitcaGeneralException {
    ResultObject result = this.iTunesCom.callFunction("CanSetRepeat",
        playlist.getDispatchObject());
    return result.getBoolean();
  }
View Full Code Here

  }

  // TestTODO
  public long getITObjectPersistentIDHigh(IITObject object)
      throws JitcaGeneralException {
    ResultObject result = this.iTunesCom.callFunction(
        "ITObjectPersistentIDHigh", object.getDispatchObject());
    return result.getLong();
  }
View Full Code Here

  }

  // TestTODO
  public long getITObjectPersistentIDLow(IITObject object)
      throws JitcaGeneralException {
    ResultObject result = this.iTunesCom.callFunction(
        "ITObjectPersistentIDLow", object.getDispatchObject());
    return result.getLong();
  }
View Full Code Here

  public IITOperationStatus convertFile(File file) throws ConversionInProgressException, JitcaFileNotFoundException,
      ConvertOperationFailed {
    if (!file.exists())
      throw new JitcaFileNotFoundException(file);
    try {
      ResultObject result = this.iTunesCom.callFunction("ConvertFile", file.getAbsolutePath());
      DispatchObject dispatch = result.getDispatch();
      return new ITOperationStatusImpl(dispatch);
    } catch (ITUNES_E_CONVERSIONINPROGRESS e) {
      throw new ConversionInProgressException();
    } catch (DispatchObjectNullException e) {
      throw new ConvertOperationFailed(file);
View Full Code Here

      for (int i = 0; i < files.length; i++) {
        if (!files[i].exists())
          throw new JitcaFileNotFoundException(files[i]);
        paths[i] = files[i].getAbsolutePath();
      }
      ResultObject result = this.iTunesCom.callFunction("ConvertFiles", paths);
      DispatchObject dispatch = result.getDispatch();
      return new ITOperationStatusImpl(dispatch);
    } catch (ITUNES_E_CONVERSIONINPROGRESS e) {
      throw new ConversionInProgressException();
    } catch (DispatchObjectNullException e) {
      throw new ConvertOperationFailed("Convert operation for several files failed!");
View Full Code Here

  }

  // TestTODO
  public IITOperationStatus convertTrack(IITTrack trackToConvert) throws JitcaException {
    try {
      ResultObject result = this.iTunesCom.callFunction("ConvertTrack", trackToConvert.getDispatchObject());
      return new ITOperationStatusImpl(result.getDispatch());
    } catch (ITUNES_E_CONVERSIONINPROGRESS e) {
      throw new ConversionInProgressException();
    } catch (DispatchObjectNullException e) {
      throw new ConvertOperationFailed(true, trackToConvert.getName());
    }
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.