aboutsummaryrefslogtreecommitdiff
path: root/src/gui/conversation.h
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2013-04-06 22:08:23 +0000
committerdos-reis <gdr@axiomatics.org>2013-04-06 22:08:23 +0000
commita4633748286e4701f9430991b27a0ffa4fb49bb6 (patch)
tree9a9be4ec6fd4b16eeb630bd96d613e904dd62cba /src/gui/conversation.h
parentab3959c46b2eb277322d3be9536431d7d9597a73 (diff)
downloadopen-axiom-a4633748286e4701f9430991b27a0ffa4fb49bb6.tar.gz
Diffstat (limited to 'src/gui/conversation.h')
-rw-r--r--src/gui/conversation.h10
1 files changed, 4 insertions, 6 deletions
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 <QEvent>
#include <QResizeEvent>
#include <QPaintEvent>
-#include <QProcess>
+#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;
};