/* IClient.java (c) 2005-2013 Edward Swartz All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html */ package v9t9.common.client; import v9t9.common.events.IEventNotifier; import v9t9.common.settings.SettingSchema; /** The client the emulated machine interacts with. This could * be the emulator itself, hosting a window, keyboard, etc., * or it could be a demo running, or it could be a remote host. * * @author ejs */ public interface IClient { SettingSchema settingNewConfiguration = new SettingSchema( ISettingsHandler.TRANSIENT, "NewConfiguration", Boolean.FALSE); String getIdentifier(); void start(); void close(); void tick(); boolean isAlive(); void handleEvents(); IEventNotifier getEventNotifier(); /** * Run a task in the machine's asyncExec loop, but in the UI thread. * @param runnable */ void asyncExecInUI(Runnable runnable); IVideoRenderer getVideoRenderer(); /** * @return */ ISoundHandler getSoundHandler(); /** * Get all the handlers for the content * @return */ IEmulatorContentHandler[] getEmulatorContentHandlers(IEmulatorContentSource source); }