Android Open Source - MordazaCrush Queued Message






From Project

Back to project page MordazaCrush.

License

The source code is released under:

GNU General Public License

If you think the Android project MordazaCrush 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 org.confederacionpirata.mordazacrush.api;
/*from  w w w. ja  v a  2s  . com*/
public interface QueuedMessage {

  public enum Status {
    NONE, WAITING, SENDING, SENT, CANCELED, ERROR
  }

  /**
   * Status of the queue element.
   * 
   * @return The status.
   */
  Status getStatus();

  /**
   * Progress of the sending.
   * 
   * @return The progress over 1.
   */
  double getProgress();

  /**
   * Processed bytes in the sending.
   * 
   * @return Current sent bytes.
   */
  long getProcessedBytes();

  /**
   * Length of the element.
   * 
   * @return Length in bytes.
   */
  long getTotalBytes();

  /**
   * Removes the element from the queue.
   */
  void remove();

  /**
   * Cancels the sending of the element.
   */
  void cancel();

  /**
   * Retries sending when cancelled.
   */
  void retry();
}




Java Source Code List

org.confederacionpirata.mordazacrush.CameraPreview.java
org.confederacionpirata.mordazacrush.MCApp.java
org.confederacionpirata.mordazacrush.MainActivity.java
org.confederacionpirata.mordazacrush.api.ActionListener.java
org.confederacionpirata.mordazacrush.api.ChannelManager.java
org.confederacionpirata.mordazacrush.api.ChannelProvider.java
org.confederacionpirata.mordazacrush.api.MediaCrushMessage.java
org.confederacionpirata.mordazacrush.api.MediaCrushProvider.java
org.confederacionpirata.mordazacrush.api.Message.java
org.confederacionpirata.mordazacrush.api.QueuedMessage.java