1 /*
2    Project: MPDCon
3 
4    Copyright (C) 2004
5 
6    Author: Daniel Luederwald
7 
8    Created: 2004-05-12 17:59:14 +0200 by flip
9 
10    PlaylistsManager Controller
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_PLAYLISTSMANAGERCONTROLLER_H
28 #define _PCAPPPROJ_PLAYLISTSMANAGERCONTROLLER_H
29 
30 #include <AppKit/AppKit.h>
31 #include "MPDController.h"
32 #include "Strings.h"
33 
34 @interface PlaylistsManagerController : NSWindowController
35 {
36   IBOutlet NSTableView *listView;
37   IBOutlet NSTextField *saveField;
38   IBOutlet NSWindow *window;
39   MPDController *mpdController;
40 
41   NSArray *playlists;
42 }
43 // Initialization Methods
44 + (id) sharedPLManagerController;
45 
46 // Gui Methods
47 - (void) updateLists: (id)sender;
48 - (void) loadList: (id)sender;
49 - (void) saveList: (id)sender;
50 - (void) removeList: (id)sender;
51 
52 // TableView dataSource Methods
53 - (NSInteger) numberOfRowsInTableView: (NSTableView *)tableView;
54 
55 -            (id) tableView: (NSTableView *)tableView
56   objectValueForTableColumn: (NSTableColumn *)tableColumn
57                         row:(NSInteger)row;
58 
59 // Notification Methods
60 - (void) tableViewSelectionDidChange: (NSNotification *)aNotif;
61 - (void) didNotConnect: (NSNotification *)aNotif;
62 
63 @end
64 
65 #endif
66