Loading slc/trunk/Makefile.am +12 −8 Changes for slc/trunk/Makefile.am: 12 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -16,18 +16,22 @@ bin_PROGRAMS= slc slc_SOURCES= src/slc.hh \ src/slc.cc \ slc_SOURCES= src/slc.cc \ src/options.cc \ src/engine.cc \ src/screen.cc \ src/history.cc \ src/sll/connection.cc \ src/sll/error.cc noinst_SOURCES= src/slc.hh \ src/options.hh \ src/engine.hh \ src/screen.hh \ src/screen.cc \ src/connection.hh \ src/connection.cc \ src/history.hh \ src/history.cc \ src/error.hh \ src/error.cc src/sll/error.hh \ src/sll/connection.hh CLEANFILES= *~ '\#*' .*.swp .*~ Loading slc/trunk/src/connection.cc −179 File deleted. Show changes slc/trunk/src/history.cc −1 Changes for slc/trunk/src/history.cc: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ #include "slc.hh" #include "history.hh" #include "error.hh" History::History() : max_size_(100) {} Loading slc/trunk/src/screen.cc +3 −4 Changes for slc/trunk/src/screen.cc: 3 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -23,9 +23,8 @@ #include "slc.hh" #include "screen.hh" #include "options.hh" #include "error.hh" #include "history.hh" #include "connection.hh" #include "sll/connection.hh" /* ********************************************************************************* Loading Loading @@ -529,11 +528,11 @@ void Screen::cmd_exec(const char *s) { } else if (!strcmp(s, "/logout")) { S << s << "\n"; C.stop(); //C.stop(); } else if (!strcmp(s, "/login")) { S << s << "\n"; C.start(); //C.start(); } else S << s << ": Unkown command.\n"; Loading slc/trunk/src/slc.cc +9 −17 Changes for slc/trunk/src/slc.cc: 9 added lines, 17 removed lines. Original line number Diff line number Diff line Loading @@ -16,15 +16,16 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include <getopt.h> #include "slc.hh" #include "options.hh" #include "screen.hh" #include "history.hh" #include "error.hh" #include "connection.hh" #include "sll/connection.hh" #include "engine.hh" #include <getopt.h> Engine E; Screen S; Options O; History H; Loading Loading @@ -52,20 +53,11 @@ int main(int argc, char *argv[]) // load cmd history H.load(O.history_file); // Create graphic env S.init(); // Showing login screen. Retrieve user/pass. S.login(); // Showing dialog screen S.dialog(); // start connexion C.start(); // Starting engine E.on(); // Treat keyboards events S.eventsloop(); // Stoping engine E.off(); // Save history H.save(O.history_file); Loading Loading
slc/trunk/Makefile.am +12 −8 Changes for slc/trunk/Makefile.am: 12 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -16,18 +16,22 @@ bin_PROGRAMS= slc slc_SOURCES= src/slc.hh \ src/slc.cc \ slc_SOURCES= src/slc.cc \ src/options.cc \ src/engine.cc \ src/screen.cc \ src/history.cc \ src/sll/connection.cc \ src/sll/error.cc noinst_SOURCES= src/slc.hh \ src/options.hh \ src/engine.hh \ src/screen.hh \ src/screen.cc \ src/connection.hh \ src/connection.cc \ src/history.hh \ src/history.cc \ src/error.hh \ src/error.cc src/sll/error.hh \ src/sll/connection.hh CLEANFILES= *~ '\#*' .*.swp .*~ Loading
slc/trunk/src/history.cc −1 Changes for slc/trunk/src/history.cc: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ #include "slc.hh" #include "history.hh" #include "error.hh" History::History() : max_size_(100) {} Loading
slc/trunk/src/screen.cc +3 −4 Changes for slc/trunk/src/screen.cc: 3 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -23,9 +23,8 @@ #include "slc.hh" #include "screen.hh" #include "options.hh" #include "error.hh" #include "history.hh" #include "connection.hh" #include "sll/connection.hh" /* ********************************************************************************* Loading Loading @@ -529,11 +528,11 @@ void Screen::cmd_exec(const char *s) { } else if (!strcmp(s, "/logout")) { S << s << "\n"; C.stop(); //C.stop(); } else if (!strcmp(s, "/login")) { S << s << "\n"; C.start(); //C.start(); } else S << s << ": Unkown command.\n"; Loading
slc/trunk/src/slc.cc +9 −17 Changes for slc/trunk/src/slc.cc: 9 added lines, 17 removed lines. Original line number Diff line number Diff line Loading @@ -16,15 +16,16 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include <getopt.h> #include "slc.hh" #include "options.hh" #include "screen.hh" #include "history.hh" #include "error.hh" #include "connection.hh" #include "sll/connection.hh" #include "engine.hh" #include <getopt.h> Engine E; Screen S; Options O; History H; Loading Loading @@ -52,20 +53,11 @@ int main(int argc, char *argv[]) // load cmd history H.load(O.history_file); // Create graphic env S.init(); // Showing login screen. Retrieve user/pass. S.login(); // Showing dialog screen S.dialog(); // start connexion C.start(); // Starting engine E.on(); // Treat keyboards events S.eventsloop(); // Stoping engine E.off(); // Save history H.save(O.history_file); Loading