Package com.jitcaforwin.cominterface.resultobject

Examples of com.jitcaforwin.cominterface.resultobject.ResultObject


    }
  }

  // TestTODO
  public IITPlaylist createFolder(String folderName) {
    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 ObjectLockedException,
      ObjectDeletedException {
    try {
      ResultObject result = this.iTunesCom.callFunction("CreateFolderInSource", folderName,
          source.getDispatchObject());
      return ITPlaylistImpl.newIITPlaylist(result.getDispatch());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ObjectDeletedException(source);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new ObjectLockedException(source);
    }
View Full Code Here

  }

  // TestTODO
  public boolean canSetShuffle(IITPlaylist playlist) throws ObjectDeletedException {
    try {
      ResultObject result = this.iTunesCom.callFunction("CanSetShuffle", playlist.getDispatchObject());
      return result.getBoolean();
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ObjectDeletedException(playlist);
    }
  }
View Full Code Here

  }

  // TestTODO
  public boolean canSetSongRepeat(IITPlaylist playlist) throws ObjectDeletedException {
    try {
      ResultObject result = this.iTunesCom.callFunction("CanSetRepeat", playlist.getDispatchObject());
      return result.getBoolean();
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ObjectDeletedException(playlist);
    }
  }
View Full Code Here

    return this.iTunesCom.getPropertyAsString("LibraryXMLPath");
  }

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

    return result.getLong();
  }

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

      throws DispatchObjectNullException {
    super(o);
  }

  public long getCount() throws ObjectDeletedException{
    try{ResultObject count = this.iTunesCom.callFunction("Count");
    return count.getLong();
    } catch (ITUNES_E_OBJECTDELETED e){
      throw new ObjectDeletedException();
    }
  }
View Full Code Here

  protected DispatchObject itemDispatchObject(long index) throws ObjectDeletedException {
    if (index > this.getCount() || index < 1){
      return null; // Index too high / too low
    }
    ResultObject result = this.iTunesCom.callFunction("Item", (int) index);
    return result.getDispatch();
  }
View Full Code Here

    ResultObject result = this.iTunesCom.callFunction("Item", (int) index);
    return result.getDispatch();
  }

  protected DispatchObject itemByNameDispatchObject(String name) {
    ResultObject result = this.iTunesCom.callFunction("ItemByName", name);
    return result.getDispatch();
  }
View Full Code Here

  protected DispatchObject itemByPersistentIDDispatchObject(long highID,
      long lowID) {
    Object params[] = new Object[2];
    params[0] = new Long(highID);
    params[1] = new Long(lowID);
    ResultObject result = this.iTunesCom.callFunction("ItemByName", params);
    return result.getDispatch();
  }
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.