Clover Coverage Report - Subsonic-Android Coverage Report
Coverage timestamp: ven dic 19 2014 17:57:13 EST
0   112   0   -
0   48   -   0
0     -  
1    
This report was generated with an evaluation server license. Purchase Clover or configure your license.
 
  DownloadService       Line # 33 0 0 - -1.0
 
No Tests
 
1    /*
2    This file is part of Subsonic.
3   
4    Subsonic is free software: you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation, either version 3 of the License, or
7    (at your option) any later version.
8   
9    Subsonic is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12    GNU General Public License for more details.
13   
14    You should have received a copy of the GNU General Public License
15    along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
16   
17    Copyright 2009 (C) Sindre Mehus
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 Sindre Mehus
31    * @version $Id$
32    */
 
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    }