AIMLEngine Class Reference

The class that performs all RebeccaAIML engine operations. More...

#include <AIMLEngine.h>

List of all members.

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.


Detailed Description

The class that performs all RebeccaAIML engine operations.


Constructor & Destructor Documentation

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.


Member Function Documentation

void addBotName const QString &  text  )  [signal]
 

Emit the name of the bot for anyone who is listening and interested.

Parameters:
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.

Parameters:
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.

Parameters:
directoryName the directory to add to the AIML engine.

void addFile const QString &  fileName  )  [slot]
 

Add a AIML file to the AIML engine.

Parameters:
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.

Parameters:
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.

Parameters:
text The text of the user input to the AIML engine.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
Generated on Sat Mar 4 23:32:34 2006 for RebeccaAIML by  doxygen 1.4.5