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

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Khmurets <subzero@mapswithme.com>2014-10-10 18:05:32 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:30:41 +0300
commite5f65a930eec7fb48a6b24a055d3c78968d46d80 (patch)
tree3ffcb3adc7a522eecbffde1d3867240f526925c5 /iphone/Maps/Classes/MapCell.h
parent545aaaafecb7c2add5029b7e4c635f2b6980ce6e (diff)
[ios] Downloader UI
Diffstat (limited to 'iphone/Maps/Classes/MapCell.h')
-rw-r--r--iphone/Maps/Classes/MapCell.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/iphone/Maps/Classes/MapCell.h b/iphone/Maps/Classes/MapCell.h
new file mode 100644
index 0000000000..e5813b352b
--- /dev/null
+++ b/iphone/Maps/Classes/MapCell.h
@@ -0,0 +1,39 @@
+
+#import <UIKit/UIKit.h>
+#import "ProgressView.h"
+#import "BadgeView.h"
+
+#include "../../storage/storage_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) BOOL parentMode;
+
+@property (nonatomic) TStatus status;
+@property (nonatomic) TMapOptions options;
+@property (nonatomic) double downloadProgress;
+
+@property (nonatomic, weak) id <MapCellDelegate> delegate;
+
+- (void)setStatus:(TStatus)status options:(TMapOptions)options animated:(BOOL)animated;
+- (void)setDownloadProgress:(double)downloadProgress animated:(BOOL)animated;
+
++ (CGFloat)cellHeight;
+
+@end