Update Vector storyboard:

- remove home tab (add public rooms in recents).
- remove contacts tab
- clean settings
This commit is contained in:
giomfo
2015-08-12 09:32:45 +02:00
parent 16e2c58e3e
commit 78d139dea5
21 changed files with 866 additions and 2135 deletions
+41 -1
View File
@@ -17,8 +17,48 @@
#import <MatrixKit/MatrixKit.h>
/**
The data source for Console `RecentsViewController`.
The data source for `RecentsViewController` in Vector
List the recents (interleaved in only one section in case of multi-sessions) and the available public rooms.
A section of public rooms is added for each added REST client.
Two different types of cell data are handled by this data source: id<MXKRecentCellDataStoring> for the recents
and MXPublicRoom* for the public rooms added after the recents list.
See publicRoomsFirstSection property to know which type is expected for cell data at a specific indexPath.
*/
@interface RecentListDataSource : MXKInterleavedRecentsDataSource
/**
The first Public rooms sections (-1 if none).
*/
@property NSInteger publicRoomsFirstSection;
/**
Add a matrix REST Client. It is used to retrieve public rooms.
@param restClient a restClient.
@param onComplete the callback called once public rooms are updated for this client.
*/
- (void)addRestClient:(MXRestClient*)restClient onComplete:(void (^)())onComplete;
/**
Remove a matrix REST Client.
*/
- (void)removeRestClient:(MXRestClient*)restClient;
/**
Refresh public rooms
@param restClient a restClient, or nil to refresh public rooms for all added client.
@param onComplete the callback called once public rooms are updated.
*/
- (void)refreshPublicRooms:(MXRestClient*)restClient onComplete:(void (^)())onComplete;
/**
Get the public room displayed in the cell at the given index path.
@param indexPath the index of the cell
@return a public room or nil if the provided indexPath does not correspond to a public room section.
*/
- (MXPublicRoom*)publicRoomAtIndexPath:(NSIndexPath*)indexPath;
@end