root/trunk/src/main/org/lastpod/Model.java

Revision 76, 1.5 kB (checked in by chris, 3 years ago)

r7782@flan: chris | 2007-06-02 16:47:30 -0700
added missing copyright

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 /*
2  * LastPod is an application used to publish one's iPod play counts to Last.fm.
3  * Copyright (C) 2007  Chris Tilden
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18  */
19 package org.lastpod;
20
21 import java.util.List;
22
23 public interface Model {
24     List getRecentlyPlayed();
25
26     void setRecentlyPlayed(List recentlyPlayed);
27
28     /**
29      * A utility function to clear the recently played track list.
30      * @param recentlyPlayed
31      */
32     void clearRecentlyPlayed();
33
34     void selectAll();
35
36     void unselectAll();
37
38     /**
39      * Parses the play counts and track information from the iPod.
40      */
41     void parsePlayCounts(UI userInterface);
42
43     /**
44      * Submits the tracks to Last.fm
45      * @param userInterface  The application's user interface.
46      * @return  A status message upon completion.
47      */
48     Object submitTracks(UI userInterface);
49 }
Note: See TracBrowser for help on using the browser.