Android Open Source - PlanningPokerPlusPlus Preferences






From Project

Back to project page PlanningPokerPlusPlus.

License

The source code is released under:

Planning Poker++ for Android, copyright (c) 2011-2014 Richard Everett No specific license, but please don't rip off this codebase for use in your own similar app.

If you think the Android project PlanningPokerPlusPlus 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

// Planning Poker++ for Android, copyright (c) Richard Everett 2012
// Full source available on GitHub at http://richev.github.com/PlanningPokerPlusPlus
/*from w  w  w. j  a  va 2 s  . c om*/
package com.richev.planningpokerplusplus;

import android.content.SharedPreferences;

/**
 * Wrapper class for strongly-typed access to SharedPreferences
 * @author Rich
 *
 */
public class Preferences
{
    private final SharedPreferences _prefs;
    
    /**
     * Wrapper class for strongly-typed access to SharedPreferences
     * @param prefs use PreferenceManager.getDefaultSharedPreferences(this)
     */
    public Preferences(SharedPreferences prefs)
    {
        _prefs = prefs;
    }
    
    public boolean getIncludeZero()
    {
        return _prefs.getBoolean("includeZero", true);
    }

    public boolean getIncludeHalf()
    {
        return _prefs.getBoolean("includeHalf", true);
    }

    public boolean getIncludeInfinity()
    {
        return _prefs.getBoolean("includeInfinity", true);
    }

    public boolean getIncludeUnknown()
    {
        return _prefs.getBoolean("includeUnknown", true);
    }

    public boolean getIncludeCoffee()
    {
        return _prefs.getBoolean("includeCoffee", true);
    }
    
    public String getCardSequenceName()
    {
        return _prefs.getString("cardSequence", "fibonacci21");
    }
}




Java Source Code List

com.richev.planningpokerplusplus.AboutActivity.java
com.richev.planningpokerplusplus.CardActivity.java
com.richev.planningpokerplusplus.MainActivity.java
com.richev.planningpokerplusplus.MenuedActivity.java
com.richev.planningpokerplusplus.OnCardSelectListener.java
com.richev.planningpokerplusplus.Preferences.java
com.richev.planningpokerplusplus.SettingsActivity.java
com.richev.planningpokerplusplus.Startup.java
com.richev.planningpokerplusplus.UpsideDownImageView.java
com.richev.planningpokerplusplus.UpsideDownTextView.java
com.richev.planningpokerplusplus.Utils.java