]> cgit.babelmonkeys.de Git - jubjub.git/blob - src/gui/cli/JubCLIUI.h
Move away from BOOL
[jubjub.git] / src / gui / cli / JubCLIUI.h
1 #import <ObjFW/ObjFW.h>
2 #import <ObjXMPP/ObjXMPP.h>
3
4 #import "JubUI.h"
5 #import "linenoise.h"
6
7 @class JubCLIChatUI;
8 @class JubChatClient;
9 @protocol JubCLICommand;
10
11 @interface JubCLIUI: OFObject <JubUI, XMPPContactManagerDelegate>
12 {
13         XMPPContact *_lastIn;
14         JubCLIChatUI *_sink;
15         JubChatClient *_client;
16         XMPPContactManager *_contactManager;
17         OFMutableDictionary *_commands;
18         OFMutableSet *_subRequests;
19 }
20 @property (readonly) JubChatClient *client;
21 @property (readonly) XMPPContact *lastIn;
22 @property (retain) JubCLIChatUI *sink;
23 @property (readonly) OFMutableSet *subRequests;
24
25 - (bool)Jub_userInputWithStream: (OFStream*)stream
26                            line: (OFString*)line
27                       exception: (OFException*)exception;
28 - (void)addCommand: (id<JubCLICommand>)command;
29 @end