console_mgr.h

Go to the documentation of this file.
00001 /*
00002  * console_mgs.h
00003  *
00004  * An OpalManager derived class for use in a console application, providing
00005  * a standard set of command line arguments for configuring many system
00006  * parameters. Used by the sample applications such as faxopal, ovropal etc.
00007  *
00008  * Copyright (c) 2010 Vox Lucida 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 Open Phone Abstraction Library.
00021  *
00022  * The Initial Developer of the Original Code is Vox Lucida Pty. Ltd.
00023  *
00024  * Contributor(s): ______________________________________.
00025  *
00026  * $Revision: 24766 $
00027  * $Author: rjongbloed $
00028  * $Date: 2010-09-30 02:18:52 -0500 (Thu, 30 Sep 2010) $
00029  */
00030 
00031 #ifndef OPAL_OPAL_CONSOLE_MGR_H
00032 #define OPAL_OPAL_CONSOLE_MGR_H
00033 
00034 #ifdef P_USE_PRAGMA
00035 #pragma interface
00036 #endif
00037 
00038 #include <opal/manager.h>
00039 
00040 
00041 class SIPEndPoint;
00042 class H323EndPoint;
00043 class OpalLineEndPoint;
00044 
00045 
00052 class OpalManagerConsole : public OpalManager
00053 {
00054     PCLASSINFO(OpalManagerConsole, OpalManager);
00055 
00056   public:
00057     OpalManagerConsole();
00058 
00059     PString GetArgumentSpec() const;
00060     PString GetArgumentUsage() const;
00061 
00062     bool Initialise(PArgList & args, bool verbose);
00063 
00064   protected:
00065 #if OPAL_SIP
00066     SIPEndPoint * CreateSIPEndPoint();
00067 #endif
00068 #if OPAL_H323
00069     H323EndPoint * CreateH323EndPoint();
00070 #endif
00071 #if OPAL_LID
00072     OpalLineEndPoint * CreateLineEndPoint();
00073 #endif
00074 };
00075 
00076 
00077 #endif // OPAL_OPAL_CONSOLE_MGR_H
00078 
00079 

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