2008-02-11 04:45:34 -03:00
|
|
|
//
|
|
|
|
// SpotlightWindowController.h
|
|
|
|
// Cog
|
|
|
|
//
|
|
|
|
// Created by Matthew Grinshpun on 10/02/08.
|
2008-02-14 11:07:10 -03:00
|
|
|
// Copyright 2008 Matthew Leon Grinshpun. All rights reserved.
|
2008-02-11 04:45:34 -03:00
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
@class PlaylistLoader;
|
|
|
|
|
|
|
|
@interface SpotlightWindowController : NSWindowController {
|
|
|
|
IBOutlet PlaylistLoader *playlistLoader;
|
2008-02-13 20:51:36 -03:00
|
|
|
IBOutlet NSArrayController *playlistController;
|
|
|
|
IBOutlet NSPathControl *pathControl;
|
2008-02-16 13:38:44 -03:00
|
|
|
IBOutlet NSSearchField *searchField;
|
2008-02-13 20:51:36 -03:00
|
|
|
NSMetadataQuery *query;
|
|
|
|
NSString *searchString;
|
2008-02-11 04:45:34 -03:00
|
|
|
}
|
|
|
|
|
2008-02-13 20:51:36 -03:00
|
|
|
- (IBAction)addToPlaylist:(id)sender;
|
2008-02-21 07:45:09 -03:00
|
|
|
- (IBAction)toggleWindow:(id)sender;
|
2008-02-13 20:51:36 -03:00
|
|
|
|
|
|
|
- (void)performSearch;
|
|
|
|
- (NSPredicate *)processSearchString;
|
|
|
|
|
2008-02-16 13:13:21 -03:00
|
|
|
- (void)searchForArtist:(NSString *)artist;
|
|
|
|
- (void)searchForAlbum:(NSString *)album;
|
|
|
|
|
2008-02-13 20:51:36 -03:00
|
|
|
@property(retain) NSMetadataQuery *query;
|
|
|
|
@property(copy) NSString *searchString;
|
2008-02-11 04:45:34 -03:00
|
|
|
|
|
|
|
@end
|