<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="gnome-pomodoro">
  <schema id="org.gnome.pomodoro" path="/org/gnome/pomodoro/">
    <child name="preferences" schema="org.gnome.pomodoro.preferences"/>
    <child name="state" schema="org.gnome.pomodoro.state"/>
  </schema>

  <schema id="org.gnome.pomodoro.preferences" path="/org/gnome/pomodoro/preferences/">
    <key name="pomodoro-duration" type="d">
      <default>1500</default>
      <range min="1" max="36000"/>
      <summary>Pomodoro duration</summary>
      <description>Time in seconds you are supposed to be working.</description>
    </key>
    <key name="short-break-duration" type="d">
      <default>300</default>
      <range min="1" max="36000"/>
      <summary>Short pause duration</summary>
      <description>Time in seconds you are supposed to take a short break.</description>
    </key>
    <key name="long-break-duration" type="d">
      <default>900</default>
      <range min="1" max="36000"/>
      <summary>Long pause duration</summary>
      <description>Time in seconds you are supposed to take a longer break.</description>
    </key>
    <key name="long-break-interval" type="d">
      <default>4</default>
      <summary>Long pause interval</summary>
      <description>Number of pomodoros to a long break.</description>
    </key>
    <key name="toggle-timer-key" type="as">
      <default><![CDATA[["<Ctrl><Alt>p"]]]></default>
      <summary>Timer toggle key</summary>
      <description>Key to toggle the timer.</description>
    </key>
    <key name="show-screen-notifications" type="b">
      <default>true</default>
      <summary>Screen notifications</summary>
      <description>Whether to show a notification dialog when pause starts.</description>
    </key>
    <key name="pause-when-idle" type="b">
      <default>true</default>
      <summary>Wait after a break</summary>
      <description>Postpone pomodoro until there is some activity.</description>
    </key>
    <key name="enabled-plugins" type="as">
      <default>["sounds"]</default>
      <summary>Enabled plugins</summary>
      <description>List of enabled plugins.</description>
    </key>
  </schema>

  <schema id="org.gnome.pomodoro.state" path="/org/gnome/pomodoro/state/">
    <key name="timer-state" type="s">
      <choices>
        <choice value="null"/>
        <choice value="pomodoro"/>
        <choice value="short-break"/>
        <choice value="long-break"/>
      </choices>
      <default>"null"</default>
      <summary>Timer state</summary>
      <description>Last used timer state.</description>
    </key>
    <key name="timer-state-duration" type="d">
      <default>0</default>
      <summary>State time limit</summary>
      <description>Time limit in seconds of a last state.</description>
    </key>
    <key name="timer-state-date" type="s">
      <default>""</default>
      <summary>Timer state timestamp</summary>
      <description>Date of the last state change.</description>
    </key>
    <key name="timer-elapsed" type="d">
      <default>0</default>
      <summary>Timer elapsed</summary>
      <description>Timer elapsed time.</description>
    </key>
    <key name="timer-paused" type="b">
      <default>false</default>
      <summary>Timer paused</summary>
      <description>Whether timer is paused.</description>
    </key>
    <key name="timer-date" type="s">
      <default>""</default>
      <summary>Timer timestamp</summary>
      <description>Date that timer was saved.</description>
    </key>
    <key name="timer-score" type="d">
      <default>0</default>
      <summary>Timer score</summary>
      <description>Achieved score.</description>
    </key>
    <key name="open-uri" type="s">
      <default>""</default>
      <summary>Default location for the "Open…" dialogues</summary>
      <description>Default location for the "Open…" dialogues.</description>
    </key>
  </schema>
</schemalist>
