First snapshot (beta 0.9)

- playlists working (not all features added yet)
- minor fixes and improvements
This commit is contained in:
Karim Abou Zeid 2015-03-18 15:32:35 +01:00
commit 11ee05ce64
30 changed files with 1055 additions and 126 deletions

View file

@ -0,0 +1,22 @@
package com.kabouzeid.gramophone.model;
/**
* Created by karim on 17.03.15.
*/
public class DataBaseChangedEvent {
public static final int PLAYLISTS_CHANGED = 0;
public static final int ALBUMS_CHANGED = 1;
public static final int ARTISTS_CHANGED = 2;
public static final int SONGS_CHANGED = 3;
public static final int DATABASE_CHANGED = 4;
private int action;
public DataBaseChangedEvent(int action) {
this.action = action;
}
public int getAction() {
return action;
}
}

View file

@ -2,15 +2,15 @@ package com.kabouzeid.gramophone.model;
public class Playlist {
public int id;
public String playlistName;
public String name;
public Playlist(final int id, final String playlistName) {
public Playlist(final int id, final String name) {
this.id = id;
this.playlistName = playlistName;
this.name = name;
}
public Playlist() {
this.id = -1;
this.playlistName = "";
this.name = "";
}
}