Back to project page shareplay.
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.
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(); }