Android Open Source - security-cam Settings






From Project

Back to project page security-cam.

License

The source code is released under:

MIT License

If you think the Android project security-cam 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 berlin.reiche.securitas;
/* w  ww . j  ava2  s  .  com*/
/**
 * Application settings which are required in order to establish a connection to
 * the backend server.
 * 
 * @author Konrad Reiche
 * 
 */
public class Settings {

  /**
   * The host address of the backend server.
   */
  private final String host;

  /**
   * The port on which the backend server listens.
   */
  private final int port;

  /**
   * The username for authenticating with the backend server.
   */
  private final String username;

  /**
   * The password for authenticating with the backend server.
   */
  private final String password;

  /**
   * The GCM Sender ID is used in the registration process to identify the
   * application that is permitted to send messages to the device.
   */
  private final String gcmId;

  /**
   * Default constructor.
   * 
   * @param host
   *            the host address of the backend server.
   * @param port
   *            the port on which the backend server listens.
   * @param username
   *            the username for authenticating with the backend server.
   * @param password
   *            the password for authenticating with the backend server.
   * @param gcmId
   *            the GCM Sender ID is used in the registration process to
   *            identify the application that is permitted to send messages to
   *            the device.
   */
  public Settings(String host, String port, String username, String password,
      String gcmId) {
    super();
    this.host = host;
    this.port = Integer.valueOf(port);
    this.username = username;
    this.password = password;
    this.gcmId = gcmId;
  }

  /**
   * @return the host address of the backend server.
   */
  public String getHost() {
    return host;
  }

  /**
   * @return the port on which the backend server listens.
   */
  public int getPort() {
    return port;
  }

  /**
   * @return the username for authenticating with the backend server.
   */
  public String getUsername() {
    return username;
  }

  /**
   * @return the password for authenticating with the backend server.
   */
  public String getPassword() {
    return password;
  }

  /**
   * @return the GCM Sender ID is used in the registration process to identify
   *         the application that is permitted to send messages to the device.
   */
  public String getGcmSenderId() {
    return gcmId;
  }

}




Java Source Code List

berlin.reiche.securitas.Client.java
berlin.reiche.securitas.Settings.java
berlin.reiche.securitas.activities.Action.java
berlin.reiche.securitas.activities.LauncherActivity.java
berlin.reiche.securitas.activities.MainActivity.java
berlin.reiche.securitas.activities.SettingsActivity.java
berlin.reiche.securitas.activities.package-info.java
berlin.reiche.securitas.controller.ClientController.java
berlin.reiche.securitas.controller.Controller.java
berlin.reiche.securitas.controller.GCMIntentService.java
berlin.reiche.securitas.controller.GCMReceiver.java
berlin.reiche.securitas.controller.InboxHandler.java
berlin.reiche.securitas.controller.states.ControllerState.java
berlin.reiche.securitas.controller.states.DetectionState.java
berlin.reiche.securitas.controller.states.IdleState.java
berlin.reiche.securitas.controller.states.package-info.java
berlin.reiche.securitas.controller.tasks.BitmapDownloadTask.java
berlin.reiche.securitas.controller.tasks.DetectionRequest.java
berlin.reiche.securitas.controller.tasks.DeviceRegistration.java
berlin.reiche.securitas.controller.tasks.StatusTask.java
berlin.reiche.securitas.controller.tasks.package-info.java
berlin.reiche.securitas.controller.package-info.java
berlin.reiche.securitas.model.ClientModel.java
berlin.reiche.securitas.model.Model.java
berlin.reiche.securitas.model.Protocol.java
berlin.reiche.securitas.model.package-info.java
berlin.reiche.securitas.util.FlushedInputStream.java
berlin.reiche.securitas.util.HttpUtilities.java
berlin.reiche.securitas.util.NotificationDialog.java
berlin.reiche.securitas.util.package-info.java
berlin.reiche.securitas.package-info.java