org.nemo.ssu.xml 4.04 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<!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
 * Copyright (C) 2013 Jolla Ltd.
 * Contact: Bernd Wachter <bernd.wachter@jollamobile.com>
 *
 * 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 47 48
    <method name="deviceFamily">
      <arg direction="out" type="s" name="model"/>
    </method>
49 50 51
    <method name="deviceUid">
      <arg direction="out" type="s" name="model"/>
    </method>
52 53 54
    <method name="deviceVariant">
      <arg direction="out" type="s" name="model"/>
    </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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
    <method name="flavour">
      <arg direction="out" type="s" name="flavour"/>
    </method>
    <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>
96
    <method name="listRepos">
97 98 99
      <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"/>
100
    </method>
101 102 103
    <method name="updateRepos">
    </method>

104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
    <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>