virtual void onChannelDataReady(Ipc::ChannelRef channel, Ipc::MessageRef message) { switch(Ipc::CommandId cmd = message->get_cmd()) { default: { logger->error() << "Tab: received unknown command '" << cmd << "'" << std::endl; break; } case Ipc::CommandId::onReady: { message->reset(); message->add_cmd(Ipc::CommandId::navigate); message->add_str("http://heise.de/"); logger->debug() << "sending navigate to heise.de!" << std::endl; send->send(message); break; } } }
virtual void onChannelDataReady(Ipc::ChannelRef channel, Ipc::MessageRef message) { switch(Ipc::CommandId cmd = message->get_cmd()) { default: { logger->error() << "Window: received unknown command '" << cmd << "'" << std::endl; break; } } }