Android Open Source - EZ-Wifi-Notification Notification Settings






From Project

Back to project page EZ-Wifi-Notification.

License

The source code is released under:

GNU General Public License

If you think the Android project EZ-Wifi-Notification 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 et.nWifiManager.Notificators;
/*from  w ww  . j av a 2s  .c o m*/
import android.app.PendingIntent;
import android.net.Uri;

/**
 * Wrapper for Android notification settings 
 * @author ET
 *
 */
public class NotificationSettings {

  // Settings fields
  
  private CharSequence tickerText;
  private CharSequence contentTitle;
  private CharSequence contentText;
  private PendingIntent resultIntent;
  private boolean onGoing;
  private boolean vibrate=true;  //TODO find out why this is here and how to remove the default true (without it no sound notification)
  private long[] vibratePattern;
  private boolean showLights;
  private boolean sound=true;    //TODO find out why this is here and how to remove the default true (without it no sound notification)
  private Uri soundUri;
  
  // Getters and Setters
  
  /**
   * @return the tickerText
   */
  public CharSequence getTickerText() {
    return tickerText;
  }

  /**
   * @param tickerText the tickerText to set
   */
  public void setTickerText(CharSequence tickerText) {
    this.tickerText = tickerText;
  }

  /**
   * @return the pendingIntent
   */
  public PendingIntent getResultIntent() {
    return resultIntent;
  }

  /**
   * @param pendingIntent the pendingIntent to set
   */
  public void setResultIntent(PendingIntent pendingIntent) {
    this.resultIntent = pendingIntent;
  }

  /**
   * @return the onGoing
   */
  public boolean isOnGoing() {
    return onGoing;
  }

  /**
   * @param onGoing the onGoing to set
   */
  public void setOnGoing(boolean onGoing) {
    this.onGoing = onGoing;
  }

  /**
   * @return the contentTitle
   */
  public CharSequence getContentTitle() {
    return contentTitle;
  }

  /**
   * @param contentTitle the contentTitle to set
   */
  public void setContentTitle(CharSequence contentTitle) {
    this.contentTitle = contentTitle;
  }

  /**
   * @return the contentText
   */
  public CharSequence getContentText() {
    return contentText;
  }

  /**
   * @param contentText the contentText to set
   */
  public void setContentText(CharSequence contentText) {
    this.contentText = contentText;
  }

  /**
   * @return the vibrate
   */
  public boolean isVibrate() {
    return vibrate;
  }

  /**
   * @param vibrate the vibrate to set
   */
  public void setVibrate(boolean vibrate) {
    this.vibrate = vibrate;
  }

  /**
   * @return the vibratePattern
   */
  public long[] getVibratePattern() {
    return vibratePattern;
  }

  /**
   * @param vibratePattern the vibratePattern to set
   */
  public void setVibratePattern(long[] vibratePattern) {
    this.vibratePattern = vibratePattern;
  }
  
  /**
   * @return the showLights
   */
  public boolean isShowLights() {
    return showLights;
  }

  /**
   * @param showLights the showLights to set
   */
  public void setShowLights(boolean showLights) {
    this.showLights = showLights;
  }

  /**
   * @return the sound
   */
  public boolean isSound() {
    return sound;
  }

  /**
   * @param sound the sound to set
   */
  public void setSound(boolean sound) {
    this.sound = sound;
  }

  /**
   * @return the soundUri
   */
  public Uri getSoundUri() {
    return soundUri;
  }

  /**
   * @param soundUri the soundUri to set
   */
  public void setSoundUri(Uri soundUri) {
    this.soundUri = soundUri;
  }



}




Java Source Code List

et.nWifiManager.AnalyzeService.java
et.nWifiManager.ConnectivityBroadcastReceiver.java
et.nWifiManager.Constants.java
et.nWifiManager.Hardware.java
et.nWifiManager.LauncerActivity.java
et.nWifiManager.MyApplication.java
et.nWifiManager.PreferencesActivity.java
et.nWifiManager.Analyzers.AnalyzerInterface.java
et.nWifiManager.Analyzers.BrutalAnalyzer.java
et.nWifiManager.Analyzers.ContextWrapperIntentAnalyzerBase.java
et.nWifiManager.Analyzers.IntentAnalyzerInterface.java
et.nWifiManager.Analyzers.IntentAnalyzer.java
et.nWifiManager.Message.Message.java
et.nWifiManager.Message.Messages.java
et.nWifiManager.Notificators.NotificationSettings.java
et.nWifiManager.Notificators.Notificator.java
et.nWifiManager.Notificators.SystemNotificator.java
et.nWifiManager.conState.ConnectionStatusEnum.java