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