OPAL  Version 3.14.3
opalvxml.h
Go to the documentation of this file.
1 /*
2  * opalvxml.h
3  *
4  * Header file for IVR code
5  *
6  * A H.323 IVR application.
7  *
8  * Copyright (C) 2002 Equivalence Pty. Ltd.
9  *
10  * The contents of this file are subject to the Mozilla Public License
11  * Version 1.0 (the "License"); you may not use this file except in
12  * compliance with the License. You may obtain a copy of the License at
13  * http://www.mozilla.org/MPL/
14  *
15  * Software distributed under the License is distributed on an "AS IS"
16  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
17  * the License for the specific language governing rights and limitations
18  * under the License.
19  *
20  * The Original Code is Portable Windows Library.
21  *
22  * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
23  *
24  * Contributor(s): ______________________________________.
25  *
26  * $Revision: 29536 $
27  * $Author: rjongbloed $
28  * $Date: 2013-04-19 18:55:15 +1000 (Fri, 19 Apr 2013) $
29  */
30 
31 #ifndef OPAL_OPAL_OPALVXML_H
32 #define OPAL_OPAL_OPALVXML_H
33 
34 #ifdef P_USE_PRAGMA
35 #pragma interface
36 #endif
37 
38 #include <opal_config.h>
39 
40 #include <ptclib/vxml.h>
41 
42 
43 class OpalConnection;
44 
45 
47 
48 
49 #if OPAL_PTLIB_VXML
50 
51 class PTextToSpeech;
52 class OpalIVRConnection;
53 
54 
55 class OpalVXMLSession : public PVXMLSession
56 {
57  PCLASSINFO(OpalVXMLSession, PVXMLSession);
58  public:
59  OpalVXMLSession(
60  OpalIVRConnection & conn,
61  PTextToSpeech * tts = NULL,
62  PBoolean autoDelete = false
63  );
64 
65  virtual void OnEndDialog();
66  virtual void OnEndSession();
67  virtual bool OnTransfer(const PString & destination, TransferType type);
68 
69  protected:
70  OpalIVRConnection & m_connection;
71 };
72 
73 #endif
74 
75 #endif // OPAL_OPAL_OPALVXML_H
76 
77 
78 // End of File ///////////////////////////////////////////////////////////////