From a4633748286e4701f9430991b27a0ffa4fb49bb6 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sat, 6 Apr 2013 22:08:23 +0000 Subject: --- src/gui/conversation.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/gui/conversation.h') diff --git a/src/gui/conversation.h b/src/gui/conversation.h index 2698c199..01847e6e 100644 --- a/src/gui/conversation.h +++ b/src/gui/conversation.h @@ -40,7 +40,7 @@ #include #include #include -#include +#include "server.h" namespace OpenAxiom { // A conversation is a set of exchanges. An exchange is a question @@ -154,7 +154,7 @@ namespace OpenAxiom { Q_OBJECT; typedef QWidget Base; public: - explicit Conversation(Debate&); + explicit Conversation(Debate&, const Command&); ~Conversation(); // Holds if this conversation just started. @@ -178,7 +178,7 @@ namespace OpenAxiom { QSize sizeHint() const; // Return a pointer to the oracle in this conversation. - QProcess* oracle() { return &proc; } + Server* server() { return &srv; } // Return a pointer to the current exchange, if any. Exchange* exchange() { return cur_ex; } @@ -186,8 +186,6 @@ namespace OpenAxiom { // Return the parent engine widget. Debate* debate() const { return group; } - void submit_query(const QString&); - public slots: // Return the topic following a given topic in this set of conversations Exchange* next(Exchange*); @@ -204,7 +202,7 @@ namespace OpenAxiom { Debate* group; Banner greatings; Children children; - QProcess proc; + Server srv; Exchange* cur_ex; OutputTextArea* cur_out; }; -- cgit v1.2.3