mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Refactor sections as enum types
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
@protocol RecentsListServiceProtocol;
|
||||
@class DiscussionsCount;
|
||||
@class MXSpace;
|
||||
@class RecentsDataSourceSections;
|
||||
|
||||
/**
|
||||
List the different modes used to prepare the recents data source.
|
||||
@@ -67,16 +68,10 @@ extern NSString *const kRecentsDataSourceTapOnDirectoryServerChange;
|
||||
*/
|
||||
@interface RecentsDataSource : MXKInterleavedRecentsDataSource
|
||||
|
||||
@property (nonatomic) NSInteger crossSigningBannerSection;
|
||||
@property (nonatomic) NSInteger secureBackupBannerSection;
|
||||
@property (nonatomic) NSInteger directorySection;
|
||||
@property (nonatomic) NSInteger invitesSection;
|
||||
@property (nonatomic) NSInteger favoritesSection;
|
||||
@property (nonatomic) NSInteger peopleSection;
|
||||
@property (nonatomic) NSInteger conversationSection;
|
||||
@property (nonatomic) NSInteger lowPrioritySection;
|
||||
@property (nonatomic) NSInteger serverNoticeSection;
|
||||
@property (nonatomic) NSInteger suggestedRoomsSection;
|
||||
/**
|
||||
A set of sections visible in the current table view and associated with their semantic meaning (e.g. "favorites" = 2)
|
||||
*/
|
||||
@property (nonatomic, strong, readonly) RecentsDataSourceSections *sections;
|
||||
|
||||
@property (nonatomic, readonly) NSInteger totalVisibleItemCount;
|
||||
|
||||
@@ -127,6 +122,11 @@ extern NSString *const kRecentsDataSourceTapOnDirectoryServerChange;
|
||||
*/
|
||||
@property (nonatomic) PublicRoomsDirectoryDataSource *publicRoomsDirectoryDataSource;
|
||||
|
||||
/**
|
||||
Make a new sections object that reflects the latest state of the data sources
|
||||
*/
|
||||
- (RecentsDataSourceSections *)makeDataSourceSections;
|
||||
|
||||
/**
|
||||
Refresh the recents data source and notify its delegate.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user