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 221b43e29f Archive Project
2017-07-25 16:38:32 +02:00

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