Repo created

This commit is contained in:
Fr4nz D13trich 2025-11-22 13:58:55 +01:00
parent 4af19165ec
commit 68073add76
12458 changed files with 12350765 additions and 2 deletions

View file

@ -0,0 +1,39 @@
#import "MWMOpeningHoursEditorCells.h"
#import "MWMOpeningHoursTableViewCell.h"
#import "MWMTextView.h"
@protocol MWMOpeningHoursModelProtocol <NSObject>
@property(nonnull, copy, nonatomic) NSString * openingHours;
@property(nullable, weak, nonatomic, readonly) UITableView * tableView;
@property(nullable, weak, nonatomic, readonly) UIView * advancedEditor;
@property(nullable, weak, nonatomic, readonly) MWMTextView * editorView;
@property(nullable, weak, nonatomic, readonly) UIButton * toggleModeButton;
@end
@interface MWMOpeningHoursModel : NSObject
@property(nonatomic, readonly) NSUInteger count;
@property(nonatomic, readonly) BOOL canAddSection;
@property(nonatomic, readonly) BOOL isValid;
@property(nonatomic) BOOL isSimpleMode;
@property(nonatomic, readonly) BOOL isSimpleModeCapable;
- (instancetype _Nullable)initWithDelegate:(id<MWMOpeningHoursModelProtocol> _Nonnull)delegate;
- (void)addSchedule;
- (void)deleteSchedule:(NSUInteger)index;
- (MWMOpeningHoursEditorCells)cellKeyForIndexPath:(NSIndexPath * _Nonnull)indexPath;
- (CGFloat)heightForIndexPath:(NSIndexPath * _Nonnull)indexPath withWidth:(CGFloat)width;
- (void)fillCell:(MWMOpeningHoursTableViewCell * _Nonnull)cell atIndexPath:(NSIndexPath * _Nonnull)indexPath;
- (NSUInteger)numberOfRowsInSection:(NSUInteger)section;
- (editor::ui::OpeningDays)unhandledDays;
- (void)storeCachedData;
- (void)updateOpeningHours;
@end