#include <vxml.h>
Definition at line 44 of file vxml.h.
Public Member Functions | |
| vxmlParser () | |
| virtual | ~vxmlParser () |
| void | beginVxmlSession (rtp *r, QString cName) |
| void | endVxmlSession () |
Private Member Functions | |
| void | runVxmlSession () |
| void | vxmlThreadWorker () |
| bool | loadVxmlPage (QString Url, QString Method, QString Namelist, QDomDocument &script) |
| void | Parse (QDomDocument &vxmlPage) |
| void | parseForm (QDomElement &formElm) |
| bool | parseField (QDomElement &field) |
| void | parseFieldType (QString Type, uint &Max, uint &Min) |
| void | parseRecord (QDomElement &record) |
| void | parseFilled (QDomElement &filled, bool &reprompt) |
| void | parseNoInput (QDomElement &noInput, bool &reprompt) |
| void | parseIfExpression (QDomElement &ifExp, bool &reprompt) |
| bool | parseIfBlock (QDomElement &ifBlock, QString Condition, bool &reprompt) |
| void | parsePrompt (QDomElement &parentElm, bool dtmfInterrupts) |
| int | parseDurationType (QString t) |
| void | PlayWav (QString wavFile) |
| void | PlayWav (short *buffer, int Samples) |
| void | SaveWav (short *buffer, int Samples) |
| void | PlayBeep (int freqHz=1000, int volume=7000, int ms=800) |
| void | PlaySilence (int ms, bool dtmfInterrupts) |
| void | PlayTTSPrompt (QString prompt, bool dtmfInterrupts) |
| int | RecordAudio (short *buffer, int Samples, bool dtmfInterrupts) |
| void | waitUntilFinished (bool dtmfInterrupts) |
| bool | evaluateExpression (QString Expression) |
Static Private Member Functions | |
| static void * | vxmlThread (void *p) |
Private Attributes | |
| bool | killVxmlThread |
| bool | killVxmlSession |
| bool | killVxmlPage |
| QString | callerName |
| QString | vxmlUrl |
| QString | httpMethod |
| QString | postNamelist |
| pthread_t | vxmlthread |
| QWaitCondition * | waker |
| QDomDocument | vxmlDoc |
| vxmlVarContainer * | vxmlVarList |
| QUrl | lastUrl |
| rtp * | Rtp |
| void vxmlParser::beginVxmlSession | ( | rtp * | r, | |
| QString | cName | |||
| ) |
| void vxmlParser::endVxmlSession | ( | ) |
| void * vxmlParser::vxmlThread | ( | void * | p | ) | [static, private] |
| void vxmlParser::runVxmlSession | ( | ) | [private] |
| void vxmlParser::vxmlThreadWorker | ( | ) | [private] |
| bool vxmlParser::loadVxmlPage | ( | QString | Url, | |
| QString | Method, | |||
| QString | Namelist, | |||
| QDomDocument & | script | |||
| ) | [private] |
| void vxmlParser::Parse | ( | QDomDocument & | vxmlPage | ) | [private] |
| void vxmlParser::parseForm | ( | QDomElement & | formElm | ) | [private] |
| bool vxmlParser::parseField | ( | QDomElement & | field | ) | [private] |
| void vxmlParser::parseRecord | ( | QDomElement & | record | ) | [private] |
| void vxmlParser::parseFilled | ( | QDomElement & | filled, | |
| bool & | reprompt | |||
| ) | [private] |
| void vxmlParser::parseNoInput | ( | QDomElement & | noInput, | |
| bool & | reprompt | |||
| ) | [private] |
| void vxmlParser::parseIfExpression | ( | QDomElement & | ifExp, | |
| bool & | reprompt | |||
| ) | [private] |
| void vxmlParser::parsePrompt | ( | QDomElement & | parentElm, | |
| bool | dtmfInterrupts | |||
| ) | [private] |
Definition at line 416 of file vxml.cpp.
Referenced by Parse(), parseField(), parseFilled(), parseIfBlock(), and parseRecord().
| int vxmlParser::parseDurationType | ( | QString | t | ) | [private] |
| void vxmlParser::PlayWav | ( | QString | wavFile | ) | [private] |
| void vxmlParser::PlayWav | ( | short * | buffer, | |
| int | Samples | |||
| ) | [private] |
| void vxmlParser::SaveWav | ( | short * | buffer, | |
| int | Samples | |||
| ) | [private] |
| void vxmlParser::PlayBeep | ( | int | freqHz = 1000, |
|
| int | volume = 7000, |
|||
| int | ms = 800 | |||
| ) | [private] |
| void vxmlParser::PlaySilence | ( | int | ms, | |
| bool | dtmfInterrupts | |||
| ) | [private] |
| void vxmlParser::PlayTTSPrompt | ( | QString | prompt, | |
| bool | dtmfInterrupts | |||
| ) | [private] |
Definition at line 844 of file vxml.cpp.
Referenced by parseIfBlock(), parseNoInput(), and parsePrompt().
| int vxmlParser::RecordAudio | ( | short * | buffer, | |
| int | Samples, | |||
| bool | dtmfInterrupts | |||
| ) | [private] |
| void vxmlParser::waitUntilFinished | ( | bool | dtmfInterrupts | ) | [private] |
Definition at line 879 of file vxml.cpp.
Referenced by PlayBeep(), PlaySilence(), PlayTTSPrompt(), PlayWav(), and RecordAudio().
| bool vxmlParser::evaluateExpression | ( | QString | Expression | ) | [private] |
bool vxmlParser::killVxmlThread [private] |
Definition at line 57 of file vxml.h.
Referenced by beginVxmlSession(), vxmlParser(), vxmlThreadWorker(), and ~vxmlParser().
bool vxmlParser::killVxmlSession [private] |
Definition at line 58 of file vxml.h.
Referenced by beginVxmlSession(), endVxmlSession(), runVxmlSession(), vxmlParser(), and ~vxmlParser().
bool vxmlParser::killVxmlPage [private] |
Definition at line 59 of file vxml.h.
Referenced by beginVxmlSession(), endVxmlSession(), Parse(), parseField(), parseFilled(), parseForm(), parseIfBlock(), parseIfExpression(), parseNoInput(), parsePrompt(), parseRecord(), runVxmlSession(), vxmlParser(), waitUntilFinished(), and ~vxmlParser().
QString vxmlParser::callerName [private] |
Definition at line 60 of file vxml.h.
Referenced by beginVxmlSession(), SaveWav(), vxmlParser(), and vxmlThreadWorker().
QString vxmlParser::vxmlUrl [private] |
Definition at line 61 of file vxml.h.
Referenced by Parse(), parseIfBlock(), parseNoInput(), and runVxmlSession().
QString vxmlParser::httpMethod [private] |
Definition at line 62 of file vxml.h.
Referenced by Parse(), parseIfBlock(), parseNoInput(), and runVxmlSession().
QString vxmlParser::postNamelist [private] |
Definition at line 63 of file vxml.h.
Referenced by Parse(), parseIfBlock(), parseNoInput(), and runVxmlSession().
pthread_t vxmlParser::vxmlthread [private] |
QWaitCondition* vxmlParser::waker [private] |
Definition at line 88 of file vxml.h.
Referenced by beginVxmlSession(), vxmlParser(), vxmlThreadWorker(), and ~vxmlParser().
QDomDocument vxmlParser::vxmlDoc [private] |
vxmlVarContainer* vxmlParser::vxmlVarList [private] |
Definition at line 90 of file vxml.h.
Referenced by evaluateExpression(), Parse(), parseField(), parseIfBlock(), parseNoInput(), parsePrompt(), and parseRecord().
QUrl vxmlParser::lastUrl [private] |
rtp* vxmlParser::Rtp [private] |
Definition at line 93 of file vxml.h.
Referenced by beginVxmlSession(), endVxmlSession(), parseField(), PlayBeep(), PlaySilence(), PlayTTSPrompt(), PlayWav(), RecordAudio(), vxmlParser(), vxmlThreadWorker(), and waitUntilFinished().
1.5.5