123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- //
- // JXChatViewController.h
- //
- // Created by Reese on 13-8-11.
- // Copyright (c) 2013年 Reese. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- #import <CoreData/CoreData.h>
- #import <AVFoundation/AVFoundation.h>
- #import "JXTableViewController.h"
- #import "JXTableMsgChatVC.h"
- #import "JXLocationVC.h"
- #import "SimpleAudioPlayer.h"
-
- @class JXEmoji;
- @class JXSelectImageView;
- @class JXVolumeView;
- @class JXRoomObject;
- @class JXBaseChatCell;
- @class JXVideoPlayer;
- typedef void(^PerBlockBtn)(memberData *personData);
- @interface JXChatViewController : JXTableMsgChatVC<UIImagePickerControllerDelegate,UITextViewDelegate,AVAudioPlayerDelegate,UIImagePickerControllerDelegate,AVAudioRecorderDelegate,UINavigationControllerDelegate,LXActionSheetDelegate>
- {
-
- NSMutableArray *_pool;
- UITextView *_messageText;
- // UIImageView *inputBar;
- UIButton* _recordBtn;
- UIButton* _recordBtnLeft;
- UIImage *_myHeadImage,*_userHeadImage;
- JXSelectImageView *_moreView;
- UIButton* _btnFace;
- emojiViewController* _faceView;
- JXEmoji* _messageConent;
- BOOL recording;
- NSTimer *peakTimer;
-
- AVAudioRecorder *audioRecorder;
- AVAudioPlayer *audioPlayer;
- NSURL *pathURL;
- UIView* talkView;
- NSString* _lastRecordFile;
- NSString* _lastPlayerFile;
- NSTimeInterval _lastPlayerTime;
- long _lastIndex;
- double lowPassResults;
- NSTimeInterval _timeLen;
- int _refreshCount;
-
- JXVolumeView* _voice;
- NSTimeInterval _disableSay;
- NSString * _audioMeetingNo;
- NSString * _videoMeetingNo;
- NSMutableArray * _orderRedPacketArray ;
- }
- - (IBAction)sendIt:(id)sender;
- - (IBAction)shareMore:(id)sender;
- //- (void)refresh;
- //- (void)createPerson:(^PerBlockBtn)(memberData *personData);
- -(void)createPerson:(memberData *)url success:(void(^)(memberData *responseObject))success;
- @property (nonatomic,strong) AVPlayer *palyer;
- @property (nonatomic,weak) UIImageView *inputBar;
- @property (nonatomic,copy) NSString *backUserId;
- @property (nonatomic,strong) memberData *memberDataXX;
- @property (nonatomic,strong) NSArray *groupLevelNameArray;// 群头衔数组
- @property (nonatomic,strong) JXRoomObject* chatRoom;
- @property (nonatomic,strong) roomData * room;
- @property (nonatomic,strong) NSMutableArray * soundSendArray;
- @property (nonatomic,strong) NSDictionary * lotterDict;
- @property (nonatomic,strong) NSMutableArray * oneAtttenPersonArr;
- @property (nonatomic,assign) NSInteger selectIndexAaaa;
- @property (nonatomic,strong) JXUserObject *chatPerson;//必须要赋值
- @property (nonatomic, strong) JXMessageObject *lastMsg;
- @property (nonatomic,strong) NSString* roomJid;//相当于RoomJid
- @property (nonatomic,strong) NSString* fromUserID;//相当于RoomJid
- @property (nonatomic,assign) int tempChat;//相当于RoomJid
- @property (nonatomic,assign) int biaotishifoBC;//相当于RoomJid
- @property (nonatomic,assign) BOOL isAttritionRecall;
- @property (nonatomic,assign) BOOL isOpenIntegral;
- @property (nonatomic,strong) NSString* gongzonghaoID;
- @property (nonatomic,assign) int isShowRedPackage;
- @property (nonatomic,assign) int intAAA;
- @property (nonatomic,strong) NSString* roomId;
- @property (nonatomic,strong) JXBaseChatCell* selCell;
- @property (nonatomic,strong) JXLocationVC * locationVC;
- @property (nonatomic, strong) NSMutableArray *array;
- //@property (nonatomic, strong) JXMessageObject *relayMsg;
- @property (nonatomic, strong) NSMutableArray *relayMsgArray;
- @property (nonatomic, assign) int scrollLine;
- @property (nonatomic, strong) NSMutableArray *courseArray;
- @property (nonatomic, copy) NSString *courseId;
- @property (nonatomic, strong) NSNumber *groupStatus;
- @property (nonatomic, copy) NSString *recordFromUserName;
- @property (nonatomic, copy) NSString *recordFromUseId;
- @property (nonatomic, assign) BOOL isCYMSGgroupANDFriendy;
- @property (nonatomic, strong) NSMutableArray *userNamesWithGroup;
- @property (nonatomic, strong) NSMutableArray *userNmaesWithFriend;
- @property (nonatomic, assign) BOOL isGroupMessages;
- @property (nonatomic, strong) NSMutableArray *userIds;
- @property (nonatomic, strong) NSMutableArray *userNames;
- @property (nonatomic, assign) BOOL isHiddenFooter;
- @property (nonatomic, strong) NSMutableArray *chatLogArray;
- @property (nonatomic, assign) NSInteger rowIndex;
- @property (nonatomic, assign) int newMsgCount;
- @property (nonatomic, strong) JXVideoPlayer *player;
- @property (nonatomic, strong) UIView *playerView;
- @property (nonatomic, assign) BOOL isShare;
- @property (nonatomic, copy) NSString *shareSchemes;
- @property (nonatomic, copy) NSString *pushType;
- @property (nonatomic, assign) int useInfoTempChat;
- @property (nonatomic, assign) int iscpGourp;
- @property (nonatomic, assign) int lotterInt;
- @property (nonatomic, assign) int enterFirst;
- @property (nonatomic, copy) NSString *customerPush;
- -(void)sendRedPacket:(NSDictionary*)redPacketDict withGreet:(NSString *)greet;
- //-(void)onPlay;
- //-(void)recordPlay:(long)index;
- -(void)resend:(JXMessageObject*)p;
- -(void)deleteMsg:(JXMessageObject*)p;
- -(void)showOneMsg:(JXMessageObject*)msg;
- -(void)showBack:(memberData*)msguser;
- @end
- /**
-
- BOOL isOpen = [g_default boolForKey:kgoucaiComePush];
-
- BOOL isOpen2 = [g_default boolForKey:kGuanXinComePush];
-
- if (isOpen==1 && isOpen2==1) {
- _noticeView2.hidden = YES;
- _noticeViewScrollView.hidden = YES;
-
- }else if (isOpen==1 && isOpen2==0) {
-
- // _table.contentInset = UIEdgeInsetsMake(38, 0, 0, 0);
- _noticeViewScrollView.hidden = NO;
- _noticeViewScrollView.frame=CGRectMake(0, JX_SCREEN_TOP+(JX_SCREEN_HEIGHT>=812?-6:18), JX_SCREEN_WIDTH, 37);
- _noticeView2.hidden = YES;_table.contentInset = UIEdgeInsetsMake(36, 0, 0, 0);
- }else if (isOpen==0 && isOpen2==1){
- if ( _biaotishifoBC==1111) {
- _table.contentInset = UIEdgeInsetsMake(36, 0, 0, 0);
- // self.showTopView.xiaLineView.hidden=NO;
- _noticeView2.hidden = NO;
- self.showTopView.xiaLineView.hidden=NO;
- }else{
- _noticeView2.hidden = YES;
- }
-
- _noticeViewScrollView.hidden = YES;
- }else if (isOpen==0 && isOpen2==0) {
- _noticeViewScrollView.hidden = NO;
- self.showTopView.xiaLineView.hidden=YES;
- _noticeView2.hidden = NO;
- _noticeViewScrollView.frame=CGRectMake(0, JX_SCREEN_TOP+(JX_SCREEN_HEIGHT>=812?-6:18), JX_SCREEN_WIDTH, 37);
- _table.contentInset = UIEdgeInsetsMake(73, 0, 0, 0);
- }
-
- */
|