Colour targets: Be controversial and have white stars on a black background...
[Rockbox.git] / songdbj / RundbEntry.java
blobc13cbe4924a18f49526e8e29ea239ab7ac331f28
1 import java.io.*;
3 public class RundbEntry extends Entry {
4 protected FileEntry file;
5 protected short rating, voladj;
6 protected int playcount,lastplayed;
8 public RundbEntry(FileEntry f) {
9 file=f;
10 rating=0;
11 voladj=0;
12 playcount=0;
13 lastplayed=0;
16 public void write(DataOutputStream w) throws IOException {
17 w.writeInt(file.getOffset());
18 w.writeInt(file.getHash());
19 w.writeShort(rating);
20 w.writeShort(voladj);
21 w.writeInt(playcount);
22 w.writeInt(lastplayed);
25 public static int entrySize() {
26 return 20;