Examples of ITOperationStatusImpl


Examples of com.jitcaforwin.basic.impl.internal.ITOperationStatusImpl

    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

Examples of com.jitcaforwin.basic.impl.internal.ITOperationStatusImpl

          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

Examples of com.jitcaforwin.basic.impl.internal.ITOperationStatusImpl

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

Examples of com.jitcaforwin.basic.impl.internal.ITOperationStatusImpl

      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 (ITUNES_E_CONVERSIONINPROGRESS e) {
      throw new ConversionInProgressException();
    } catch (DispatchObjectNullException e) {
      throw new ConvertOperationFailed("Convert operation for several tracks failed!");
    }
View Full Code Here

Examples of com.jitcaforwin.basic.impl.internal.ITOperationStatusImpl

    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

Examples of com.jitcaforwin.basic.impl.internal.ITOperationStatusImpl

          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

Examples of com.jitcaforwin.basic.impl.internal.ITOperationStatusImpl

  // TestTODO
  public IITOperationStatus convertTrack2(IITTrack trackToConvert) throws JitcaException {
    try {
      ResultObject result = this.iTunesCom.callFunction("ConvertTrack2", 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

Examples of com.jitcaforwin.basic.impl.internal.ITOperationStatusImpl

      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 (ITUNES_E_CONVERSIONINPROGRESS e) {
      throw new ConversionInProgressException();
    } catch (DispatchObjectNullException e) {
      throw new ConvertOperationFailed("Convert operation for several tracks failed!");
    }
View Full Code Here

Examples of com.jitcaforwin.basic.internal.ITOperationStatusImpl

    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

Examples of com.jitcaforwin.basic.internal.ITOperationStatusImpl

          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
TOP
Copyright © 2018 www.massapi.com. 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.