summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author <robert.mcqueen@collabora.co.uk>2006-02-07 16:03:35 +0000
committer <robert.mcqueen@collabora.co.uk>2006-02-07 16:03:35 +0000
commitbe7b2b4c4cd468b6befb7be6f3bba373f536b8dd (patch)
tree9d81524bf3880d089f01cce8e8b06296f83857fa
parent71b0405ce1051953a7d30fc0fb03350f3fd63754 (diff)
add an auto reply message type to text channels
-rw-r--r--telepathy/constants.py1
-rw-r--r--telepathy/server/channel.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/telepathy/constants.py b/telepathy/constants.py
index f761249..d872373 100644
--- a/telepathy/constants.py
+++ b/telepathy/constants.py
@@ -52,6 +52,7 @@ CHANNEL_CONTACT_SEARCH_STATE_AFTER = 2
CHANNEL_TEXT_MESSAGE_TYPE_NORMAL = 0
CHANNEL_TEXT_MESSAGE_TYPE_ACTION = 1
CHANNEL_TEXT_MESSAGE_TYPE_NOTICE = 2
+CHANNEL_TEXT_MESSAGE_TYPE_AUTO_REPLY = 3
CHANNEL_GROUP_FLAG_CAN_ADD = 1
CHANNEL_GROUP_FLAG_CAN_REMOVE = 2
diff --git a/telepathy/server/channel.py b/telepathy/server/channel.py
index 5530e7c..6b3fdb7 100644
--- a/telepathy/server/channel.py
+++ b/telepathy/server/channel.py
@@ -653,7 +653,9 @@ class ChannelTypeText(Channel):
1 - CHANNEL_TEXT_MESSAGE_TYPE_ACTION
an action which might be presented to the user as * <sender> <action>
2 - CHANNEL_TEXT_MESSAGE_TYPE_NOTICE
- an automated message not expecting a reply
+ an one-off or automated message not necessarily expecting a reply
+ 3 - CHANNEL_TEXT_MESSAGE_TYPE_AUTO_REPLY
+ an automatically-generated reply message
Sending messages can be requested using the Send method, which will return
and cause the Sent signal to be emitted when the message has been delivered