#endif
#include "LString.h"
+
+#include <boost/signals/trackable.hpp>
+
class LyXFunc;
class LyXServer;
This class encapsulates all the dirty communication and thus provides
a clean string interface.
*/
-class LyXComm {
+class LyXComm : public boost::signals::trackable {
public:
/** When we receive a message, we send it to a client.
This is one of the small things that would have been a lot
/// Send message
void send(string const &);
- /// We receive messages via XForms through this callback
- static void callback(int fd, void *v);
+ /// asynch ready-to-be-read notification
+ void read_ready();
private:
/// the filename of the in pipe
int startPipe(string const &, bool);
/// finish a pipe
- void endPipe(int &, string const &);
+ void endPipe(int &, string const &, bool);
/// This is -1 if not open
int infd;