<?xml version="1.0" encoding="UTF-8" ?>

<node name="/cx.ring.Ring.PluginManagerInterface" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
    <interface name="cx.ring.Ring.PluginManagerInterface">
        <!-- METHODS !-->
        <method name="loadPlugin" tp:name-for-bindings="loadPlugin">
            <tp:added version="9.2.0"/>
            <arg type="s" name="path" direction="in">
            </arg>
            <arg type="b" name="loaded" direction="out">
            </arg>
        </method>

        <method name="unloadPlugin" tp:name-for-bindings="unloadPlugin">
            <tp:added version="9.2.0"/>
            <arg type="s" name="path" direction="in">
            </arg>
            <arg type="b" name="unloaded" direction="out">
            </arg>
        </method>

        <method name="getPluginDetails" tp:name-for-bindings="getPluginDetails">
            <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="MapStringString"/>
            <tp:added version="9.2.0"/>
            <arg type="s" name="path" direction="in">
            </arg>
            <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="MapStringString"/>
            <arg type="a{ss}" name="details" direction="out" tp:type="String_String_Map">
            </arg>
        </method>

        <method name="getPluginPreferences" tp:name-for-bindings="getPluginPreferences">
            <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="VectorMapStringString"/>
            <tp:added version="11.1.0"/>
            <arg type="s" name="path" direction="in">
            </arg>
            <arg type="s" name="accountId" direction="in">
            </arg>
            <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="VectorMapStringString"/>
            <arg type="aa{ss}" name="PluginPreferences" direction="out" tp:type="String_String_Map">
            </arg>
        </method>

        <method name="setPluginPreference" tp:name-for-bindings="setPluginPreference">
            <tp:added version="9.2.0"/>
            <arg type="s" name="path" direction="in">
            </arg>
            <arg type="s" name="accountId" direction="in">
            </arg>
            <arg type="s" name="key" direction="in">
            </arg>
            <arg type="s" name="value" direction="in">
            </arg>
            <arg type="b" name="pluginPreferencesSet" direction="out">
            </arg>
        </method>

        <method name="getPluginPreferencesValues" tp:name-for-bindings="getPluginPreferencesValues">
            <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="MapStringString"/>
            <tp:added version="9.2.0"/>
            <arg type="s" name="path" direction="in">
            </arg>
            <arg type="s" name="accountId" direction="in">
            </arg>
            <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="MapStringString"/>
            <arg type="a{ss}" name="preferencesValues" direction="out" tp:type="String_String_Map">
            </arg>
        </method>

       <method name="resetPluginPreferencesValues" tp:name-for-bindings="resetPluginPreferencesValues">
            <tp:added version="9.2.0"/>
            <arg type="s" name="path" direction="in">
            </arg>
            <arg type="s" name="accountId" direction="in">
            </arg>
            <arg type="b" name="reset" direction="out">
            </arg>
        </method>

       <method name="getInstalledPlugins" tp:name-for-bindings="getInstalledPlugins">
            <tp:added version="9.9.0"/>
            <arg type="as" name="availablePlugins" direction="out">
            </arg>
        </method>

       <method name="getLoadedPlugins" tp:name-for-bindings="getLoadedPlugins">
            <tp:added version="9.9.0"/>
            <arg type="as" name="LoadedPlugins" direction="out">
            </arg>
        </method>

       <method name="installPlugin" tp:name-for-bindings="installPlugin">
            <tp:added version="9.2.0"/>
            <arg type="s" name="jplPath" direction="in">
            </arg>
            <arg type="b" name="force" direction="in">
            </arg>
            <arg type="i" name="instaled" direction="out">
            </arg>
        </method>

       <method name="uninstallPlugin" tp:name-for-bindings="uninstallPlugin">
            <tp:added version="9.2.0"/>
            <arg type="s" name="pluginRootPath" direction="in">
            </arg>
            <arg type="i" name="uninstaled" direction="out">
            </arg>
        </method>

       <method name="getCallMediaHandlers" tp:name-for-bindings="getCallMediaHandlers">
            <tp:added version="9.9.0"/>
            <arg type="as" name="getCallMediaHandlers" direction="out">
            </arg>
        </method>

       <method name="getChatHandlers" tp:name-for-bindings="getChatHandlers">
            <tp:added version="9.9.0"/>
            <arg type="as" name="getChatHandlers" direction="out">
            </arg>
        </method>

       <method name="toggleCallMediaHandler" tp:name-for-bindings="toggleCallMediaHandler">
            <tp:added version="9.2.0"/>
            <arg type="s" name="mediaHandlerId" direction="in">
            </arg>
            <arg type="s" name="callId" direction="in">
            </arg>
            <arg type="b" name="toggle" direction="in">
            </arg>
        </method>

       <method name="toggleChatHandler" tp:name-for-bindings="toggleChatHandler">
            <tp:added version="9.9.0"/>
            <arg type="s" name="chatHandlerId" direction="in">
            </arg>
            <arg type="s" name="accountId" direction="in">
            </arg>
            <arg type="s" name="peerId" direction="in">
            </arg>
            <arg type="b" name="toggle" direction="in">
            </arg>
        </method>

       <method name="getCallMediaHandlerDetails" tp:name-for-bindings="getCallMediaHandlerDetails">
            <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="MapStringString"/>
            <tp:added version="9.2.0"/>
            <arg type="s" name="mediaHandlerId" direction="in">
            </arg>
            <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="MapStringString"/>
            <arg type="a{ss}" name="CallMediaHandlerDetails" direction="out">
            </arg>
        </method>

       <method name="getCallMediaHandlerStatus" tp:name-for-bindings="getCallMediaHandlerStatus">
            <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="VectorString"/>
            <tp:added version="9.3.0"/>
            <arg type="s" name="callId" direction="in">
            </arg>
            <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="VectorString"/>
            <arg type="as" name="getCallMediaHandlerStatus" direction="out">
            </arg>
        </method>

       <method name="getChatHandlerDetails" tp:name-for-bindings="getChatHandlerDetails">
            <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="MapStringString"/>
            <tp:added version="9.9.0"/>
            <arg type="s" name="chatHandlerId" direction="in">
            </arg>
            <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="MapStringString"/>
            <arg type="a{ss}" name="ChatHandlerDetails" direction="out">
            </arg>
        </method>

       <method name="getChatHandlerStatus" tp:name-for-bindings="getChatHandlerStatus">
            <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="VectorString"/>
            <tp:added version="9.9.0"/>
            <arg type="s" name="accountId" direction="in">
            </arg>
            <arg type="s" name="peerId" direction="in">
            </arg>
            <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="VectorString"/>
            <arg type="as" name="getChatHandlerStatus" direction="out">
            </arg>
        </method>

        <method name="getPluginsEnabled" tp:name-for-bindings="getPluginsEnabled">
            <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="Bool"/>
            <tp:added version="9.3.0"/>
            <arg type="b" name="state" direction="out">
            <tp:docstring>Returns true if plugins are enabled, false otherwise</tp:docstring>
            </arg>
        </method>

        <method name="setPluginsEnabled" tp:name-for-bindings="setPluginsEnabled">
            <annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="Bool"/>
            <tp:added version="9.3.0"/>
            <arg type="b" name="state" direction="in">
            </arg>
        </method>

        <method name="sendWebViewMessage" tp:name-for-bindings="sendWebViewMessage">
            <tp:added version="13.2.0"/>
            <tp:docstring>
              Called by the a client's webview to send a message to the plugin
            </tp:docstring>
            <arg type="s" name="pluginId" direction="in">
            </arg>
            <arg type="s" name="webViewId" direction="in">
            </arg>
            <arg type="s" name="messageId" direction="in">
            </arg>
            <arg type="s" name="payload" direction="in">
            </arg>
        </method>

        <method name="sendWebViewAttach" tp:name-for-bindings="sendWebViewAttach">
            <tp:added version="13.2.0"/>
            <tp:docstring>
              Called by the a client's webview to notify the plugin that a webview has been created.
              Returns a relative path to an HTML file inside the plugin's datapath.
            </tp:docstring>
            <arg type="s" name="pluginId" direction="in">
            </arg>
            <arg type="s" name="accountId" direction="in">
            </arg>
            <arg type="s" name="webViewId" direction="in">
            </arg>
            <arg type="s" name="action" direction="in">
            </arg>
            <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QString"/>
            <arg type="s" name="response" direction="out">
            </arg>
        </method>

        <method name="sendWebViewDetach" tp:name-for-bindings="sendWebViewDetach">
            <tp:added version="13.2.0"/>
            <tp:docstring>
              Called by the a client's webview to notify the plugin that a webview has been destroyed
            </tp:docstring>
            <arg type="s" name="pluginId" direction="in">
            </arg>
            <arg type="s" name="webViewId" direction="in">
            </arg>
        </method>

        <!-- SIGNALS !-->
        <signal name="webViewMessageReceived" tp:name-for-bindings="webViewMessageReceived">
            <tp:added version="13.2.0"/>
            <tp:docstring>
              This signal is emitted when a plugin sends a message up to a webview
            </tp:docstring>
            <arg type="s" name="pluginId">
            </arg>
            <arg type="s" name="webViewId">
            </arg>
            <arg type="s" name="messageId">
            </arg>
            <arg type="s" name="payload">
            </arg>
        </signal>

    </interface>
</node>
