1 2 /* 3 * xstress - xk0derz SMTP Stress Tester 4 * 5 * (c) Amit Singh amit@xkoder.com 6 * http://xkoder.com 7 * 8 * This software and related files are licensed under GNU GPL version 2 9 * Please visit the following webpage for more details 10 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 11 */ 12 13 #ifndef __USERINTERFACE_H__ 14 #define __USERINTERFACE_H__ 15 16 #include "config.h" 17 18 using namespace std; 19 20 class UserInterface 21 { 22 unsigned int uiOverride; 23 public: 24 string sConfigFile; 25 26 int uiServerPort; 27 string sServerIP; 28 string sLogFile; 29 int uiThreads; 30 int uiMailsPerThread; 31 int uiTimeout; 32 33 string sUsername; 34 string sPassword; 35 string sAuthType; 36 37 UserInterface(); 38 int processOptions(int argc, const char *argv[]); 39 unsigned int override(); 40 void setConfig(Config &configObj); 41 }; 42 43 #endif