39 lines
763 B
Objective-C
Executable File
39 lines
763 B
Objective-C
Executable File
//
|
|
// 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
|