OPAL  Version 3.18.8
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 
27 #ifndef OPAL_OPAL_OPALVXML_H
28 #define OPAL_OPAL_OPALVXML_H
29 
30 #ifdef P_USE_PRAGMA
31 #pragma interface
32 #endif
33 
34 #include <opal_config.h>
35 
36 #include <ptclib/vxml.h>
37 
38 
39 class OpalConnection;
40 
41 
43 
44 
45 #if OPAL_PTLIB_VXML
46 
47 class PTextToSpeech;
48 class OpalIVRConnection;
49 
50 
51 class OpalVXMLSession : public PVXMLSession
52 {
53  PCLASSINFO(OpalVXMLSession, PVXMLSession);
54  public:
55  OpalVXMLSession(
56  OpalIVRConnection & conn,
57  PTextToSpeech * tts = NULL,
58  PBoolean autoDelete = false
59  );
60 
61  virtual void OnEndDialog();
62  virtual void OnEndSession();
63  virtual bool OnTransfer(const PString & destination, TransferType type);
64 
65  protected:
66  OpalIVRConnection & m_connection;
67 };
68 
69 #endif
70 
71 #endif // OPAL_OPAL_OPALVXML_H
72 
73 
74 // End of File ///////////////////////////////////////////////////////////////
Definition: ivr.h:212
Definition: connection.h:415