Files
bundesmessenger-ios/Vector/ViewController/HomePeopleSearchViewController.h
T
giomfo f83485d319 Prepare #904: Improve the people invite screens
- Rename `ContactPickerViewController` with `HomePeopleSearchViewController`.
- Define a basic view controller class `ContactsTableViewController` to display/filter a contacts list.
- Make `StartChatViewController` inherit of this new class `ContactsTableViewController` to handle contact invite.
2017-01-10 17:56:30 +01:00

70 lines
2.1 KiB
Objective-C

/*
Copyright 2016 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 <MatrixKit/MatrixKit.h>
@class HomePeopleSearchViewController;
/**
`HomePeopleSearchViewController` delegate.
*/
@protocol HomePeopleSearchViewControllerDelegate <NSObject>
/**
Tells the delegate that the user selected a contact.
@param homePeopleSearchViewController the `HomePeopleSearchViewController` instance.
@param contact the selected contact.
*/
- (void)homePeopleSearchViewController:(HomePeopleSearchViewController *)homePeopleSearchViewController didSelectContact:(MXKContact*)contact;
@end
/**
`HomePeopleSearchViewController` displays people search in user's rooms under a `HomeViewController` segment.
*/
@interface HomePeopleSearchViewController : MXKViewController <UITableViewDelegate, UITableViewDataSource>
@property (nonatomic) IBOutlet UITableView *contactsTableView;
@property (weak, nonatomic) IBOutlet UILabel *noResultsLabel;
/**
The delegate for the view controller.
*/
@property (nonatomic) id<HomePeopleSearchViewControllerDelegate> delegate;
/**
Returns the `UINib` object initialized for a `HomePeopleSearchViewController`.
@return The initialized `UINib` object or `nil` if there were errors during initialization
or the nib file could not be located.
*/
+ (UINib *)nib;
/**
Creates and returns a new `HomePeopleSearchViewController` object.
@discussion This is the designated initializer for programmatic instantiation.
@return An initialized `HomePeopleSearchViewController` object if successful, `nil` otherwise.
*/
+ (instancetype)homePeopleSearchViewController;
/**
*/
- (void)searchWithPattern:(NSString *)searchText;
@end