Package com.jitcaforwin.cominterface.resultobject

Examples of com.jitcaforwin.cominterface.resultobject.ResultObject


  // TestTODO
  public IITOperationStatus convertTrack(IITTrack trackToConvert)
      throws JitcaGeneralException {
    try {
      ResultObject result = this.iTunesCom.callFunction("ConvertTrack",
          trackToConvert.getDispatchObject());
      return new ITOperationStatusImpl(result.getDispatch());
    } catch (DispatchObjectNullException e) {
      throw new ConvertOperationFailed(true, trackToConvert.getName());
    }
  }
View Full Code Here


    try {
      DispatchObject dispatchObjects[] = new DispatchObject[tracksToConvert.length];
      for (int i = 0; i < tracksToConvert.length; i++) {
        dispatchObjects[i] = tracksToConvert[i].getDispatchObject();
      }
      ResultObject result = this.iTunesCom.callFunction("ConvertTracks",
          dispatchObjects);
      return new ITOperationStatusImpl(result.getDispatch());
    } catch (DispatchObjectNullException e) {
      throw new ConvertOperationFailed(
          "Convert operation for several tracks failed!");
    }
View Full Code Here

  // TestTODO
  public IITOperationStatus convertFile2(File file)
      throws JitcaGeneralException {
    try {
      ResultObject result = this.iTunesCom.callFunction("ConvertFile2",
          file.getAbsolutePath());
      DispatchObject dispatch = result.getDispatch();
      return new ITOperationStatusImpl(dispatch);
    } catch (DispatchObjectNullException e) {
      throw new ConvertOperationFailed(file);
    }
  }
View Full Code Here

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

  // TestTODO
  public IITOperationStatus convertTrack2(IITTrack trackToConvert)
      throws JitcaGeneralException {
    try {
      ResultObject result = this.iTunesCom.callFunction("ConvertTrack2",
          trackToConvert.getDispatchObject());
      return new ITOperationStatusImpl(result.getDispatch());
    } catch (DispatchObjectNullException e) {
      throw new ConvertOperationFailed(true, trackToConvert.getName());
    }
  }
View Full Code Here

    try {
      DispatchObject dispatchObjects[] = new DispatchObject[tracksToConvert.length];
      for (int i = 0; i < tracksToConvert.length; i++) {
        dispatchObjects[i] = tracksToConvert[i].getDispatchObject();
      }
      ResultObject result = this.iTunesCom.callFunction("ConvertTracks2",
          dispatchObjects);
      return new ITOperationStatusImpl(result.getDispatch());
    } catch (DispatchObjectNullException e) {
      throw new ConvertOperationFailed(
          "Convert operation for several tracks failed!");
    }
  }
View Full Code Here

  public boolean checkVersion(long majorVersion, long minorVersion)
      throws JitcaGeneralException {
    Object params[] = new Object[2];
    params[0] = new Long(majorVersion);
    params[1] = new Long(minorVersion);
    ResultObject result = this.iTunesCom.callFunction("CheckVersion",
        params);
    return result.getBoolean();
  }
View Full Code Here

    Object params[] = new Object[4];
    params[0] = new Long(sourceID);
    params[1] = new Long(playlistID);
    params[2] = new Long(trackID);
    params[3] = new Long(databaseID);
    ResultObject result = this.iTunesCom.callFunction("GetITObjectByID",
        params);
    DispatchObject dispatch = result.getDispatch();
    return ITObjectImpl.newIITObject(dispatch);
  }
View Full Code Here

    return ITObjectImpl.newIITObject(dispatch);
  }

  public IITPlaylist createPlaylist(String playlistName)
      throws JitcaGeneralException {
    ResultObject result = this.iTunesCom.callFunction("CreatePlaylist",
        playlistName);
    DispatchObject dispatch = result.getDispatch();
    return ITPlaylistImpl.newIITPlaylist(dispatch);
  }
View Full Code Here

  // TestTODO
  public IITEQPreset createEQPreset(String eqPresetName)
      throws JitcaGeneralException {
    try {
      ResultObject result = this.iTunesCom.callFunction("CreateEQPreset",
          eqPresetName);
      DispatchObject dispatch = result.getDispatch();
      return new ITEQPresetImpl(dispatch);
    } catch (DispatchObjectNullException e) {
      throw new JitcaGeneralException("EQPreset " + eqPresetName
          + "could not be created");
    }
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.