reSIProcate/DialogUsageManager  9694
basicClientCmdLineParser.hxx
Go to the documentation of this file.
00001 #if !defined(basicClientCmdParser_hxx)
00002 #define basicClientCmdParser_hxx
00003 
00004 #include <vector>
00005 #include <resip/stack/Uri.hxx>
00006 #include <rutil/Data.hxx>
00007 
00008 namespace resip
00009 {
00010 
00011 class BasicClientCmdLineParser
00012 {
00013 public:
00014    BasicClientCmdLineParser(int argc, char** argv);
00015    static resip::Uri toUri(const char* input, const char* description);
00016 
00017    Data mLogType;
00018    Data mLogLevel;
00019    Data mTlsDomain;
00020    Data mCertPath;
00021       
00022    int mUdpPort;
00023    int mTcpPort;
00024    int mTlsPort;
00025    int mDtlsPort;
00026       
00027    int mRegisterDuration;
00028    bool mNoV4;
00029    bool mEnableV6;
00030    bool mHostFileLookupOnlyDnsMode;
00031       
00032    Uri mAor;
00033    Data mPassword;
00034       
00035    Uri mOutboundProxy;
00036    Uri mContact;
00037    bool mOutboundEnabled;
00038 
00039    Uri mSubscribeTarget;
00040    Uri mCallTarget;
00041 };
00042  
00043 }
00044 
00045 #endif
00046 
00047 
00048 /* ====================================================================
00049 
00050  Copyright (c) 2011, SIP Spectrum, Inc.
00051  All rights reserved.
00052 
00053  Redistribution and use in source and binary forms, with or without
00054  modification, are permitted provided that the following conditions are 
00055  met:
00056 
00057  1. Redistributions of source code must retain the above copyright 
00058     notice, this list of conditions and the following disclaimer. 
00059 
00060  2. Redistributions in binary form must reproduce the above copyright
00061     notice, this list of conditions and the following disclaimer in the
00062     documentation and/or other materials provided with the distribution. 
00063 
00064  3. Neither the name of SIP Spectrum nor the names of its contributors 
00065     may be used to endorse or promote products derived from this 
00066     software without specific prior written permission. 
00067 
00068  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
00069  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
00070  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
00071  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
00072  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
00073  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
00074  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
00075  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
00076  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
00077  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
00078  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00079 
00080  ==================================================================== */