#include <AIMLEngine.h>
Public Slots | |
void | addDirectory (const QString &directoryName) |
Add a AIML directory filled with AIML files all ending in the extension ".AIML" to the AIML engine. | |
void | addFile (const QString &fileName) |
Add a AIML file to the AIML engine. | |
void | clearAIML () |
Deletes the AIML engine. | |
void | userInput (const QString &text) |
This accepts all user input to the AIML engine. | |
Signals | |
void | addBotName (const QString &text) |
Emit the name of the bot for anyone who is listening and interested. | |
void | addBotText (const QString &text) |
Emit to anyone listening that we have text from the bot for them to add. | |
void | addText (const QString &text) |
Emit to anyone listening that we have text for them to add. | |
void | doneLoading () |
Emit that a AIML set of files is done loading. | |
void | loading () |
Emit that a AIML set of files is loading. | |
Public Member Functions | |
AIMLEngine () | |
Default constructor. | |
void | initAIML () |
Initalize the AIML engine. | |
Private Attributes | |
AimlFacade * | m_aiml |
This is responsible for memory management of the AIMLEngine GraphBuilder. | |
QtGuiCallBacks | m_callback |
This is for the call backs on the AIML engine. |
AIMLEngine | ( | ) | [inline] |
Default constructor.
Initalizes the AIML engine pointer to zero and hooks up the QtGuiCallBacks::addText() signal to this classes signal, AIMLEngine::addText(). Now when the QtGuiCallBacks emits a QtGuiCallBacks::addText(), this class will also.
void addBotName | ( | const QString & | text | ) | [signal] |
Emit the name of the bot for anyone who is listening and interested.
text | The text of the bot name |
void addBotText | ( | const QString & | text | ) | [signal] |
Emit to anyone listening that we have text from the bot for them to add.
text | The text from the bot for anyone listening to add |
void addDirectory | ( | const QString & | directoryName | ) | [slot] |
Add a AIML directory filled with AIML files all ending in the extension ".AIML" to the AIML engine.
directoryName | the directory to add to the AIML engine. |
void addFile | ( | const QString & | fileName | ) | [slot] |
Add a AIML file to the AIML engine.
fileName | the file to add to the AIML engine. |
void addText | ( | const QString & | text | ) | [signal] |
Emit to anyone listening that we have text for them to add.
text | The text for anyone listening to add |
void clearAIML | ( | ) | [slot] |
Deletes the AIML engine.
void doneLoading | ( | ) | [signal] |
Emit that a AIML set of files is done loading.
void initAIML | ( | ) |
Initalize the AIML engine.
void loading | ( | ) | [signal] |
Emit that a AIML set of files is loading.
void userInput | ( | const QString & | text | ) | [slot] |
This accepts all user input to the AIML engine.
text | The text of the user input to the AIML engine. |
AimlFacade* m_aiml [private] |
This is responsible for memory management of the AIMLEngine GraphBuilder.
QtGuiCallBacks m_callback [private] |
This is for the call backs on the AIML engine.
It is used to ultimately update the gui.