[telepathy-qt4/master] Channel: Improved change-reason mapping to Telepathy Error.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Mon Jul 27 07:49:32 PDT 2009


Improved change-reason mapping to Telepathy Error and added a comment on
what is being mapped to default case (no error defined).
---
 TelepathyQt4/channel.cpp |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/TelepathyQt4/channel.cpp b/TelepathyQt4/channel.cpp
index 5084430..a25941a 100644
--- a/TelepathyQt4/channel.cpp
+++ b/TelepathyQt4/channel.cpp
@@ -966,6 +966,15 @@ QString Channel::Private::groupMemberChangeDetailsTelepathyError(
         case ChannelGroupChangeReasonPermissionDenied:
             error = TELEPATHY_ERROR_PERMISSION_DENIED;
             break;
+        case ChannelGroupChangeReasonInvalidContact:
+            error = TELEPATHY_ERROR_DOES_NOT_EXIST;
+            break;
+        // The following change reason are being mapped to default
+        // case ChannelGroupChangeReasonNone:
+        // case ChannelGroupChangeReasonInvited:
+        // case ChannelGroupChangeReasonError:
+        // case ChannelGroupChangeReasonRenamed:
+        // case ChannelGroupChangeReasonSeparated:
         default:
             // let's use the actor handle and selfHandle here instead of the
             // contacts, as the contacts may not be ready.
-- 
1.5.6.5




More information about the telepathy-commits mailing list