Handle key backup setup banner display

This commit is contained in:
SBiOSoftWhare
2019-01-31 19:52:32 +01:00
parent c0cf84921e
commit bc527cd097
3 changed files with 247 additions and 9 deletions
@@ -32,6 +32,15 @@ typedef enum : NSUInteger
} RecentsDataSourceMode;
/**
List the different key backup banners that could be displayed.
*/
typedef NS_ENUM(NSInteger, KeyBackupBanner)
{
KeyBackupBannerNone,
KeyBackupBannerSetup,
KeyBackupBannerRecover
};
/**
Action identifier used when the user tapped on the directory change button.
@@ -46,6 +55,7 @@ extern NSString *const kRecentsDataSourceTapOnDirectoryServerChange;
*/
@interface RecentsDataSource : MXKInterleavedRecentsDataSource
@property (nonatomic) NSInteger keyBackupBannerSection;
@property (nonatomic) NSInteger directorySection;
@property (nonatomic) NSInteger invitesSection;
@property (nonatomic) NSInteger favoritesSection;
@@ -61,6 +71,8 @@ extern NSString *const kRecentsDataSourceTapOnDirectoryServerChange;
@property (nonatomic, readonly) NSArray* lowPriorityCellDataArray;
@property (nonatomic, readonly) NSArray* serverNoticeCellDataArray;
@property (nonatomic, readonly) KeyBackupBanner keyBackupBanner;
/**
Set the delegate by specifying the selected display mode.
*/