Archived
1
This repository has been archived on 2022-08-08. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ilyrics/iLyrics/LyricsHoster.h
Kim Wittenburg 41b1ef775c -Added Songtexte.com Lyrics Hoster
-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
2012-06-24 14:22:37 +02:00

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