1 /*
2    Project: MPDCon
3 
4    Copyright (C) 2012 Free Software Foundation
5 
6    Author: Sebastian Reitenbach
7 
8    Created: 2012-11-11 11:11:38 +0100 by sebastia
9 
10    This application is free software; you can redistribute it and/or
11    modify it under the terms of the GNU General Public
12    License as published by the Free Software Foundation; either
13    version 2 of the License, or (at your option) any later version.
14 
15    This application is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18    Library General Public License for more details.
19 
20    You should have received a copy of the GNU General Public
21    License along with this library; if not, write to the Free
22    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
23 */
24 
25 #ifndef _SQLITEADAPTOR_H_
26 #define _SQLITEADAPTOR_H_
27 
28 #import <Foundation/Foundation.h>
29 #import <SQLClient/SQLClient.h>
30 
31 @interface SQLiteAdaptor : NSObject
32 {
33   SQLClient *MPDConDB;
34 }
35 + (id) sharedSQLiteAdaptor;
36 
37 // Song ratings related methods
38 - (void) setRating: (NSInteger) rating forFile: (NSString *) fileName;
39 - (NSInteger) getRatingForFile: (NSString *) fileName;
40 - (NSArray *) getFilesForRatingsInRange: (NSRange) range;
41 
42 // Lyrics related methods
43 - (void) setLyrics: (NSString *) lyricsText withURL: (NSString *) lyricsURL forFile: (NSString *) fileName;
44 - (NSDictionary *) getLyricsForFile: (NSString *) fileName;
45 
46 @end
47 
48 #endif // _SQLITEADAPTOR_H_
49 
50