Android Open Source - RelayRemote Constants






From Project

Back to project page RelayRemote.

License

The source code is released under:

GNU General Public License

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

// Copyright (C) 2012 Shane Tully 
////w w w  . j  a  v a 2s . c  o m
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

package com.shanet.relayremote;

public abstract class Constants {
    public static final String SETTINGS_FILE = "com.shanet.relay_remote_preferences";
    public static final String LOG_FILE      = "relay_remote_log";
        
    public static final int SUCCESS = 0;
    public static final int FAILURE = 1;
    
    public static final int ADD_EDIT_CODE = 42;
    
    public static final int NETWORK_TIMEOUT = 3000;
        
    public static final int DEFAULT_PORT = 2424;
    public static final int DEFAULT_PIN  = 9;

    public static final char OP_SET     = 's';
    public static final char OP_GET     = 'g';
    public static final char CMD_OFF    = '0';
    public static final char CMD_ON     = '1';
    public static final char CMD_TOGGLE = 't';
    
    public static final int WIDGET_RELAY = 0;
    public static final int WIDGET_GROUP = 1;
    
    public static final int NFC_RELAY = 0;
    public static final int NFC_GROUP = 1;
    
    public static final int ABOUT_THIS_APP = 0;
    public static final int CHANGELOG = 1;
}




Java Source Code List

com.shanet.relayremote.AddRelayGroup.java
com.shanet.relayremote.AddRelay.java
com.shanet.relayremote.Background.java
com.shanet.relayremote.Constants.java
com.shanet.relayremote.Database.java
com.shanet.relayremote.DialogUtils.java
com.shanet.relayremote.EditRelayGroup.java
com.shanet.relayremote.EditRelay.java
com.shanet.relayremote.Main.java
com.shanet.relayremote.NFC.java
com.shanet.relayremote.RelayAdapter.java
com.shanet.relayremote.RelayGroup.java
com.shanet.relayremote.RelayGroupsAdapter.java
com.shanet.relayremote.RelayGroupsFragment.java
com.shanet.relayremote.Relay.java
com.shanet.relayremote.RelaysFragment.java
com.shanet.relayremote.Server.java
com.shanet.relayremote.Utils.java
com.shanet.relayremote.VersionUtils.java
com.shanet.relayremote.WidgetConfig.java
com.shanet.relayremote.Widget.java