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: 27106 $ 00027 * $Author: rjongbloed $ 00028 * $Date: 2012-03-04 20:29:11 -0600 (Sun, 04 Mar 2012) $ 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 class OpalCapiEndPoint; 00045 00046 00053 class OpalManagerConsole : public OpalManager 00054 { 00055 PCLASSINFO(OpalManagerConsole, OpalManager); 00056 00057 public: 00058 OpalManagerConsole(); 00059 00060 PString GetArgumentSpec() const; 00061 PString GetArgumentUsage() const; 00062 00063 bool Initialise( 00064 PArgList & args, 00065 bool verbose, 00066 const PString & defaultRoute = PString::Empty() 00067 ); 00068 00069 protected: 00070 #if OPAL_SIP 00071 SIPEndPoint * CreateSIPEndPoint(); 00072 #endif 00073 #if OPAL_H323 00074 H323EndPoint * CreateH323EndPoint(); 00075 #endif 00076 #if OPAL_LID 00077 OpalLineEndPoint * CreateLineEndPoint(); 00078 #endif 00079 #if OPAL_CAPI 00080 OpalCapiEndPoint * CreateCapiEndPoint(); 00081 #endif 00082 }; 00083 00084 00085 #endif // OPAL_OPAL_CONSOLE_MGR_H 00086 00087