-Repositioned the load more results button into the outline view -Improved the replacing of html escape characters -Lyrics Hosters can now be dragged into a preferred order in the preference window -Changed results outline's column ordering method -Some code changes -Replaced the Buttons in the lyrics pane with an action button -Preferred order of lyrics hosters will now be saved -Translation Improvements
39 lines
763 B
Objective-C
39 lines
763 B
Objective-C
//
|
|
// LyricsHoster.h
|
|
// iLyrics
|
|
//
|
|
// Created by Kim Wittenburg on 10.06.12.
|
|
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "Lyrics.h"
|
|
#import "LyricsHosterUtil.h"
|
|
|
|
@protocol LyricsHoster <NSObject>
|
|
|
|
@property BOOL enabled;
|
|
|
|
-(NSString*) name;
|
|
|
|
-(NSDate*) hosterVersion;
|
|
|
|
-(void) startNewSearchForQuery: (NSString*) query;
|
|
|
|
-(BOOL) hasMoreResults;
|
|
|
|
//Return an empty array for a "No results found" message and nil for a "network error".
|
|
-(NSArray*) nextResults;
|
|
|
|
-(void) resetLoadedResults;
|
|
|
|
-(BOOL) canShowInBrowser:(id)result;
|
|
|
|
-(void) showInBrowser:(id)result;
|
|
|
|
//Return nil for a "network error"
|
|
//parameter should be a SearchResult instance
|
|
-(Lyrics*) lyricsBySearchResult: (id) result;
|
|
|
|
@end
|