-
Notifications
You must be signed in to change notification settings - Fork 6
/
MVChatSectionView.h
51 lines (43 loc) · 2.2 KB
/
MVChatSectionView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#import <TwUI/TUIKit.h>
#define kMVChatSectionViewStateOnline 1
#define kMVChatSectionViewStateOffline 2
#define kMVChatSectionViewStateConnecting 3
@class MVBottomBarView,
MVRoundedTextView,
MVTabsView,
MVDiscussionView,
MVChatSectionView,
MVDiscussionMessageItem;
@protocol MVChatSectionViewDelegate
@optional
- (BOOL)chatSectionView:(MVChatSectionView*)chatSectionView
sendString:(NSString*)string;
- (BOOL)chatSectionView:(MVChatSectionView*)chatSectionView
pastePasteboard:(NSPasteboard*)pasteboard;
- (BOOL)chatSectionView:(MVChatSectionView*)chatSectionView
dropPasteboard:(NSPasteboard*)pasteboard;
- (void)chatSectionViewShouldTryReconnection:(MVChatSectionView*)chatSectionView;
- (void)chatSectionViewShouldLoadPreviousItems:(MVChatSectionView*)chatSectionView
discussionView:(MVDiscussionView*)discussionView;
- (void)chatSectionViewShouldLoadNextItems:(MVChatSectionView*)chatSectionView
discussionView:(MVDiscussionView*)discussionView;
- (void)chatSectionViewDiscussionViewDidScroll:(MVChatSectionView*)chatSectionView
discussionView:(MVDiscussionView*)discussionView;
- (void)chatSectionViewTextViewTextDidChange:(MVChatSectionView*)chatSectionView
discussionView:(MVDiscussionView*)discussionView;
- (void)chatSectionView:(MVChatSectionView*)chatSectionView
didClickNotification:(MVDiscussionMessageItem*)discussionItem;
- (void)chatSectionView:(MVChatSectionView*)chatSectionView
shouldRetryFileTransfer:(MVDiscussionMessageItem*)discussionItem;
- (void)chatSectionView:(MVChatSectionView*)chatSectionView
shouldRetrySendingMessage:(MVDiscussionMessageItem*)discussionItem;
@end
@interface MVChatSectionView : TUIView
@property (strong, readonly) MVBottomBarView *bottomBarView;
@property (strong, readonly) MVRoundedTextView *textView;
@property (strong, readonly) MVTabsView *tabsBarView;
@property (strong, readonly) MVDiscussionView *discussionView;
@property (readwrite, nonatomic) int state;
@property (weak, readwrite) NSObject <MVChatSectionViewDelegate> *delegate;
- (void)forwardKeyDownEventToTextView:(NSEvent*)event;
@end