opalvxml.h

Go to the documentation of this file.
00001 /*
00002  * opalvxml.h
00003  *
00004  * Header file for IVR code
00005  *
00006  * A H.323 IVR application.
00007  *
00008  * Copyright (C) 2002 Equivalence Pty. Ltd.
00009  *
00010  * The contents of this file are subject to the Mozilla Public License
00011  * Version 1.0 (the "License"); you may not use this file except in
00012  * compliance with the License. You may obtain a copy of the License at
00013  * http://www.mozilla.org/MPL/
00014  *
00015  * Software distributed under the License is distributed on an "AS IS"
00016  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
00017  * the License for the specific language governing rights and limitations
00018  * under the License.
00019  *
00020  * The Original Code is Portable Windows Library.
00021  *
00022  * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
00023  *
00024  * Contributor(s): ______________________________________.
00025  *
00026  * $Revision: 24495 $
00027  * $Author: rjongbloed $
00028  * $Date: 2010-06-14 23:22:45 -0500 (Mon, 14 Jun 2010) $
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 class OpalIVRConnection;
00053 
00054 
00055 class OpalVXMLSession : public PVXMLSession 
00056 {
00057   PCLASSINFO(OpalVXMLSession, PVXMLSession);
00058   public:
00059     OpalVXMLSession(
00060       OpalIVRConnection & conn,
00061       PTextToSpeech * tts = NULL,
00062       PBoolean autoDelete = false
00063     );
00064 
00065     virtual void OnEndDialog();
00066     virtual void OnEndSession();
00067     virtual void OnTransfer(const PString & destination, bool bridged);
00068 
00069     virtual PWAVFile * CreateWAVFile(
00070       const PFilePath & fn,
00071       PFile::OpenMode mode,
00072       int opts,
00073       unsigned fmt
00074     );
00075 
00076   protected:
00077     OpalIVRConnection & m_connection;
00078 };
00079 
00080 #endif
00081 
00082 #endif // OPAL_OPAL_OPALVXML_H
00083 
00084 
00085 // End of File ///////////////////////////////////////////////////////////////

Generated on Sun Nov 21 20:20:50 2010 for OPAL by  doxygen 1.4.7