2014-12-15 15:54:31 +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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
@class MXRoom;
|
|
|
|
|
2014-12-22 14:45:43 +00:00
|
|
|
@interface RoomTitleView : UIView<UIGestureRecognizerDelegate> {
|
2014-12-15 15:54:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@property (weak, nonatomic) IBOutlet UITextField *displayNameTextField;
|
|
|
|
@property (weak, nonatomic) IBOutlet UITextField *topicTextField;
|
|
|
|
|
|
|
|
@property (strong, nonatomic) MXRoom *mxRoom;
|
|
|
|
@property (nonatomic) BOOL editable;
|
|
|
|
@property (nonatomic) BOOL hiddenTopic;
|
2015-01-28 17:39:23 +00:00
|
|
|
@property (nonatomic) BOOL isEditing;
|
2014-12-15 15:54:31 +00:00
|
|
|
|
|
|
|
- (void)dismissKeyboard;
|
|
|
|
|
2014-12-24 15:32:24 +00:00
|
|
|
// force to refresh the title display
|
|
|
|
- (void)refreshDisplay;
|
|
|
|
|
2014-12-19 10:45:30 +00:00
|
|
|
// return YES if the animation has been stopped
|
|
|
|
- (BOOL)stopTopicAnimation;
|
2014-12-19 07:03:39 +00:00
|
|
|
|
2014-12-15 15:54:31 +00:00
|
|
|
@end
|