2014-10-02 15:02:47 +00:00
|
|
|
/*
|
|
|
|
Copyright 2014 OpenMarket Ltd
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2015-03-31 13:09:17 +00:00
|
|
|
#import <MatrixKit/MatrixKit.h>
|
2014-10-02 15:02:47 +00:00
|
|
|
|
2016-02-10 09:59:48 +00:00
|
|
|
#import "RoomTitleView.h"
|
|
|
|
|
2016-04-14 00:34:30 +00:00
|
|
|
#import "RoomEmailInvitation.h"
|
|
|
|
|
2015-12-30 14:15:08 +00:00
|
|
|
#import "UIViewController+VectorSearch.h"
|
|
|
|
|
2016-02-10 09:59:48 +00:00
|
|
|
@interface RoomViewController : MXKRoomViewController <UISearchBarDelegate, UIGestureRecognizerDelegate, RoomTitleViewTapGestureDelegate>
|
|
|
|
|
|
|
|
// The expanded header
|
|
|
|
@property (weak, nonatomic) IBOutlet UIView *expandedHeaderContainer;
|
|
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *expandedHeaderContainerHeightConstraint;
|
|
|
|
|
2016-04-14 00:34:30 +00:00
|
|
|
// The preview header
|
|
|
|
@property (weak, nonatomic) IBOutlet UIView *previewHeaderContainer;
|
|
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *previewHeaderContainerHeightConstraint;
|
|
|
|
|
2016-02-10 09:59:48 +00:00
|
|
|
/**
|
2016-04-14 00:34:30 +00:00
|
|
|
Show/Hide the expanded header.
|
2016-02-10 09:59:48 +00:00
|
|
|
By default this header is hidden on new instantiated RoomViewController object.
|
|
|
|
*/
|
2016-04-14 00:34:30 +00:00
|
|
|
- (void)showExpandedHeader:(BOOL)isVisible;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Display an invitation preview.
|
|
|
|
|
|
|
|
@param emailInvitation the invitation received by email.
|
|
|
|
*/
|
|
|
|
- (void)displayEmailInvitation:(RoomEmailInvitation*)emailInvitation;
|
2015-01-30 17:47:43 +00:00
|
|
|
|
2014-10-02 15:02:47 +00:00
|
|
|
@end
|
|
|
|
|