This repository has been archived by the owner on Jun 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLastifyController.h
64 lines (48 loc) · 1.61 KB
/
LastifyController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//
// LastifyController.h
// Lastify
//
// Created by George on 16/01/2009.
// Copyright 2008 George Brocklehurst. Some rights reserved (see accompanying LICENSE file for details).
//
#import <Cocoa/Cocoa.h>
#import "LastifyLastfmClient.h"
@interface LastifyController : NSObject
{
IBOutlet NSDrawer *drawer;
IBOutlet NSPanel *tagPanel;
IBOutlet NSTokenField *tagField;
IBOutlet NSPanel *playlistPanel;
IBOutlet NSArrayController *playlistsController;
LastifyLastfmClient *lastfm;
IBOutlet NSButton *loveButton;
IBOutlet NSButton *banButton;
IBOutlet NSButton *tagButton;
IBOutlet NSButton *listButton;
IBOutlet NSButton *loginButton;
IBOutlet NSImageView *statusImage;
NSString *currentTrack;
NSString *currentArtist;
NSArray *currentTags;
}
@property(readonly, retain) LastifyLastfmClient *lastfm;
@property(readwrite, retain) NSString *currentTrack;
@property(readwrite, retain) NSString *currentArtist;
@property(readwrite, retain) NSArray *currentTags;
+ (BOOL)swapMethod:(SEL)firstSelector withMethod:(SEL)secondSelector onClass:(Class)class;
+ (LastifyController*)sharedInstance;
- (void)initLastfmConnection;
- (void)loadUserInterface;
- (void)startNewTrack:(NSString*)trackName byArtist:(NSString*)artistName;
- (void)displayWorkingIcon;
- (void)displayResultIcon:(BOOL)result;
- (IBAction)loveTrack:(id)sender;
- (IBAction)banTrack:(id)sender;
- (IBAction)tagTrack:(id)sender;
- (IBAction)taggingOK:(id)sender;
- (IBAction)taggingCancel:(id)sender;
- (IBAction)addTrackToPlaylist:(id)sender;
- (IBAction)playlistOK:(id)sender;
- (IBAction)playlistCancel:(id)sender;
- (IBAction)auth:(id)sender;
@end