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 Statistics 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_STATISTICSCONTROLLER_H 28 #define _PCAPPPROJ_STATISTICSCONTROLLER_H 29 30 #include <AppKit/AppKit.h> 31 #include "StatisticsItem.h" 32 #include "MPDController.h" 33 #include "Strings.h" 34 35 @interface StatisticsController : NSWindowController 36 { 37 IBOutlet NSTextField *songs; 38 IBOutlet NSTextField *artists; 39 IBOutlet NSTextField *albums; 40 IBOutlet NSTextField *uptime; 41 IBOutlet NSTextField *playtime; 42 IBOutlet NSTextField *dbPlaytime; 43 IBOutlet NSTextField *dbUpdatetime; 44 45 IBOutlet NSTextField *window; 46 } 47 48 // Initialization Methods 49 + (id) sharedStatisticsController; 50 51 // Gui Methods 52 - (void) closeWindow: (id)sender; 53 - (void) updateStatistics: (id)sender; 54 55 // Notification Methods 56 - (void) didNotConnect: (NSNotification *)aNotif; 57 @end 58 59 #endif 60