aboutsummaryrefslogtreecommitdiff
path: root/VKPC/PlaylistTableController.h
diff options
context:
space:
mode:
Diffstat (limited to 'VKPC/PlaylistTableController.h')
-rw-r--r--VKPC/PlaylistTableController.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/VKPC/PlaylistTableController.h b/VKPC/PlaylistTableController.h
new file mode 100644
index 0000000..1a520e5
--- /dev/null
+++ b/VKPC/PlaylistTableController.h
@@ -0,0 +1,32 @@
+//
+// PlaylistTableController.h
+// VKPC
+//
+// Created by Eugene on 12/1/13.
+// Copyright (c) 2013-2014 Eugene Z. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import "QueueControllerProtocol.h"
+#import "Types.h"
+
+@class PlaylistTableView, Queue, Playlist, PlaylistTableCellView;
+
+@interface PlaylistTableController : NSViewController <NSTableViewDataSource, NSTableViewDelegate, QueueControllerProtocol>
+
+@property (assign) BOOL inited;
+@property (strong) Playlist *playlist;
+
+- (void)selectedRowAtIndex:(NSInteger)index;
+- (void)setPlaylistDataWithTracks:(NSArray *)tracks title:(NSString *)title id:(NSInteger)_id activeId:(NSString *)activeId activePlaying:(BOOL)activePlaying browser:(NSString *)browser;
++ (void)preSetPlaylistDataWithTracks:(NSArray *)tracks title:(NSString *)title id:(NSInteger)_id activeId:(NSString *)activeId activePlaying:(BOOL)activePlaying browser:(NSString *)browser;
+- (void)clearPlaylist;
+- (void)showNotification:(NSInteger)trackIndex;
+- (void)onQueueTask:(NSInteger)task forQueue:(Queue *)queue;
+- (void)playlistUpdated;
+- (void)setPlayingRow:(NSInteger)index withStatus:(PlayingStatus)status;
+- (void)setPlayingTrackById:(NSString *)_id withStatus:(PlayingStatus)status forPlaylist:(NSInteger)playlistId;
+- (int)numberOfRowsInTable;
+- (PlaylistTableCellView *)getCellViewForIndex:(NSInteger)index;
+
+@end