-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAudioCell.h
38 lines (30 loc) · 858 Bytes
/
AudioCell.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
//
// AudioCell.h
// VKMusic
//
// Created by Evgeniy Kirpichenko on 1/26/13.
// Copyright (c) 2013 Evgeniy Kirpichenko. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Audio.h"
typedef enum {
kAudioCacheStatusSaved = 0,
kAudioCacheStatusSaveInProgress,
kAudioCacheStatusNotSaved
} AudioCacheStatus;
@protocol AudioCellDelegate <NSObject>
- (void) saveAudio:(id<Audio>) audio;
@end
@interface AudioCell : UITableViewCell
{
__weak IBOutlet UILabel *artist;
__weak IBOutlet UILabel *title;
__weak IBOutlet UILabel *time;
__weak IBOutlet UILabel *savingProgress;
__weak IBOutlet UIButton *saveButton;
}
@property (nonatomic,strong) id<Audio> audio;
@property (nonatomic,weak) id<AudioCellDelegate> delegate;
- (void)setAudioCacheStatus:(AudioCacheStatus)status;
- (void)setProgress:(NSInteger)progress;
@end