if (src == menuBar.accountManager) {
}
if (src == menuBar.runAlways) {
statusLabel.setText("Setting run mode...");
parser = new XML_Parser(rpc.set_run_mode(RPC.RUN_MODE_ALWAYS).toString());
if(parser.runMode()) {
statusLabel.setText(statusLabel.getText()+" done");
} else {
statusLabel.setText(statusLabel.getText()+" ERROR!!!");
}
}
if (src == menuBar.runBasedOnPreferences) {
statusLabel.setText("Setting run mode...");
parser = new XML_Parser(rpc.set_run_mode(RPC.RUN_MODE_AUTO).toString());
if(parser.runMode()) {
statusLabel.setText(statusLabel.getText()+" done");
} else {
statusLabel.setText(statusLabel.getText()+" ERROR!!!");
}
}
if (src == menuBar.suspend) {
statusLabel.setText("Setting run mode...");
parser = new XML_Parser(rpc.set_run_mode(RPC.RUN_MODE_NEVER).toString());
if(parser.runMode()) {
statusLabel.setText(statusLabel.getText()+" done");
} else {
statusLabel.setText(statusLabel.getText()+" ERROR!!!");
}
}
if (src == menuBar.networkActivityAlwaysAvailable) {
statusLabel.setText("Setting network mode...");
parser = new XML_Parser(rpc.set_network_mode(RPC.NETWORK_MODE_ALWAYS).toString());
if(parser.networkMode()) {
statusLabel.setText(statusLabel.getText()+" done");
} else {
statusLabel.setText(statusLabel.getText()+" ERROR!!!");
}
}
if (src == menuBar.networkActivityBasedOnPreferences) {
statusLabel.setText("Setting network mode...");
parser = new XML_Parser(rpc.set_network_mode(RPC.NETWORK_MODE_AUTO).toString());
if(parser.networkMode()) {
statusLabel.setText(statusLabel.getText()+" done");
} else {
statusLabel.setText(statusLabel.getText()+" ERROR!!!");
}
}
if (src == menuBar.networkActivitySuspended) {
statusLabel.setText("Setting network mode...");
parser = new XML_Parser(rpc.set_network_mode(RPC.NETWORK_MODE_NEVER).toString());
if(parser.networkMode()) {
statusLabel.setText(statusLabel.getText()+" done");
} else {
statusLabel.setText(statusLabel.getText()+" ERROR!!!");
}
}
if (src == menuBar.options) {
}
if (src == menuBar.selectComputer) {
}
if (src == menuBar.runCPUBenchmarks) {
statusLabel.setText("running Benchmarks...");
parser = new XML_Parser(rpc.run_benchmarks().toString());
if(parser.benchmark()) {
statusLabel.setText(statusLabel.getText()+" done");
} else {
statusLabel.setText(statusLabel.getText()+" ERROR!!!");
}