Examples of IITTrack


Examples of com.jitcaforwin.basic.api.IITTrack

    super(iTunes, listener);
    this.listener = listener;
  }

  public void OnPlayerPlayEvent(Variant args[]) throws JitcaException {
    IITTrack track = this.getTrack(args);
    this.listener.onPlayerPlayEvent(track);
  }
View Full Code Here

Examples of com.jitcaforwin.basic.api.IITTrack

    IITTrack track = this.getTrack(args);
    this.listener.onPlayerPlayEvent(track);
  }

  public void OnPlayerStopEvent(Variant args[]) throws JitcaException {
    IITTrack track = this.getTrack(args);
    this.listener.onPlayerStopEvent(track);
  }
View Full Code Here

Examples of com.jitcaforwin.basic.api.IITTrack

    IITTrack track = this.getTrack(args);
    this.listener.onPlayerStopEvent(track);
  }

  public void OnPlayerPlayingTrackChangedEvent(Variant args[]) throws JitcaException {
    IITTrack track = this.getTrack(args);
    this.listener.onPlayerPlayingTrackChangedEvent(track);
  }
View Full Code Here

Examples of com.jitcaforwin.basic.api.IITTrack

  // TestTODO
  public IITTrack addTrack(IITTrack trackToAdd) throws JitcaTrackException, PlaylistDeletedException, PlaylistReadOnlyException {
    try {
      ResultObject result = this.iTunesCom.callFunction("AddTrack", trackToAdd.getDispatchObject());
      IITTrack track = ITTrackImpl.create(result.getDispatch());
      if (track == null) {
        throw new JitcaTrackException("Error occured during addTrack. Track could not be added.");
      }
      return track;
    } catch (ITUNES_E_OBJECTDELETED e) {
View Full Code Here

Examples of com.jitcaforwin.basic.api.IITTrack

public class CurrentTrackDemo {

  public static void main(String args[]) {
    try {
      IiTunes iTunes = new iTunesApp();
      IITTrack track = iTunes.getCurrentTrack();

      if (track == null) {
        System.out.println("Currently no track played!");
      } else {
        System.out.println(track.getName() + " by " + track.getArtist()
            + " is currently played. \n");
        ;
      }

      iTunes.close();
View Full Code Here

Examples of com.jitcaforwin.basic.api.IITTrack

        boolean hasNext = true;
        int i = 1;

        while (hasNext) {
          IITTrack track = selectedTracks.item(i);
          if (track == null) {
            hasNext = false;
          } else {
            System.out.println(track.getName() + " by "
                + track.getArtist() + " added to playlist.");
            newPlaylist.addTrack(track);
            i++;
          }
        }
View Full Code Here

Examples of com.jitcaforwin.basic.api.IITTrack

  @Test
  public void testInitCollectionFromITCollection() throws JitcaException {
    UserLibraryImpl libraryMock = EasyMock.createMock(UserLibraryImpl.class);
    TrackFactory trackFactoryMock = EasyMock.createMock(TrackFactory.class);
    IITTrack itThrillerMock = EasyMock.createMock(IITTrack.class);
    IITTrack itBeatItMock = EasyMock.createMock(IITTrack.class);
    IITTrack itBillyJeanMock = EasyMock.createMock(IITTrack.class);
    IITTrackCollection itTrackCollectionMock = EasyMock.createMock(IITTrackCollection.class);
    TrackImpl thrillerMock = EasyMock.createMock(TrackImpl.class);
    TrackImpl beatItMock = EasyMock.createMock(TrackImpl.class);
    TrackImpl billyJeanMock = EasyMock.createMock(TrackImpl.class);
   
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.