From 0f1e2f5984719bd795b5fccda07a6e6c7eb07992 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 2 Apr 2004 00:19:22 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=3205 --- checkin_notes | 11 ++++++++ client/cs_prefs.C | 3 +- client/gui_rpc_client.C | 61 ++++++++++++++++++++++++++++++++++++++++ client/gui_rpc_client.h | 19 +++++++++++++ client/gui_test.C | 8 ++++++ client/makefile.gui_test | 2 ++ 6 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 client/makefile.gui_test diff --git a/checkin_notes b/checkin_notes index 15d5cca838..6a22af13a0 100755 --- a/checkin_notes +++ b/checkin_notes @@ -11235,3 +11235,14 @@ David April 1 2004 lib/ messages.C util.C,h + + +Davaid April 1 2004 + - print message when resume network activity + - flesh out GUI RPC for messages + + client/ + cs_prefs.C + gui_rpc_client.C,h + gui_test.C + makefile.gui_test (new) diff --git a/client/cs_prefs.C b/client/cs_prefs.C index 6df22c286c..ecd8ce5a83 100644 --- a/client/cs_prefs.C +++ b/client/cs_prefs.C @@ -154,7 +154,7 @@ int CLIENT_STATE::suspend_activities(int reason) { // since activities_suspended is now true // int CLIENT_STATE::resume_activities() { - msg_printf(NULL, MSG_INFO, "Resuming activity"); + msg_printf(NULL, MSG_INFO, "Resuming computation and network activity"); active_tasks.unsuspend_all(); return 0; } @@ -182,6 +182,7 @@ int CLIENT_STATE::suspend_network(int reason) { } int CLIENT_STATE::resume_network() { + msg_printf(NULL, MSG_INFO, "Resuming network activity"); return 0; } diff --git a/client/gui_rpc_client.C b/client/gui_rpc_client.C index 088ef6f2a1..8d3abf9aee 100644 --- a/client/gui_rpc_client.C +++ b/client/gui_rpc_client.C @@ -95,6 +95,67 @@ int RPC_CLIENT::get_state() { return 0; } +int RPC_CLIENT::result_show_graphics(RESULT& result) { + return 0; +} + +int RPC_CLIENT::project_reset(PROJECT& project) { + return 0; +} + +int RPC_CLIENT::project_attach(char* url, char* auth) { + return 0; +} + +int RPC_CLIENT::project_detach(PROJECT&) { + return 0; +} + +int RPC_CLIENT::project_update(PROJECT&) { + return 0; +} + +int RPC_CLIENT::set_run_mode(int mode) { + return 0; +} + +int RPC_CLIENT::run_benchmarks() { + return 0; +} + +int RPC_CLIENT::set_proxy_settings(PROXY_INFO& pi) { + return 0; +} + +int RPC_CLIENT::get_messages( + int nmessages, int offset, vector& msgs +) { + char buf[256]; + fprintf(fout, + "\n" + " %d\n" + " %d\n" + "\n", + nmessages, offset + ); + while (fgets(buf, 256, fin)) { + if (match_tag(buf, "")) continue; + if (match_tag(buf, "")) break; + if (match_tag(buf, "")) { + MESSAGE_DESC md; + while (fgets(buf, 256, fin)) { + if (match_tag(buf, "")) break; + if (parse_str(buf, "", md.project)) continue; + if (parse_str(buf, "", md.body)) continue; + if (parse_int(buf, "", md.priority)) continue; + if (parse_int(buf, "