HomeVC: Moved code (opening room and maintaining the current one) from RecentsVC to HomeVC - Part 1

This commit is contained in:
manuroe
2015-12-09 14:39:37 +01:00
parent b009ca8110
commit ef63d90f93
5 changed files with 301 additions and 178 deletions
+16 -2
View File
@@ -14,16 +14,30 @@
limitations under the License.
*/
#import <MatrixKit/MatrixKit.h>
#import "SegmentedViewController.h"
@interface HomeViewController : SegmentedViewController <UISearchBarDelegate, UIGestureRecognizerDelegate>
@interface HomeViewController : SegmentedViewController <MXKRecentListViewControllerDelegate, UISearchBarDelegate, UIGestureRecognizerDelegate>
@property (weak, nonatomic) IBOutlet UIBarButtonItem *settingsBarButtonItem;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *searchBarButtonIem;
- (void)displayWithSession:(MXSession*)session;
/**
Open the room with the provided identifier in a specific matrix session.
@param roomId the room identifier.
@param mxSession the matrix session in which the room should be available.
*/
- (void)selectRoomWithId:(NSString*)roomId inMatrixSession:(MXSession*)mxSession;
/**
Close the current selected room (if any)
*/
- (void)closeSelectedRoom;
/**
Action registered on `UIControlEventTouchUpInside` event for both buttons.
*/