org.nemo.ssu.xml 4.75 KB
Newer Older
1 2 3 4 5 6
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">

<!--
/**
 * DBus service for interfacing with ssu management
7 8
 * Copyright (C) 2013 - 2019 Jolla Ltd.
 * Copyright (C) 2019 Open Mobile Platform LLC.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 **/
-->

<node name="/org/nemo/ssu">
  <interface name="org.nemo.ssu">
28
    <!-- credential management -->
29 30 31 32 33 34 35 36 37
    <method name="registerDevice">
      <arg direction="in" type="s" name="username"/>
      <arg direction="in" type="s" name="password"/>
    </method>
    <method name="unregisterDevice">
    </method>
    <method name="isRegistered">
      <arg direction="out" type="b" name="status"/>
    </method>
38 39 40
    <method name="domain">
        <arg direction="out" type="s" name="domain"/>
    </method>
41 42

    <!-- deviceInfo related methods -->
43 44 45
    <method name="deviceModel">
      <arg direction="out" type="s" name="model"/>
    </method>
46
    <method name="deviceFamily">
47
      <arg direction="out" type="s" name="family"/>
48
    </method>
49
    <method name="deviceUid">
50
      <arg direction="out" type="s" name="uid"/>
51
    </method>
52
    <method name="deviceVariant">
53
      <arg direction="out" type="s" name="variant"/>
54
    </method>
55 56 57 58 59 60
    <!-- return a model-specific string suitable for displaying -->
    <!-- see documentation of Ssu::DisplayType for supported types -->
    <method name="displayName">
      <arg direction="out" type="s" name="label"/>
      <arg direction="in" type="i" name="type" />
    </method>
61 62 63 64 65 66 67 68

    <!-- repository management -->
    <method name="deviceMode">
      <arg direction="out" type="i" name="mode"/>
    </method>
    <method name="setDeviceMode">
      <arg direction="in" type="i" name="mode"/>
    </method>
69 70 71 72
    <method name="setDeviceMode">
      <arg direction="in" type="i" name="mode"/>
      <arg direction="in" type="i" name="editMode"/>
    </method>
73 74 75
    <method name="flavour">
      <arg direction="out" type="s" name="flavour"/>
    </method>
76 77 78
    <method name="brand">
        <arg direction="out" type="s" name="brand"/>
    </method>
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
    <method name="setFlavour">
      <arg direction="in" type="s" name="flavour"/>
    </method>
    <method name="release">
      <arg direction="out" type="s" name="release"/>
      <arg direction="in" type="b" name="rnd" />
    </method>
    <method name="setRelease">
      <arg direction="in" type="s" name="release"/>
      <arg direction="in" type="b" name="rnd" />
    </method>
    <!-- actions are remove(0), add(1), disable(2) and enable(3) -->
    <method name="modifyRepo">
      <arg direction="in" type="i" name="action"/>
      <arg direction="in" type="s" name="repo" />
    </method>
    <method name="addRepo">
      <arg direction="in" type="s" name="repo" />
      <arg direction="in" type="s" name="url" />
    </method>
99
    <method name="listRepos">
100 101 102
      <arg type="a(ssa{sv})" direction="out"/>
      <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;SsuRepo&gt;"/>
      <arg name="rnd" type="b" direction="in"/>
103
    </method>
104 105
    <method name="updateRepos">
    </method>
106 107 108 109 110 111 112 113 114 115 116 117 118 119
    <method name="listDomains">
      <arg direction="out" type="a(s)"/>
      <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QStringList"/>
    </method>
    <method name="setDomainConfig">
      <arg direction="in" type="s" name="domain"/>
      <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
      <arg direction="in" type="a{ss}" name="config"/>
    </method>
    <method name="getDomainConfig">
      <arg direction="in" type="s" name="domain"/>
      <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QVariantMap"/>
      <arg direction="out" type="a{ss}"/>
    </method>
120

121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
    <method name="error">
      <arg direction="out" type="b" name="status"/>
    </method>
    <method name="lastError">
      <arg direction="out" type="s" name="status"/>
    </method>
    <method name="quit">
    </method>

    <signal name="credentialsChanged">
    </signal>
    <signal name="done">
    </signal>
    <signal name="registrationStatusChanged">
    </signal>
  </interface>
</node>