Package com.jitcaforwin.cominterface

Examples of com.jitcaforwin.cominterface.DispatchObject


  // 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


    }
  }
 
  private IITTrack getTrack(Variant args[]) throws JitcaGeneralException {
    return ITTrackImpl
        .newIITTrack(new DispatchObject(args[0].getDispatch()));
  }
View Full Code Here

    super(o);
  }

  public IITEQPreset item(long index){
    try {
      DispatchObject dispatch = super.itemDispatchObject(index);
      return new ITEQPresetImpl(dispatch);
    } catch (DispatchObjectNullException e) {
      return null;
    } catch (ObjectDeletedException e) {
      return null;
View Full Code Here

  }

  public IITEQPreset itemByName(String name){
    try {
      DispatchObject dispatch = super.itemByNameDispatchObject(name);
      return new ITEQPresetImpl(dispatch);
    } catch (DispatchObjectNullException e) {
      return null;
    }
  }
View Full Code Here

      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

        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 convertTracks(IITTrack[] tracksToConvert) throws JitcaException {
    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());
View Full Code Here

  public IITOperationStatus convertFile2(File file) throws JitcaException {
    if (!file.exists())
      throw new JitcaFileNotFoundException(file);
    try {
      ResultObject result = this.iTunesCom.callFunction("ConvertFile2", 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

        if (!files[i].exists())
          throw new JitcaFileNotFoundException(files[i]);
        paths[i] = files[i].getAbsolutePath();
      }
      ResultObject result = this.iTunesCom.callFunction("ConvertFiles2", 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 convertTracks2(IITTrack[] tracksToConvert) throws JitcaException {
    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());
View Full Code Here

TOP

Related Classes of com.jitcaforwin.cominterface.DispatchObject

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.