]> cgit.babelmonkeys.de Git - jubjub.git/blob - src/gui/cli/JubCLIUI.h
222fc27471b62468d7baa2be8433fb5b4a086fe5
[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 }
19 @property (readonly) JubChatClient *client;
20 @property (readonly) XMPPContact *lastIn;
21 @property (retain) JubCLIChatUI *sink;
22
23 - (BOOL)Jub_userInputWithStream: (OFStream*)stream
24                            line: (OFString*)line
25                       exception: (OFException*)exception;
26 - (void)addCommand: (id<JubCLICommand>)command;
27 @end