AIMLEngineThread.h

00001 #ifndef QTGUI_AIMLENGINETHREAD_H
00002 #define QTGUI_AIMLENGINETHREAD_H
00003 
00004 /*
00005  * RebeccaAIML, Artificial Intelligence Markup Language 
00006  * C++ api and engine.
00007  *
00008  * Copyright (C) 2005,2006,2007 Frank Hassanabad
00009  *
00010  * This file is part of RebeccaAIML.
00011  *
00012  * RebeccaAIML is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License as published by
00014  * the Free Software Foundation; either version 3 of the License, or
00015  * (at your option) any later version.
00016  *
00017  * RebeccaAIML is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00024  */
00025 
00026 #include <QThread>
00027 #include "QtGuiCallBacks.h"
00028 
00029 #include <rebecca/all.h>
00030 
00031 /*
00032  * Forward declerations
00033  */
00034 class QTextEdit;
00035 
00036 namespace qtgui
00037 {
00038 using namespace rebecca;
00039 
00045 class AIMLEngineThread : public QThread
00046 {
00047     Q_OBJECT
00048 
00049     public:
00050         
00055         void run();
00056         
00057     signals:
00058 
00066         void addText(const QString &text);
00067 
00076         void addBotText(const QString &text);
00077 
00085         void addBotName(const QString &text);
00086 
00094         void userInput(const QString &text);
00095 
00100         void clearAIML();
00101 
00102 
00111         void addFile(const QString &fileName);
00112 
00113 
00123         void addDirectory(const QString &directoryName);
00124         
00129         void loading();
00130 
00135         void doneLoading();
00136 };
00137 
00138 } //end of qtgui namespace 
00139 #endif
00140 
00141 
00142 

Generated on Mon Aug 27 12:26:58 2007 for RebeccaAIML by  doxygen 1.5.3