[Telepathy-commits] [telepathy-salut/master] Made properties readwrite for use with the old requests API, for now.
Jonny Lamb
jonny.lamb at collabora.co.uk
Fri Nov 21 03:46:01 PST 2008
20080718171043-8ed0e-a28c70a5c35af951998b38ae1f2738f3ff723b68.gz
---
extensions/Channel_Type_File.xml | 12 ++++++------
src/salut-file-channel.c | 12 ++++++------
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/extensions/Channel_Type_File.xml b/extensions/Channel_Type_File.xml
index 764d0a3..ffdabb3 100644
--- a/extensions/Channel_Type_File.xml
+++ b/extensions/Channel_Type_File.xml
@@ -48,7 +48,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</
</tp:docstring>
</property>
- <property name="ContentType" type="s" access="read">
+ <property name="ContentType" type="s" access="readwrite">
<tp:docstring xmlns="http://www.w3.org/1999/xhtml">
<p>The file's MIME type. This cannot change once the channel has
been created.</p>
@@ -59,7 +59,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</
</tp:docstring>
</property>
- <property name="Filename" type="s" access="read">
+ <property name="Filename" type="s" access="readwrite">
<tp:docstring xmlns="http://www.w3.org/1999/xhtml">
<p>The name of the file on the sender's side. This is therefore given
as a suggested filename for the receiver. This cannot change
@@ -69,7 +69,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</
</tp:docstring>
</property>
- <property name="Size" type="t" access="read">
+ <property name="Size" type="t" access="readwrite">
<tp:docstring xmlns="http://www.w3.org/1999/xhtml">
<p>The size of the file. If this property is set, then the file
transfer is guaranteed to be this size. This cannot change once
@@ -79,7 +79,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</
</tp:docstring>
</property>
- <property name="EstimatedSize" type="t" access="read">
+ <property name="EstimatedSize" type="t" access="readwrite">
<tp:docstring xmlns="http://www.w3.org/1999/xhtml">
<p>An estimate of the size of the file. This property should be used
when the protocol doesn't allow exact file sizes (For example, accurate
@@ -91,7 +91,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</
</tp:docstring>
</property>
- <property name="ContentMD5" type="s" access="read">
+ <property name="ContentMD5" type="s" access="readwrite">
<tp:docstring xmlns="http://www.w3.org/1999/xhtml">
<p>MD5 digest of the file as a string of 32 ASCII hex digits, which
SHOULD be lower-case if they are letters. This cannot change once
@@ -101,7 +101,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</
</tp:docstring>
</property>
- <property name="Description" type="s" access="read">
+ <property name="Description" type="s" access="readwrite">
<tp:docstring xmlns="http://www.w3.org/1999/xhtml">
<p>Description of the file transfer. This cannot change once the
channel has been created.</p>
diff --git a/src/salut-file-channel.c b/src/salut-file-channel.c
index 47ccbd2..325d4cf 100644
--- a/src/salut-file-channel.c
+++ b/src/salut-file-channel.c
@@ -360,12 +360,12 @@ salut_file_channel_class_init (SalutFileChannelClass *salut_file_channel_class)
static TpDBusPropertiesMixinPropImpl file_props[] = {
{ "Direction", "direction", NULL },
{ "State", "state", "state" },
- { "ContentType", "content-type", NULL },
- { "Filename", "filename", NULL },
- { "Size", "size", NULL },
- { "EstimatedSize", "estimated-size", NULL },
- { "ContentMD5", "content-md5", NULL },
- { "Description", "description", NULL },
+ { "ContentType", "content-type", "content-type" },
+ { "Filename", "filename", "filename" },
+ { "Size", "size", "size" },
+ { "EstimatedSize", "estimated-size", "estimated-size" },
+ { "ContentMD5", "content-md5", "content-md5" },
+ { "Description", "description", "description" },
{ "AvailableSocketTypes", "available-socket-types", NULL },
{ NULL }
};
--
1.5.6.5
More information about the Telepathy-commits
mailing list