Android Open Source - pi-android-player Settings






From Project

Back to project page pi-android-player.

License

The source code is released under:

Apache License

If you think the Android project pi-android-player listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package edu.ptit.xbmc.model;
/*from  w w w.ja va2 s  . c  om*/
import java.io.Serializable;

public class Settings implements Serializable {
  /**
   * 
   */
  private static final long serialVersionUID = -8140754327381945252L;
  private String piUrl;
  private int piPort;
  private boolean shuffled, muted;
  private int repeat, volume;

  public int getRepeat() {
    return repeat;
  }

  public boolean isMuted() {
    return muted;
  }

  public void setMuted(boolean muted) {
    this.muted = muted;
  }

  public void setRepeat(int repeat) {
    this.repeat = repeat;
  }

  public int getVolume() {
    return volume;
  }

  public void setVolume(int volume) {
    this.volume = volume;
  }

  public static int REPEAT_ONE = 1;
  public static int REPEAT_NONE = 0;
  public static int REPEAT_ALL = 3;

  public Settings() {
  }

  public String getPiUrl() {
    return piUrl;
  }

  public void setPiUrl(String piUrl) {
    this.piUrl = piUrl;
  }

  public int getPiPort() {
    return piPort;
  }

  public void setPiPort(int piPort) {
    this.piPort = piPort;
  }

  public boolean isShuffled() {
    return shuffled;
  }

  public void setShuffled(boolean shuffled) {
    this.shuffled = shuffled;
  }

  

  public void setRepeate(String repeat) {
    if (repeat.equalsIgnoreCase("None"))
      this.repeat = REPEAT_NONE;
    if (repeat.equalsIgnoreCase("One"))
      this.repeat = REPEAT_ONE;
    if (repeat.equalsIgnoreCase("All"))
      this.repeat = REPEAT_ALL;
  }

}




Java Source Code List

.FragmentAlbum.java
.FragmentArtist.java
.MyTabListener.java
.TabListenerForAlbum.java
edu.ptit.xbmc.activities.MainActivity.java
edu.ptit.xbmc.adapter.AllAlbumAdapter.java
edu.ptit.xbmc.adapter.AllArtistAdapter.java
edu.ptit.xbmc.adapter.AllSongAdapter2.java
edu.ptit.xbmc.adapter.ImageAdapter.java
edu.ptit.xbmc.fragments.FragmentAlbumDetail.java
edu.ptit.xbmc.fragments.FragmentAlbumList.java
edu.ptit.xbmc.fragments.FragmentAllSong.java
edu.ptit.xbmc.fragments.FragmentArtistDetail.java
edu.ptit.xbmc.fragments.FragmentArtistList.java
edu.ptit.xbmc.fragments.FragmentDirectRemote.java
edu.ptit.xbmc.fragments.FragmentNowPlaying.java
edu.ptit.xbmc.fragments.FragmentSettings.java
edu.ptit.xbmc.model.Album.java
edu.ptit.xbmc.model.Artist.java
edu.ptit.xbmc.model.Settings.java
edu.ptit.xbmc.model.Song.java
edu.ptit.xbmc.sp.Constants.java
edu.ptit.xbmc.sp.SPUtils.java
edu.ptit.xbmc.tablistener.TabListenerForArtist.java
edu.ptit.xbmc.tools.PiConnector.java
edu.ptit.xbmc.tools.Utils.java