UX Rework: Add home page

- Add edition mode support.

https://github.com/vector-im/riot-meta/issues/75
This commit is contained in:
Giom Foret
2017-07-09 18:32:40 +02:00
parent 6660766f24
commit 0e56595864
9 changed files with 535 additions and 46 deletions
@@ -20,6 +20,11 @@
@interface RecentsViewController : MXKRecentListViewController <MXKRecentListViewControllerDelegate>
{
@protected
/**
The room identifier related to the cell which is in editing mode (if any).
*/
NSString *editedRoomId;
/**
The image view of the (+) button.
*/
@@ -106,6 +111,12 @@
*/
- (void)refreshCurrentSelectedCell:(BOOL)forceVisible;
/**
Leave the edition mode
@param forceRefresh force table view refresh
*/
- (void)cancelEditionMode:(BOOL)forceRefresh;
#pragma mark - Room handling
/**
@@ -129,6 +140,33 @@
*/
- (void)joinARoom;
/**
Leave the selected room.
*/
- (void)leaveEditedRoom;
/**
Update the selected room tag.
*/
- (void)updateEditedRoomTag:(NSString*)tag;
/**
Enable/disable the direct flag of the selected room.
*/
- (void)makeDirectEditedRoom:(BOOL)isDirect;
/**
Enable/disable the notifications for the selected room.
*/
- (void)muteEditedRoomNotifications:(BOOL)mute;
#pragma mark - Scrolling
/**
Scroll to the top of the recents list.
*/
- (void)scrollToTop:(BOOL)animated;
/**
Scroll the next room with missed notifications to the top.