1 #import <ObjFW/ObjFW.h>
2 #import <ObjXMPP/ObjXMPP.h>
9 @protocol JubCLICommand;
11 @interface JubCLIUI: OFObject <JubUI, XMPPContactManagerDelegate>
15 JubChatClient *_client;
16 XMPPContactManager *_contactManager;
17 OFMutableDictionary *_commands;
18 OFMutableSet *_subRequests;
20 @property (readonly) JubChatClient *client;
21 @property (readonly) XMPPContact *lastIn;
22 @property (retain) JubCLIChatUI *sink;
23 @property (readonly) OFMutableSet *subRequests;
25 - (bool)Jub_userInputWithStream: (OFStream*)stream
27 exception: (OFException*)exception;
28 - (void)addCommand: (id<JubCLICommand>)command;