vxmlParser Class Reference

#include <vxml.h>

List of all members.


Detailed Description

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
vxmlVarContainervxmlVarList
QUrl lastUrl
rtpRtp

Constructor & Destructor Documentation

vxmlParser::vxmlParser (  ) 

Definition at line 139 of file vxml.cpp.

vxmlParser::~vxmlParser (  )  [virtual]

Definition at line 150 of file vxml.cpp.


Member Function Documentation

void vxmlParser::beginVxmlSession ( rtp r,
QString  cName 
)

Definition at line 187 of file vxml.cpp.

Referenced by SipThread::ChangePrimaryCallState().

void vxmlParser::endVxmlSession (  ) 

Definition at line 203 of file vxml.cpp.

Referenced by SipThread::ChangePrimaryCallState().

void * vxmlParser::vxmlThread ( void *  p  )  [static, private]

Definition at line 160 of file vxml.cpp.

Referenced by vxmlParser().

void vxmlParser::runVxmlSession (  )  [private]

Definition at line 211 of file vxml.cpp.

Referenced by vxmlThreadWorker().

void vxmlParser::vxmlThreadWorker (  )  [private]

Definition at line 168 of file vxml.cpp.

Referenced by vxmlThread().

bool vxmlParser::loadVxmlPage ( QString  Url,
QString  Method,
QString  Namelist,
QDomDocument &  script 
) [private]

Definition at line 237 of file vxml.cpp.

Referenced by runVxmlSession().

void vxmlParser::Parse ( QDomDocument &  vxmlPage  )  [private]

Definition at line 354 of file vxml.cpp.

Referenced by runVxmlSession().

void vxmlParser::parseForm ( QDomElement &  formElm  )  [private]

Definition at line 763 of file vxml.cpp.

Referenced by Parse().

bool vxmlParser::parseField ( QDomElement &  field  )  [private]

Definition at line 469 of file vxml.cpp.

Referenced by parseForm().

void vxmlParser::parseFieldType ( QString  Type,
uint Max,
uint Min 
) [private]

Definition at line 519 of file vxml.cpp.

Referenced by parseField().

void vxmlParser::parseRecord ( QDomElement &  record  )  [private]

Definition at line 547 of file vxml.cpp.

Referenced by parseForm().

void vxmlParser::parseFilled ( QDomElement &  filled,
bool reprompt 
) [private]

Definition at line 623 of file vxml.cpp.

Referenced by parseForm(), and parseRecord().

void vxmlParser::parseNoInput ( QDomElement &  noInput,
bool reprompt 
) [private]

Definition at line 588 of file vxml.cpp.

Referenced by parseForm().

void vxmlParser::parseIfExpression ( QDomElement &  ifExp,
bool reprompt 
) [private]

Definition at line 644 of file vxml.cpp.

Referenced by parseFilled().

bool vxmlParser::parseIfBlock ( QDomElement &  ifBlock,
QString  Condition,
bool reprompt 
) [private]

Definition at line 683 of file vxml.cpp.

Referenced by parseIfExpression().

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]

Definition at line 459 of file vxml.cpp.

Referenced by parsePrompt(), and parseRecord().

void vxmlParser::PlayWav ( QString  wavFile  )  [private]

Definition at line 800 of file vxml.cpp.

Referenced by parsePrompt().

void vxmlParser::PlayWav ( short *  buffer,
int  Samples 
) [private]

Definition at line 793 of file vxml.cpp.

void vxmlParser::SaveWav ( short *  buffer,
int  Samples 
) [private]

Definition at line 810 of file vxml.cpp.

Referenced by Parse().

void vxmlParser::PlayBeep ( int  freqHz = 1000,
int  volume = 7000,
int  ms = 800 
) [private]

Definition at line 829 of file vxml.cpp.

Referenced by parseRecord().

void vxmlParser::PlaySilence ( int  ms,
bool  dtmfInterrupts 
) [private]

Definition at line 859 of file vxml.cpp.

Referenced by parseField(), and parsePrompt().

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]

Definition at line 868 of file vxml.cpp.

Referenced by parseRecord().

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]

Definition at line 726 of file vxml.cpp.

Referenced by parseIfBlock().


Member Data Documentation

Definition at line 57 of file vxml.h.

Referenced by beginVxmlSession(), vxmlParser(), vxmlThreadWorker(), and ~vxmlParser().

Definition at line 58 of file vxml.h.

Referenced by beginVxmlSession(), endVxmlSession(), runVxmlSession(), vxmlParser(), 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().

Definition at line 87 of file vxml.h.

Referenced by vxmlParser(), and ~vxmlParser().

QWaitCondition* vxmlParser::waker [private]

Definition at line 88 of file vxml.h.

Referenced by beginVxmlSession(), vxmlParser(), vxmlThreadWorker(), and ~vxmlParser().

QDomDocument vxmlParser::vxmlDoc [private]

Definition at line 89 of file vxml.h.

Referenced by runVxmlSession().

QUrl vxmlParser::lastUrl [private]

Definition at line 91 of file vxml.h.

Referenced by loadVxmlPage(), and runVxmlSession().

rtp* vxmlParser::Rtp [private]


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:14 2010 for MythTV by  doxygen 1.5.5