Welcome to mirror list, hosted at ThFree Co, Russian Federation.

MapCell.h « Classes « Maps « iphone - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 74cf6443f5a09bf7aa1117e43130fbdaa06e7d5e (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
34
35
36
37
38
39
40
41
42
43
44

#import <UIKit/UIKit.h>
#import "ProgressView.h"
#import "BadgeView.h"

#include "../../storage/storage_defines.hpp"
#include "../../platform/country_defines.hpp"

using namespace storage;

@class MapCell;
@protocol MapCellDelegate <NSObject>

@optional
- (void)mapCellDidStartDownloading:(MapCell *)cell;
- (void)mapCellDidCancelDownloading:(MapCell *)cell;

@end

@interface MapCell : UITableViewCell

@property (nonatomic, readonly) UILabel * titleLabel;
@property (nonatomic, readonly) UILabel * subtitleLabel;
@property (nonatomic, readonly) UILabel * sizeLabel;
@property (nonatomic, readonly) BadgeView * badgeView;

@property (nonatomic, readonly) UIView *separatorTop;
@property (nonatomic, readonly) UIView *separator;
@property (nonatomic, readonly) UIView *separatorBottom;

@property (nonatomic) BOOL parentMode;

@property (nonatomic) TStatus status;
@property (nonatomic) MapOptions options;
@property (nonatomic) double downloadProgress;

@property (nonatomic, weak) id <MapCellDelegate> delegate;

- (void)setStatus:(TStatus)status options:(MapOptions)options animated:(BOOL)animated;
- (void)setDownloadProgress:(double)downloadProgress animated:(BOOL)animated;

+ (CGFloat)cellHeight;

@end