00001
00002
00006 #ifndef __SHEPP_GLOBAL_H__
00007 #define __SHEPP_GLOBAL_H__
00008
00009 #include <string>
00010 #include <memory>
00011
00012 #include "libepp_nicbr.H"
00013 #include "Session.H"
00014
00015 #include "SheppCommand.H"
00016
00017 #define USE_BR_DOMAINS 1
00018 #define SHEPP_VERSION "0.6"
00019 #define DEFAULT_PORT 3121
00020 #define CMD_CONTAINER list
00021 #define CLIENT_PEM "../../unit_test/client.pem"
00022 #define ROOT_PEM "../../unit_test/root.pem"
00023
00024 #if CMD_CONTAINER == list
00025 #include <list>
00026 #elif CMD_CONTAINER == set
00027 #include <set>
00028 #elif CMD_CONTAINER == vector
00029 #include <vector>
00030 #endif
00031
00032 using std::CMD_CONTAINER;
00033 using std::string;
00034 using std::auto_ptr;
00035
00036 LIBEPP_NICBR_NS_USE
00037
00039 CMD_CONTAINER<SheppCommand> _commands;
00040
00042 string _server = "localhost";
00043 int _port = DEFAULT_PORT;
00044 string _user = "test";
00045 string _passphrase = "client passphrase";
00046 string _client_pem = CLIENT_PEM;
00047 string _root_pem = ROOT_PEM;
00048 bool _connected = false;
00049
00050 string _login_pw = "";
00051 string _login_new_pw = "";
00052 bool _new_pw = false;
00053 string _lang = "";
00054
00055 bool _beauty = true;
00056 bool _debug = false;
00057 bool _autorsp = true;
00058
00059 bool _keepalive = false;
00060 bool _ka_running = false;
00061 bool _cmd_running= false;
00062 static int _keepalive_timer = 180;
00063
00064 string _xmlrsp = "";
00065 string _xmlcmd = "";
00066
00068 auto_ptr<Session> _session;
00069
00070 #endif //__SHEPP_GLOBAL_H__