Package com.jitcaforwin.basic.api

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


    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

    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

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

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

        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

  @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

Related Classes of com.jitcaforwin.basic.api.IITTrack

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.