session-ios/Signal/src/view controllers/InCallViewController.h

62 lines
2 KiB
C
Raw Normal View History

2014-05-06 19:41:08 +02:00
#import <UIKit/UIKit.h>
#import "Contact.h"
#import "PhoneManager.h"
#import "PhoneNumber.h"
#import "PhoneNumberDirectoryFilterManager.h"
#define PICK_UP_NOTIFICATION @"RedPhoneCallPickUpNotification"
#define HANG_UP_NOTIFICATION @"RedPhoneCallHangUpNotification"
2014-05-06 19:41:08 +02:00
@interface InCallViewController : UIViewController
@property (nonatomic, strong) IBOutlet UIView *conversationContactView;
2014-05-06 19:41:08 +02:00
@property (nonatomic, strong) IBOutlet UILabel *nameLabel;
@property (nonatomic, strong) IBOutlet UILabel *callStatusLabel;
@property (nonatomic, strong) IBOutlet UIImageView *contactImageView;
@property (nonatomic, strong) IBOutlet UIView *safeWordsView;
2014-05-06 19:41:08 +02:00
@property (nonatomic, strong) IBOutlet UILabel *authenicationStringLabel;
@property (nonatomic, strong) IBOutlet UILabel* explainAuthenticationStringLabel;
2014-05-06 19:41:08 +02:00
@property (nonatomic, strong) IBOutlet UIView *activeOrIncomingButtonsView;
2014-05-06 19:41:08 +02:00
@property (nonatomic, strong) IBOutlet UIButton *muteButton;
@property (nonatomic, strong) IBOutlet UIButton *speakerButton;
@property (nonatomic, strong) IBOutlet UIView *activeCallButtonsView;
@property (nonatomic, strong) IBOutlet UIButton *endButton;
@property (nonatomic, strong) IBOutlet UIView *incomingCallButtonsView;
2014-05-06 19:41:08 +02:00
@property (nonatomic, strong) IBOutlet UIButton *rejectButton;
@property (nonatomic, strong) IBOutlet UIButton *answerButton;
2014-05-06 19:41:08 +02:00
@property (nonatomic, strong) IBOutlet UIImageView *connectingIndicatorImageView;
@property (nonatomic, strong) IBOutlet UIImageView *callStateImageContainerView;
2014-05-06 19:41:08 +02:00
@property (nonatomic, readonly) CallState *callState;
@property (nonatomic, readonly) Contact *potentiallyKnownContact;
typedef NS_ENUM(NSInteger, PushAcceptState){
PushDidAcceptState,
PushDidDeclineState,
PushNotSetState
};
@property (nonatomic, readonly) PushAcceptState callPushState;
-(void)configureWithLatestCall:(CallState*)callState;
2014-05-06 19:41:08 +02:00
- (IBAction)endCallTapped;
- (IBAction)muteButtonTapped;
- (IBAction)speakerButtonTapped;
- (IBAction)answerButtonTapped;
- (IBAction)rejectButtonTapped;
2014-05-06 19:41:08 +02:00
@end