element-ios/matrixConsole/View/RoomMessageTableCell.h
giomfo 8072956eed SYIOS-30 - iOS needs typing notifs like the web client
We highlight here the avatar of the user who's typing
2015-01-13 18:32:52 +01:00

58 lines
2.1 KiB
Objective-C

/*
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>
#import "CustomImageView.h"
#import "RoomMessage.h"
#import "PieChartView.h"
// Room Message Table View Cell
@interface RoomMessageTableCell : UITableViewCell
@property (strong, nonatomic) IBOutlet CustomImageView *pictureView;
@property (weak, nonatomic) IBOutlet UITextView *messageTextView;
@property (strong, nonatomic) IBOutlet CustomImageView *attachmentView;
@property (strong, nonatomic) IBOutlet UIImageView *playIconView;
@property (weak, nonatomic) IBOutlet UIView *dateTimeLabelContainer;
@property (weak, nonatomic) IBOutlet UIView *progressView;
@property (weak, nonatomic) IBOutlet UILabel *statsLabel;
@property (weak, nonatomic) IBOutlet PieChartView *progressChartView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *msgTextViewTopConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *attachViewWidthConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *attachViewTopConstraint;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *dateTimeLabelContainerTopConstraint;
// reference to the linked message
@property (strong, nonatomic) RoomMessage *message;
- (void)startProgressUI;
- (void)stopProgressUI;
- (void)cancelDownload;
@end
@interface IncomingMessageTableCell : RoomMessageTableCell
@property (weak, nonatomic) IBOutlet UIImageView *typingBadge;
@property (weak, nonatomic) IBOutlet UILabel *userNameLabel;
@end
@interface OutgoingMessageTableCell : RoomMessageTableCell
-(void)startUploadAnimating;
-(void)stopAnimating;
@end