Package com.jitcaforwin.cominterface

Examples of com.jitcaforwin.cominterface.DispatchObject


  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


  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

    return this.getProperty(propertyName).getInt();
  }

  public DispatchObject getPropertyAsDispatchObject(String propertyName)
      throws JitcaGeneralException {
    DispatchObject test = this.getProperty(propertyName).getDispatch();
    return test;
  }
View Full Code Here

  public ITSourceCollectionImpl(DispatchObject o) throws DispatchObjectNullException {
    super(o);
  }

  public IITSource item(long index) throws JitcaGeneralException {
    DispatchObject dispatch = super.itemDispatchObject(index);
    return ITSourceImpl.newIITSource(dispatch);
  }
View Full Code Here

    DispatchObject dispatch = super.itemDispatchObject(index);
    return ITSourceImpl.newIITSource(dispatch);
  }

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

    return ITSourceImpl.newIITSource(dispatch);
  }

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

    final int playlistID = 2;
    final int trackID = 3;
    final int databaseID = 4;
   
    IJitcaCOMInterface comMock = EasyMock.createMock(IJitcaCOMInterface.class);
    DispatchObject objectMock = EasyMock.createMock(DispatchObject.class);
   
    EasyMock.expect(objectMock.createCOMInterface()).andReturn(comMock);
    EasyMock.expect(objectMock.isValid()).andReturn(true);
    EasyMock.expect(comMock.getPropertyAsLong("SourceID")).andReturn((long) sourceID);
    EasyMock.expect(comMock.getPropertyAsLong("PlaylistID")).andReturn((long) playlistID);
    EasyMock.expect(comMock.getPropertyAsLong("TrackID")).andReturn((long) trackID);
    EasyMock.expect(comMock.getPropertyAsLong("TrackDatabaseID")).andReturn((long) databaseID);
   
View Full Code Here

  public int getPropertyAsInt(String propertyName) {
    return this.getProperty(propertyName).getInt();
  }

  public DispatchObject getPropertyAsDispatchObject(String propertyName) {
    DispatchObject test = this.getProperty(propertyName).getDispatch();
    return test;
  }
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.