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 Frank Hassanabad
00009  *
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Lesser General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2.1 of the License, or (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Lesser General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Lesser General Public
00021  * License along with this library; if not, write to the Free Software
00022  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00023  */
00024 
00025 #include <QThread>
00026 #include "QtGuiCallBacks.h"
00027 
00028 #include <rebecca/all.h>
00029 
00030 /*
00031  * Forward declerations
00032  */
00033 class QTextEdit;
00034 
00035 namespace qtgui
00036 {
00037 using namespace rebecca;
00038 
00044 class AIMLEngineThread : public QThread
00045 {
00046     Q_OBJECT
00047 
00048     public:
00049         
00054         void run();
00055         
00056     signals:
00057 
00065         void addText(const QString &text);
00066 
00075         void addBotText(const QString &text);
00076 
00084         void addBotName(const QString &text);
00085 
00093         void userInput(const QString &text);
00094 
00099         void clearAIML();
00100 
00101 
00110         void addFile(const QString &fileName);
00111 
00112 
00122         void addDirectory(const QString &directoryName);
00123         
00128         void loading();
00129 
00134         void doneLoading();
00135 };
00136 
00137 } //end of qtgui namespace 
00138 #endif
00139 
00140 
00141 

Generated on Mon Apr 10 00:40:01 2006 for RebeccaAIML by  doxygen 1.4.5