Android Open Source - shareplay I Client






From Project

Back to project page shareplay.

License

The source code is released under:

Copyright (c) 2014, Benjamin Damer All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...

If you think the Android project shareplay 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 com.afqa123.shareplay.interfaces;
/*from w ww  .  j a  v a2 s  .c om*/
import com.afqa123.shareplay.common.DBHelper;
import com.afqa123.shareplay.impl.Server;

public interface IClient {
  
  /**
   * Connects this client to server.
   */
  void connect(final DBHelper db, final Server server);
  
  /**
   * Provides connection state.
   * 
   * @return True if connected, otherwise false
   */
  boolean isConnected();
  
  /**
   * Returns catalog for this provider.
   * 
   * @return Catalog
   */
  Catalog getCatalog();
  
  /**
   * Returns playback URL.
   * 
   * @return String
   */
  String getPlaybackURL();
  
  /**
   * Returns server
   * 
   * @return Server
   */
  Server getServer();
  
  /**
   * Refreshes the catalog if stale.
   * 
   * @param callback
   */
  void updateCatalog(final boolean force);
  
  /**
   * Cancels update if in progress.
   */
  void cancelUpdate();
  
  /**
   * Downloads a song to local directory.
   * 
   * @param id Song database id
   */
  void downloadSong(final long id);
  
  /**
   * Cancels download in progress.
   */
  void cancelDownload();
}




Java Source Code List

com.afqa123.log.DefaultLogger.java
com.afqa123.log.FileLogger.java
com.afqa123.log.LoggerFactory.java
com.afqa123.log.Logger.java
com.afqa123.log.NullLogger.java
com.afqa123.shareplay.DialogFactory.java
com.afqa123.shareplay.MediaPlayerService.java
com.afqa123.shareplay.SelectionActivity.java
com.afqa123.shareplay.SharePlayActivity.java
com.afqa123.shareplay.common.AuthorizationException.java
com.afqa123.shareplay.common.Base64.java
com.afqa123.shareplay.common.Constants.java
com.afqa123.shareplay.common.CustomFeedback.java
com.afqa123.shareplay.common.DAAPException.java
com.afqa123.shareplay.common.DBHelper.java
com.afqa123.shareplay.common.Feedback.java
com.afqa123.shareplay.common.Filename.java
com.afqa123.shareplay.common.ListWrapper.java
com.afqa123.shareplay.common.StoppableThread.java
com.afqa123.shareplay.common.StreamProxy.java
com.afqa123.shareplay.data.ContentCode.java
com.afqa123.shareplay.data.Item.java
com.afqa123.shareplay.data.Playlist.java
com.afqa123.shareplay.impl.Client.java
com.afqa123.shareplay.impl.DatabaseCatalog.java
com.afqa123.shareplay.impl.ServerProvider.java
com.afqa123.shareplay.impl.Server.java
com.afqa123.shareplay.interfaces.Catalog.java
com.afqa123.shareplay.interfaces.IClient.java
com.afqa123.shareplay.interfaces.IServerProvider.java