001/* 002 * To change this template, choose Tools | Templates 003 * and open the template in the editor. 004 */ 005package org.anarres.qemu.exec; 006 007import java.util.List; 008 009/** 010 * 011 * @author shevek 012 */ 013public class QEmuWatchdogOption extends AbstractQEmuOption { 014 015 public static enum Model { 016 017 ib700, i6300esb 018 } 019 020 public static enum Action { 021 022 reset, shutdown, poweroff, pause, debug, none 023 } 024 private final Model model; 025 private final Action action; 026 027 public QEmuWatchdogOption(Model model, Action action) { 028 this.model = model; 029 this.action = action; 030 } 031 032 public QEmuWatchdogOption(Model model) { 033 this(model, Action.none); 034 } 035 036 @Override 037 public void appendTo(List<? super String> line) { 038 add(line, "-watchdog", model); 039 add(line, "-watchdog-action", action); 040 } 041}