2014-10-29 21:58:58 +01:00
|
|
|
//
|
|
|
|
// MessagesViewController.h
|
|
|
|
// Signal
|
|
|
|
//
|
|
|
|
// Created by Dylan Bourgeois on 28/10/14.
|
|
|
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2015-12-22 12:45:09 +01:00
|
|
|
#import <AVFoundation/AVFoundation.h>
|
2015-01-14 22:30:01 +01:00
|
|
|
#import <MediaPlayer/MediaPlayer.h>
|
|
|
|
#import "APNavigationController.h"
|
2015-12-22 12:45:09 +01:00
|
|
|
#import "JSQMessages.h"
|
|
|
|
#import "JSQMessagesViewController.h"
|
|
|
|
#import "TSGroupModel.h"
|
2014-11-21 14:38:37 +01:00
|
|
|
@class TSThread;
|
2014-10-29 21:58:58 +01:00
|
|
|
|
2015-12-22 12:45:09 +01:00
|
|
|
@interface MessagesViewController : JSQMessagesViewController <UIImagePickerControllerDelegate,
|
|
|
|
UINavigationControllerDelegate,
|
|
|
|
UITextViewDelegate,
|
|
|
|
AVAudioRecorderDelegate,
|
|
|
|
AVAudioPlayerDelegate,
|
|
|
|
UIGestureRecognizerDelegate>
|
2014-10-29 21:58:58 +01:00
|
|
|
|
2015-01-14 22:30:01 +01:00
|
|
|
|
|
|
|
@property (nonatomic, retain) APNavigationController *navController;
|
|
|
|
|
2015-12-22 12:45:09 +01:00
|
|
|
@property (nonatomic, strong) MPMoviePlayerController *videoPlayer;
|
|
|
|
@property (nonatomic, strong) AVAudioPlayer *audioPlayer;
|
|
|
|
@property (nonatomic, strong) AVAudioRecorder *audioRecorder;
|
2015-05-23 15:54:50 +02:00
|
|
|
|
2015-12-22 12:45:09 +01:00
|
|
|
- (void)setupWithThread:(TSThread *)thread;
|
|
|
|
- (void)setupWithTSIdentifier:(NSString *)identifier;
|
|
|
|
- (void)setupWithTSGroup:(TSGroupModel *)model;
|
2014-12-17 06:44:36 +01:00
|
|
|
|
2015-10-31 16:53:32 +01:00
|
|
|
- (void)peekSetup;
|
|
|
|
- (void)popped;
|
|
|
|
|
2015-04-14 21:49:00 +02:00
|
|
|
- (void)setComposeOnOpen:(BOOL)compose;
|
|
|
|
|
2015-12-22 12:45:09 +01:00
|
|
|
- (TSThread *)thread;
|
2015-05-23 15:54:50 +02:00
|
|
|
- (void)popKeyBoard;
|
|
|
|
|
2014-10-29 21:58:58 +01:00
|
|
|
@end
|