aboutsummaryrefslogtreecommitdiff
path: root/VKPC/Playlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'VKPC/Playlist.h')
-rw-r--r--VKPC/Playlist.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/VKPC/Playlist.h b/VKPC/Playlist.h
new file mode 100644
index 0000000..9a36bab
--- /dev/null
+++ b/VKPC/Playlist.h
@@ -0,0 +1,42 @@
+//
+// Playlist.h
+// VKPC
+//
+// Created by Evgeny on 12/4/13.
+// Copyright (c) 2013-2014 Eugene Z. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+@protocol PlaylistDelegate <NSObject>
+- (void)playlistIDChanged:(NSInteger)playlistID;
++ (void)playlistIDChanged:(NSInteger)playlistID;
+@end
+
+@interface Playlist : NSObject
+
+@property (strong, nonatomic) NSMutableArray *tracks;
+
+@property (strong, nonatomic) NSString *title;
+@property (strong, nonatomic) NSString *lastTitle;
+
+@property (assign, nonatomic) NSInteger playlistID;
+@property (assign) NSInteger lastPlaylistID;
+
+@property (assign) NSInteger lastTracksCount;
+
+@property (assign) PlayingTrackStatus playing;
+@property (assign) PlayingTrackStatus lastPlaying;
+
+@property (strong) NSString *browser; // TODO delete
+@property (strong) id<PlaylistDelegate> delegate;
+
+- (void)replaceWithDataFromPlaylist:(Playlist *)pl;
+- (int)trackIndexById:(NSString *)_id;
+- (void)setPlayingStatus:(PlayingStatus)status;
+- (void)setPlayingIndex:(NSInteger)index;
+- (void)clear;
+- (BOOL)changed;
+- (BOOL)empty;
+
+@end