summaryrefslogtreecommitdiff
path: root/VKPC/Controller.h
blob: 8de646f21d9227c1313f4cf29fed56fd65d1a898 (plain)
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
//
//  Controller.h
//  VKPC
//
//  Created by Eugene on 10/23/14.
//  Copyright (c) 2014 Eugene Z. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Playlist.h"

@interface Controller : NSObject <PlaylistDelegate>

+ (void)prev;
+ (void)next;
+ (void)playpause;
+ (void)operateTrack:(NSString *)trackID;
+ (NSString *)findRunningAppAndPrepareASForCommand:(NSString *)command;
+ (void)sendCommand:(NSString *)command;
+ (void)handleClient:(NSDictionary *)json;

+ (BOOL)isASBrowser:(NSInteger)browser;
+ (NSString *)JSONForCommand:(NSString *)command data:(NSObject *)data;


#ifdef DEBUG
+ (void)debugInject;
+ (void)debugSendPlay;
+ (void)debugCopyJS;
+ (void)debugCopyAS;
#endif

@end