diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-02-22 13:56:05 +1100 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-02-22 13:56:05 +1100 |
commit | 696c6f6ae82cb478247b9921b28a5e3b17579cbf (patch) | |
tree | c2f92fa75cd2f0611c24faf0f595e4799b126bf9 /xml | |
parent | 711ab5b25fe5d9108802cdc52ff02fcf8cf3f05f (diff) | |
download | telepathy-mission-control-696c6f6ae82cb478247b9921b28a5e3b17579cbf.tar.gz |
Add CM.I.AccountStorage.DRAFT from tp-spec
Diffstat (limited to 'xml')
-rw-r--r-- | xml/Connection_Manager_Interface_Account_Storage.xml | 117 | ||||
-rw-r--r-- | xml/Makefile.am | 1 | ||||
-rw-r--r-- | xml/nmc5.xml | 2 |
3 files changed, 120 insertions, 0 deletions
diff --git a/xml/Connection_Manager_Interface_Account_Storage.xml b/xml/Connection_Manager_Interface_Account_Storage.xml new file mode 100644 index 00000000..5c7dd03a --- /dev/null +++ b/xml/Connection_Manager_Interface_Account_Storage.xml @@ -0,0 +1,117 @@ +<?xml version="1.0" ?> +<node name="/Connection_Manager_Interface_Account_Storage" + xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0"> + + <tp:copyright>Copyright © 2011 Collabora Ltd.</tp:copyright> + <tp:license xmlns="http://www.w3.org/1999/xhtml"> + <p>This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version.</p> + + <p>This library 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 + Lesser General Public License for more details.</p> + + <p>You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA.</p> + </tp:license> + + <interface name="org.freedesktop.Telepathy.ConnectionManager.Interface.AccountStorage.DRAFT" + tp:causes-havoc="experimental"> + <tp:added version="0.21.UNRELEASED">(draft 1)</tp:added> + <tp:requires interface="org.freedesktop.Telepathy.ConnectionManager"/> + + <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> + <p>An interface for connection managers that store account details + internally. At the moment this consists only of storing an account's + credentials, but other functionality may be added in the future.</p> + <p><tp:dbus-ref + namespace="org.freedesktop.Telepathy">Account</tp:dbus-ref> objects + representing accounts on a connection manager that implements this + interface should implement the <tp:dbus-ref + namespace="org.freedesktop.Telepathy.Account.Interface">ExternalPasswordStorage.DRAFT</tp:dbus-ref> + interface.</p> + + </tp:docstring> + + <tp:flags name="Account_Flags" value-prefix="Account_Flag" type="u"> + <tp:docstring> + A set of flags representing the status of the Account stored in the Connection Manager. + </tp:docstring> + + <tp:flag suffix="Credentials_Stored" value="1"> + <tp:docstring> + The associated account has its authentication credentials (password) + stored in the connection manager + </tp:docstring> + </tp:flag> + </tp:flags> + + <tp:mapping name="Account_Flags_Map" array-name="Account_Flags_Map_List"> + <tp:docstring>A mapping from Account_Ids to account flags. + </tp:docstring> + <tp:member type="s" name="Account_Id"/> + <tp:member type="u" tp:type="Account_Flags" name="Flags"/> + </tp:mapping> + + <property name="Accounts" + tp:name-for-bindings="Accounts" + type="a{su}" tp:type="Account_Flags_Map" access="read"> + <tp:docstring> + The set of Accounts stored in this connection manager, and flags + indicating their status. + </tp:docstring> + </property> + + <method name="ForgetCredentials" tp:name-for-bindings="Forget_Credentials"> + <tp:docstring> + Clears any saved credentials associated with the specified Account_Id. + Any other saved data related to the account will be unaffected. + </tp:docstring> + + <arg direction="in" name="Account_Id" + type="s"> + <tp:docstring> + An account id as returned from <tp:dbus-ref + namespace="org.freedesktop.Telepathy">Protocol.IdentifyAccount</tp:dbus-ref>. + </tp:docstring> + </arg> + + <tp:possible-errors> + <tp:error name="org.freedesktop.Telepathy.Error.InvalidArgument"> + <tp:docstring> + The account id is invalid. + </tp:docstring> + </tp:error> + </tp:possible-errors> + </method> + + <method name="RemoveAccount" tp:name-for-bindings="Remove_Account"> + <tp:docstring> + Completely removes all data associated with an account from the + connection manager's internal storage. + </tp:docstring> + + <arg direction="in" name="Account_Id" + type="s"> + <tp:docstring> + An account id as returned from <tp:dbus-ref + namespace="org.freedesktop.Telepathy">Protocol.IdentifyAccount</tp:dbus-ref>. + </tp:docstring> + </arg> + + <tp:possible-errors> + <tp:error name="org.freedesktop.Telepathy.Error.InvalidArgument"> + <tp:docstring> + The account id is invalid. + </tp:docstring> + </tp:error> + </tp:possible-errors> + </method> + + </interface> +</node> diff --git a/xml/Makefile.am b/xml/Makefile.am index 2e74a456..bedc883e 100644 --- a/xml/Makefile.am +++ b/xml/Makefile.am @@ -27,6 +27,7 @@ SPECS = \ Client_Handler.xml \ Client_Interface_Requests.xml \ Client_Observer.xml \ + Connection_Manager_Interface_Account_Storage.xml \ Connection_Interface_Contact_Capabilities.xml \ Connection_Interface_Contact_Capabilities_Draft1.xml \ Connection_Interface_Power_Saving.xml diff --git a/xml/nmc5.xml b/xml/nmc5.xml index 22991009..dd0df59d 100644 --- a/xml/nmc5.xml +++ b/xml/nmc5.xml @@ -28,6 +28,8 @@ <xi:include href="Channel_Request.xml"/> <xi:include href="Channel_Dispatch_Operation.xml"/> +<xi:include href="Connection_Manager_Interface_Account_Storage.xml"/> + <xi:include href="Connection_Interface_Contact_Capabilities_Draft1.xml"/> <xi:include href="Connection_Interface_Contact_Capabilities.xml"/> <xi:include href="Connection_Interface_Power_Saving.xml"/> |