Package com.jitcaforwin.cominterface

Examples of com.jitcaforwin.cominterface.DispatchObject


    }
   
  }

  public IITSource itemByName(String name) {
    DispatchObject dispatch = super.itemByNameDispatchObject(name);
    return ITSourceImpl.newIITSource(dispatch);
  }
View Full Code Here


    DispatchObject dispatch = super.itemByNameDispatchObject(name);
    return ITSourceImpl.newIITSource(dispatch);
  }

  public IITSource itemByPersistentID(long highID, long lowID) {
    DispatchObject dispatch = super.itemByPersistentIDDispatchObject(highID, lowID);
    return ITSourceImpl.newIITSource(dispatch);
  }
View Full Code Here

  }

  public DispatchResultObject(Variant variant) {
    super(DISPATCH);
    try {
      this.value = new DispatchObject(variant.getDispatch());
    } catch (IllegalStateException e) {
      this.setWasNull(true);
    }
  }
View Full Code Here

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

      for (int i = 0; i < files.length; i++) {
        paths[i] = files[i].getAbsolutePath();
      }
      ResultObject result = this.iTunesCom.callFunction("ConvertFiles",
          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 convertTracks(IITTrack[] tracksToConvert)
      throws JitcaGeneralException {
    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);
View Full Code Here

  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

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

    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

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.