summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--TelepathyQt4Yell/CMakeLists.txt1
-rw-r--r--TelepathyQt4Yell/ChannelInterfaceCredentialsStorageInterface13
-rw-r--r--TelepathyQt4Yell/channel.xml1
-rw-r--r--spec/Channel_Interface_Credentials_Storage.xml59
5 files changed, 75 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index ca9be0e..a98ff28 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ The "..." release.
Enhancements:
* Implement removeRows method in AbstractConversationModel
* Keep count of unread/missed messages in SessionConversationModel
+ * Added auto-generate classes for Channel.Interface.CredentialsStorage
* ...
Fixes:
diff --git a/TelepathyQt4Yell/CMakeLists.txt b/TelepathyQt4Yell/CMakeLists.txt
index 37b18de..3f0be28 100644
--- a/TelepathyQt4Yell/CMakeLists.txt
+++ b/TelepathyQt4Yell/CMakeLists.txt
@@ -26,6 +26,7 @@ set(telepathy_qt4_yell_HEADERS
Channel
ChannelClassSpec
ChannelFactory
+ ChannelInterfaceCredentialsStorageInterface
Constants
ContactCapabilities
Global
diff --git a/TelepathyQt4Yell/ChannelInterfaceCredentialsStorageInterface b/TelepathyQt4Yell/ChannelInterfaceCredentialsStorageInterface
new file mode 100644
index 0000000..f7ed427
--- /dev/null
+++ b/TelepathyQt4Yell/ChannelInterfaceCredentialsStorageInterface
@@ -0,0 +1,13 @@
+#ifndef _TelepathyQt4Yell_ChannelInterfaceCredentialsStorageInterface_HEADER_GUARD_
+#define _TelepathyQt4Yell_ChannelInterfaceCredentialsStorageInterface_HEADER_GUARD_
+
+#ifndef IN_TELEPATHY_QT4_YELL_HEADER
+#define IN_TELEPATHY_QT4_YELL_HEADER
+#endif
+
+#include <TelepathyQt4Yell/channel.h>
+
+#undef IN_TELEPATHY_QT4_YELL_HEADER
+
+#endif
+// vim:set ft=cpp:
diff --git a/TelepathyQt4Yell/channel.xml b/TelepathyQt4Yell/channel.xml
index 071712d..95081a6 100644
--- a/TelepathyQt4Yell/channel.xml
+++ b/TelepathyQt4Yell/channel.xml
@@ -12,6 +12,7 @@
<xi:include href="../spec/Call_Stream.xml"/>
<xi:include href="../spec/Call_Stream_Endpoint.xml"/>
<xi:include href="../spec/Call_Stream_Interface_Media.xml"/>
+<xi:include href="../spec/Channel_Interface_Credentials_Storage.xml"/>
<xi:include href="../spec/generic-types.xml"/>
<xi:include href="../spec/errors.xml"/>
diff --git a/spec/Channel_Interface_Credentials_Storage.xml b/spec/Channel_Interface_Credentials_Storage.xml
new file mode 100644
index 0000000..e44b13e
--- /dev/null
+++ b/spec/Channel_Interface_Credentials_Storage.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" ?>
+<node name="/Channel_Interface_Credentials_Storage"
+ xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
+ <tp:copyright> Copyright © 2011 Collabora Limited </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.Channel.Interface.CredentialsStorage.DRAFT"
+ tp:causes-havoc="experimental">
+ <tp:added version="0.21.10">(draft 1)</tp:added>
+ <tp:requires interface="org.freedesktop.Telepathy.Channel.Interface.SASLAuthentication"/>
+ <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
+ <p>A channel interface for SASL authentication channels that can save the
+ credentials in the connection manager.</p>
+
+ <p>This interface is unlikely to be present for any SASL channels that are
+ more complex than a simple password prompt (e.g.
+ <code>X-TELEPATHY-PASSWORD</code> or <code>PLAIN</code>).</p>
+
+ <p>In practice, this interface should only be implemented by connection
+ managers that implement the <tp:dbus-ref
+ namespace="ofdT">ConnectionManager.Interface.AccountStorage.DRAFT</tp:dbus-ref>
+ interface. To clear a password that has been saved in this manner, a
+ client should call <tp:dbus-ref
+ namespace="ofdT.ConnectionManager.Interface">AccountStorage.DRAFT.ForgetCredentials</tp:dbus-ref>
+ on the Account.</p>
+ </tp:docstring>
+
+ <method name="StoreCredentials" tp:name-for-bindings="Store_Credentials">
+ <arg direction="in" name="Store" type="b">
+ <tp:docstring>
+ Whether to store the authentication credentials.
+ </tp:docstring>
+ </arg>
+ <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
+ <p>This method tells the connection manager whether to store the
+ authentication response in order to allow the connection manager to
+ sign-on automatically in the future.</p>
+ <p>If credentials have been stored in this way, the client SHOULD NOT
+ attempt to store the credentials locally in a keyring.</p>
+ <p>This method MUST be called before <tp:dbus-ref
+ namespace="org.freedesktop.Telepathy.Channel.Interface.SASLAuthentication">AcceptSASL</tp:dbus-ref>
+ is called or it will have no effect.</p>
+ </tp:docstring>
+ </method>
+ </interface>
+</node>