Android Open Source - MordazaCrush Channel Provider






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  ww . j av a  2s.  c om*/
import java.io.File;

import android.location.Location;

public interface ChannelProvider {

  /**
   * Informs about the capability of supporting image posts.
   * 
   * @return True if images are supported.
   */
  boolean isSupportingImages();

  /**
   * Informs about the capability of supporting video posts.
   * 
   * @return True if videos are supported.
   */
  boolean isSupportingVideos();

  /**
   * Informs about the capability of supporting audio posts.
   * 
   * @return True if audios are supported.
   */
  boolean isSupportingAudios();

  /**
   * Queues a photo in order to send to the remote server.
   * 
   * @param file
   *            The media file to send.
   * @param hashtags
   *            The hashtags related to the post.
   * @param location
   *            Where the media file was taken. It could be null.
   * @param listener
   *            Listener to handle action events.
   * @return A handler to control the element in the queue.
   */
  QueuedMessage postImage(File file, String[] hashtags, Location location,
      ActionListener listener);

  /***
   * Removes all elements in the queue waiting to be processed.
   */
  void removeAll();
}




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