/* vim: set ft=objc ts=4 nowrap: */ /* * TrackList.h * * Copyright (c) 2003 * * Author: Andreas Schik * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef __TRACKLIST_H_INCLUDED #define __TRACKLIST_H_INCLUDED #include @interface TrackList : NSObject { id window; id titleField; id trackListView; int playsTrack; NSMutableDictionary *toc; NSString *artist; NSString *title; } - (id) init; - (id) initWithNibName: (NSString *) nibName; - (void) activate; - (BOOL) isVisible; - (void) setTOC: (NSDictionary *) newTOC; - (void) setPlaysTrack: (int) track; - (void)queryCddb:(id)sender; - (NSString *)createCddbQuery: (NSDictionary *) theTOC; - (void) saveCddbResultInCache: (NSString *) discid cdInfo: (NSDictionary *) cdInfo; /** *

Tries to retrieve cached cddb data for a CD from the local cache. * This method is executed exactly once when the CD has been detected.

*
* Inputs
* * discid * The cddb ID for the CD. * */ - (NSDictionary *) getCddbResultFromCache: (NSString *) discid; - (int) numberOfTracksInTOC; - (id)validRequestorForSendType: (NSString *) sendType returnType: (NSString *) returnType; - (BOOL)writeSelectionToPasteboard:(NSPasteboard *)pboard types:(NSArray *)types; // // class methods // + (void)initialize; + (id) sharedTrackList; @end #endif