Groups: self-management of membership of groups

- Add Groups tab

vector-im/riot-meta#114
This commit is contained in:
Giom Foret
2017-12-12 16:03:26 +01:00
parent 6625beb49a
commit 9a25515d14
31 changed files with 2267 additions and 29 deletions
+18 -1
View File
@@ -22,15 +22,18 @@
#import "FavouritesViewController.h"
#import "PeopleViewController.h"
#import "RoomsViewController.h"
#import "GroupsViewController.h"
#import "RoomViewController.h"
#import "ContactDetailsViewController.h"
#import "GroupDetailsViewController.h"
#define TABBAR_HOME_INDEX 0
#define TABBAR_FAVOURITES_INDEX 1
#define TABBAR_PEOPLE_INDEX 2
#define TABBAR_ROOMS_INDEX 3
#define TABBAR_COUNT 4
#define TABBAR_GROUPS_INDEX 4
#define TABBAR_COUNT 5
@interface MasterTabBarController : UITabBarController
@@ -83,6 +86,14 @@
*/
- (void)selectContact:(MXKContact*)contact;
/**
Open a GroupDetailsViewController to display the information of the provided group.
@param group
@param mxSession the matrix session in which the group should be available.
*/
- (void)selectGroup:(MXGroup*)group inMatrixSession:(MXSession*)matrixSession;
/**
Release the current selected item (if any).
*/
@@ -116,6 +127,7 @@
@property (nonatomic, readonly) FavouritesViewController *favouritesViewController;
@property (nonatomic, readonly) PeopleViewController *peopleViewController;
@property (nonatomic, readonly) RoomsViewController *roomsViewController;
@property (nonatomic, readonly) GroupsViewController *groupsViewController;
// References on the currently selected room and its view controller
@property (nonatomic, readonly) RoomViewController *currentRoomViewController;
@@ -128,5 +140,10 @@
@property (nonatomic, readonly) ContactDetailsViewController *currentContactDetailViewController;
@property (nonatomic, readonly) MXKContact *selectedContact;
// References on the currently selected group and its view controller
@property (nonatomic, readonly) GroupDetailsViewController *currentGroupDetailViewController;
@property (nonatomic, readonly) MXGroup *selectedGroup;
@property (nonatomic, readonly) MXSession *selectedGroupSession;
@end