Android Open Source - ShowCast Setting






From Project

Back to project page ShowCast.

License

The source code is released under:

GNU General Public License

If you think the Android project ShowCast 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 prezcast.sgu.fr.showcast.db.setting;
// w w  w. j ava 2 s.c  om
import android.os.Environment;

/**
 * Represent setting object.
 */
public class Setting {

    // Default directory for presentation
    public static final String DEFAULT_DIRECTORY_KEY = "setting.default.directory";
    public static final String DEFAULT_DIRECTORY_VALUE = Environment.getExternalStorageDirectory().getPath()+"/showcast";

    private int id;
    private EnumSettingsZone zone;
    private String name;
    private EnumSettingsType type;
    private String value;

    /**
     * Create new Setting
     * @param type Type of the data
     * @param zone ZOne in the list
     * @param name Name
     * @param value Value
     */
    public Setting(EnumSettingsType type,EnumSettingsZone zone,String name,String value){
        this.type = type;
        this.zone = zone;
        this.name = name;
        this.value = value;
    }

    @Override
    public String toString() {
        return "Setting[type: "+type.id+",zone: "+zone.id+",name: "+name+",value: "+value+"]";
    }

    public int getId() {
        return id;
    }

    public EnumSettingsZone getZone() {
        return zone;
    }

    public String getName() {
        return name;
    }

    public EnumSettingsType getType() {
        return type;
    }

    public String getValue() {
        return value;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setValue(String value) {
        this.value = value;
    }
}




Java Source Code List

prezcast.sgu.fr.showcast.ApplicationTest.java
prezcast.sgu.fr.showcast.activity.MainActivity.java
prezcast.sgu.fr.showcast.activity.PresentationActivity.java
prezcast.sgu.fr.showcast.activity.SettingsActivity.java
prezcast.sgu.fr.showcast.async.SettingsAsync.java
prezcast.sgu.fr.showcast.db.DBHelper.java
prezcast.sgu.fr.showcast.db.DbException.java
prezcast.sgu.fr.showcast.db.setting.EnumSettingsType.java
prezcast.sgu.fr.showcast.db.setting.EnumSettingsZone.java
prezcast.sgu.fr.showcast.db.setting.Setting.java
prezcast.sgu.fr.showcast.db.setting.SettingsTable.java
prezcast.sgu.fr.showcast.presentation.PresentationContents.java
prezcast.sgu.fr.showcast.presentation.TvPresentation.java
prezcast.sgu.fr.showcast.roboguice.RoboActionBarActivity.java
prezcast.sgu.fr.showcast.view.SeparatedListAdapter.java
prezcast.sgu.fr.showcast.view.SettingDialog.java