1 /*
2    Project: MPDCon
3 
4    Copyright (C) 2004
5 
6    Author: Daniel Luederwald
7 
8    Created: 2004-05-14 11:53:40 +0200 by flip
9 
10    PlaylistItem
11 
12    This application is free software; you can redistribute it and/or
13    modify it under the terms of the GNU General Public
14    License as published by the Free Software Foundation; either
15    version 2 of the License, or (at your option) any later version.
16 
17    This application is distributed in the hope that it will be useful,
18    but WITHOUT ANY WARRANTY; without even the implied warranty of
19    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20    Library General Public License for more details.
21 
22    You should have received a copy of the GNU General Public
23    License along with this library; if not, write to the Free
24    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
25 */
26 
27 #ifndef _PCAPPPROJ_PLAYLISTITEM_H_
28 #define _PCAPPPROJ_PLAYLISTITEM_H_
29 
30 #import <Foundation/Foundation.h>
31 #import "SQLiteAdaptor.h"
32 
33 @interface PlaylistItem : NSObject
34 {
35   NSString *artist;
36   NSString *title;
37   NSString *album;
38   NSString *genre;
39   NSString *trackNr;
40   NSString *path;
41   NSString *comment;
42   NSString *date;
43   NSString *composer;
44   NSString *performer;
45   NSString *disc;
46   NSString *lyricsURL;
47   NSString *lyricsText;
48 
49   int elapsedTime;
50   int totalTime;
51   int ID;
52   int pos;
53   SQLiteAdaptor *MPDConDB;
54   NSMutableString *element;
55 }
56 
57 // Accessor Methods
58 - (NSString *) getArtist;
59 - (void) setArtist: (NSString *)newArtist;
60 - (NSString *) getTitle;
61 - (void) setTitle: (NSString *)newTitle;
62 - (NSString *) getAlbum;
63 - (void) setAlbum: (NSString *)newAlbum;
64 - (NSString *) getGenre;
65 - (void) setGenre: (NSString *)newGenre;
66 - (NSString *) getComment;
67 - (void) setComment: (NSString *)newComment;
68 - (NSString *) getDate;
69 - (void) setDate: (NSString *) newDate;
70 - (NSString *) getComposer;
71 - (void) setComposer: (NSString *) newComposer;
72 - (NSString *) getPerformer;
73 - (void) setPerformer: (NSString *) newPerformer;
74 - (NSString *) getDisc;
75 - (void) setDisc: (NSString *) newDisc;
76 - (NSString *) getTrackNr;
77 - (void) setTrackNr: (NSString *)newNr;
78 - (int) getElapsedTime;
79 - (void) setElapsedTime: (int)newTime;
80 - (int) getTotalTime;
81 - (void) setTotalTime: (int)newTime;
82 - (NSString *) getPath;
83 - (void) setPath: (NSString *)newPath;
84 - (int) getID;
85 - (void) setID: (int) newID;
86 - (int) getPos;
87 - (void) setPos: (int) newPos;
88 - (NSInteger) getRating;
89 - (void) setRating: (NSInteger)newRating;
90 - (NSDictionary *) getLyrics;
91 - (void) setLyrics: (NSString *) _lyricsText withURL: (NSString *)_lyricsURL;
92 @end
93 
94 #endif
95 
96