Package com.jitcaforwin.main.specialtypes

Examples of com.jitcaforwin.main.specialtypes.JitcaDate


  public void setComposer(String composer) throws JitcaGeneralException {
    this.iTunesCom.setProperty("Composer", composer);
  }

  public JitcaDate getDateAdded() throws JitcaGeneralException {
    return new JitcaDate(this.iTunesCom.getPropertyAsDouble("DateAdded"));
  }
View Full Code Here


  public String getKindAsString() throws JitcaGeneralException {
    return this.iTunesCom.getPropertyAsString("KindAsString");
  }

  public JitcaDate getModificationDate() throws JitcaGeneralException {
    return new JitcaDate(this.iTunesCom.getPropertyAsDouble("ModificationDate"));
  }
View Full Code Here

  public void setPlayedCount(long playedCount) throws JitcaGeneralException {
    this.iTunesCom.setProperty("PlayedCount", playedCount);
  }

  public JitcaDate getPlayedDate() throws JitcaGeneralException {
    return new JitcaDate(this.iTunesCom.getPropertyAsDouble("PlayedDate"));
  }
View Full Code Here

  }
 
  public JitcaDate getPropertyAsDate(String propertyName)
      throws JitcaGeneralException {
    Variant result = this.iCom.getProperty(propertyName);
    return new JitcaDate(result.getDate());
  }
View Full Code Here

      for (Track track : tracksLastPlayed){
        System.out.println("\"" + track.getTitle() + "\" (" + track.getAlbum() + ")");
      }
     
      final long millisecondsOfDay = 24 * 60 * 60 * 1000;
      TrackCollection tracksPlayedToday = iTunes.getTrackController().lastPlayed(new JitcaDate(new Date(System.currentTimeMillis()-millisecondsOfDay)));
     
      System.out.println("The following tracks were played during the last 24 hours:");
      for (Track track : tracksPlayedToday){
        System.out.println("\"" + track.getTitle() + "\" (" + track.getAlbum() + ")");
      }
View Full Code Here

    for (Track track : tracksLastPlayed){
      System.out.println("\"" + track.getTitle() + "\" (" + track.getAlbum() + ")");
    }
   
    final long millisecondsOfDay = 24 * 60 * 60 * 1000;
    TrackCollection tracksPlayedToday = iTunes.getTrackController().lastPlayed(new JitcaDate(new Date(System.currentTimeMillis()-millisecondsOfDay)));
   
    System.out.println("The following tracks were played during the last 24 hours:");
    for (Track track : tracksPlayedToday){
      System.out.println("\"" + track.getTitle() + "\" (" + track.getAlbum() + ")");
    }
View Full Code Here

  }

  public JitcaDate getPropertyAsDate(String propertyName) {
    try {
      Variant result = this.iCom.getProperty(propertyName);
      return new JitcaDate(DateUtilities.convertWindowsTimeToDate(result.getDate()));
    } catch (JacobException e) {
      throw JitcaCOMException.handle(e);
    }
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.main.specialtypes.JitcaDate

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.