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