Android Open Source - wolPi Interactor






From Project

Back to project page wolPi.

License

The source code is released under:

Apache License

If you think the Android project wolPi 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 de.matthesrieke.wolpi;
//  w  ww. j a va  2s.  c  o  m
/**
 * Interface providing interaction methods.
 * Those are called from the {@link WolPi} class.
 * 
 * @author matthes rieke
 *
 */
public interface Interactor {

  /**
   * The location of the output. Can be used
   * for different styling.
   */
  enum  Located {
    LOCAL, REMOTE
  }
  
  /**
   * request confirmation from user
   * 
   * @param request the question
   * @return user answer
   */
  boolean requestConfirmation(String request);

  /**
   * vargs styled output. Usage:
   * onOutput("test {}: {}", str1, obj2);
   */
  void onOutput(String output, Object... inlineStrings);
  
  /**
   * vargs styled output. Usage:
   * onOutput("test {}: {}", Located.LOCAL, str1, obj2);
   */
  void onOutput(String output, Located l, Object... inlineStrings);

  /**
   * vargs styled output. Usage:
   * onError("test {}: {}", str1, obj2);
   */
  void onError(String error, Object... inlineErrors);
  
  /**
   * vargs styled output. Usage:
   * onError("test {}: {}", Located.LOCAL, str1, obj2);
   */
  void onError(String error, Located l, Object... inlineErrors);
}




Java Source Code List

de.matthesrieke.wolpi.CommandResult.java
de.matthesrieke.wolpi.Interactor.java
de.matthesrieke.wolpi.SysoutInteractor.java
de.matthesrieke.wolpi.UserInfoImpl.java
de.matthesrieke.wolpi.WolPiException.java
de.matthesrieke.wolpi.WolPi.java
de.matthesrieke.wolpi.dao.SQLiteSettingsProvider.java
de.matthesrieke.wolpi.settings.HostConfiguration.java
de.matthesrieke.wolpi.settings.SSHConnection.java
de.matthesrieke.wolpi.settings.SettingsProvider.java
de.matthesrieke.wolpi.settings.WolSettings.java
de.matthesrieke.wolpi.ui.ConfirmationDialog.java
de.matthesrieke.wolpi.ui.HostListActivity.java
de.matthesrieke.wolpi.ui.HostManagementActivity.java
de.matthesrieke.wolpi.ui.MainActivity.java
de.matthesrieke.wolpi.ui.TextViewInteractor.java
de.matthesrieke.wolpi.util.AndroidServiceLoader.java