2014-05-06 19:41:08 +02:00
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
#import "Contact.h"
|
|
|
|
#import "PhoneManager.h"
|
|
|
|
#import "PhoneNumber.h"
|
|
|
|
#import "PhoneNumberDirectoryFilterManager.h"
|
|
|
|
|
|
|
|
@interface InCallViewController : UIViewController
|
|
|
|
|
|
|
|
@property (nonatomic, strong) IBOutlet UILabel *nameLabel;
|
|
|
|
@property (nonatomic, strong) IBOutlet UILabel *phoneNumberLabel;
|
|
|
|
@property (nonatomic, strong) IBOutlet UILabel *callStatusLabel;
|
|
|
|
@property (nonatomic, strong) IBOutlet UIImageView *contactImageView;
|
|
|
|
@property (nonatomic, strong) IBOutlet UIImageView *connectingIndicatorImageView;
|
|
|
|
@property (nonatomic, strong) IBOutlet UILabel *authenicationStringLabel;
|
|
|
|
@property (nonatomic, strong) IBOutlet UIView *verticalSpinnerAlignmentView;
|
|
|
|
@property (nonatomic, strong) IBOutlet UIView *callStateImageContainerView;
|
|
|
|
|
|
|
|
@property (nonatomic, strong) IBOutlet UIButton *muteButton;
|
|
|
|
@property (nonatomic, strong) IBOutlet UIButton *speakerButton;
|
|
|
|
|
|
|
|
@property (nonatomic, strong) IBOutlet UIButton *answerButton;
|
|
|
|
@property (nonatomic, strong) IBOutlet UIButton *rejectButton;
|
|
|
|
|
|
|
|
@property (nonatomic, strong) IBOutlet UIButton *endButton;
|
|
|
|
|
|
|
|
@property (nonatomic, readonly) CallState *callState;
|
|
|
|
@property (nonatomic, readonly) Contact *potentiallyKnownContact;
|
|
|
|
|
2014-11-01 23:59:38 +01:00
|
|
|
typedef NS_ENUM(NSInteger, PushAcceptState){
|
|
|
|
PushDidAcceptState,
|
|
|
|
PushDidDeclineState,
|
|
|
|
PushNotSetState
|
|
|
|
};
|
|
|
|
|
|
|
|
@property (nonatomic, readonly) PushAcceptState callPushState;
|
|
|
|
|
2014-05-06 19:41:08 +02:00
|
|
|
+(InCallViewController*) inCallViewControllerWithCallState:(CallState*)callState
|
|
|
|
andOptionallyKnownContact:(Contact*)contact;
|
|
|
|
|
|
|
|
- (IBAction)endCallTapped;
|
|
|
|
- (IBAction)muteButtonTapped;
|
|
|
|
- (IBAction)speakerButtonTapped;
|
|
|
|
|
|
|
|
- (IBAction)answerButtonTapped;
|
|
|
|
- (IBAction)rejectButtonTapped;
|
|
|
|
|
2014-09-15 01:32:19 +02:00
|
|
|
|
2014-05-06 19:41:08 +02:00
|
|
|
@end
|