1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
package net.sourceforge.subsonic.androidapp.service; |
20 |
|
|
21 |
|
import java.util.List; |
22 |
|
|
23 |
|
import net.sourceforge.subsonic.androidapp.audiofx.EqualizerController; |
24 |
|
import net.sourceforge.subsonic.androidapp.audiofx.VisualizerController; |
25 |
|
import net.sourceforge.subsonic.androidapp.domain.MusicDirectory; |
26 |
|
import net.sourceforge.subsonic.androidapp.domain.PlayerState; |
27 |
|
import net.sourceforge.subsonic.androidapp.domain.RepeatMode; |
28 |
|
|
29 |
|
|
30 |
|
@author |
31 |
|
@version |
32 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
33 |
|
public interface DownloadService { |
34 |
|
|
35 |
|
void download(List<MusicDirectory.Entry> songs, boolean save, boolean autoplay, boolean playNext); |
36 |
|
|
37 |
|
void setShufflePlayEnabled(boolean enabled); |
38 |
|
|
39 |
|
boolean isShufflePlayEnabled(); |
40 |
|
|
41 |
|
void shuffle(); |
42 |
|
|
43 |
|
RepeatMode getRepeatMode(); |
44 |
|
|
45 |
|
void setRepeatMode(RepeatMode repeatMode); |
46 |
|
|
47 |
|
boolean getKeepScreenOn(); |
48 |
|
|
49 |
|
void setKeepScreenOn(boolean screenOn); |
50 |
|
|
51 |
|
boolean getShowVisualization(); |
52 |
|
|
53 |
|
void setShowVisualization(boolean showVisualization); |
54 |
|
|
55 |
|
void clear(); |
56 |
|
|
57 |
|
void clearIncomplete(); |
58 |
|
|
59 |
|
int size(); |
60 |
|
|
61 |
|
void remove(DownloadFile downloadFile); |
62 |
|
|
63 |
|
List<DownloadFile> getDownloads(); |
64 |
|
|
65 |
|
int getCurrentPlayingIndex(); |
66 |
|
|
67 |
|
DownloadFile getCurrentPlaying(); |
68 |
|
|
69 |
|
DownloadFile getCurrentDownloading(); |
70 |
|
|
71 |
|
void play(int index); |
72 |
|
|
73 |
|
void seekTo(int position); |
74 |
|
|
75 |
|
void previous(); |
76 |
|
|
77 |
|
void next(); |
78 |
|
|
79 |
|
void pause(); |
80 |
|
|
81 |
|
void start(); |
82 |
|
|
83 |
|
void reset(); |
84 |
|
|
85 |
|
PlayerState getPlayerState(); |
86 |
|
|
87 |
|
int getPlayerPosition(); |
88 |
|
|
89 |
|
int getPlayerDuration(); |
90 |
|
|
91 |
|
void delete(List<MusicDirectory.Entry> songs); |
92 |
|
|
93 |
|
void unpin(List<MusicDirectory.Entry> songs); |
94 |
|
|
95 |
|
DownloadFile forSong(MusicDirectory.Entry song); |
96 |
|
|
97 |
|
long getDownloadListUpdateRevision(); |
98 |
|
|
99 |
|
void setSuggestedPlaylistName(String name); |
100 |
|
|
101 |
|
String getSuggestedPlaylistName(); |
102 |
|
|
103 |
|
EqualizerController getEqualizerController(); |
104 |
|
|
105 |
|
VisualizerController getVisualizerController(); |
106 |
|
|
107 |
|
boolean isJukeboxEnabled(); |
108 |
|
|
109 |
|
void setJukeboxEnabled(boolean b); |
110 |
|
|
111 |
|
void adjustJukeboxVolume(boolean up); |
112 |
|
} |