00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 #ifndef OPAL_OPAL_OPALVXML_H
00032 #define OPAL_OPAL_OPALVXML_H
00033 
00034 #ifdef P_USE_PRAGMA
00035 #pragma interface
00036 #endif
00037 
00038 #include <opal/buildopts.h>
00039 
00040 #include <ptclib/vxml.h>
00041 
00042 
00043 class OpalConnection;
00044 
00045 
00047 
00048 
00049 #if OPAL_PTLIB_VXML
00050 
00051 class PTextToSpeech;
00052 
00053 class OpalVXMLSession : public PVXMLSession 
00054 {
00055   PCLASSINFO(OpalVXMLSession, PVXMLSession);
00056   public:
00057     OpalVXMLSession(
00058       OpalConnection * _conn,
00059       PTextToSpeech * tts = NULL,
00060       PBoolean autoDelete = PFalse
00061     );
00062 
00063     virtual PBoolean Close();
00064     virtual void OnEndSession();
00065 
00066     virtual PWAVFile * CreateWAVFile(
00067       const PFilePath & fn,
00068       PFile::OpenMode mode,
00069       int opts,
00070       unsigned fmt
00071     );
00072 
00073   protected:
00074     OpalConnection * conn;
00075 };
00076 
00077 #endif
00078 
00079 #endif // OPAL_OPAL_OPALVXML_H
00080 
00081 
00082