[telepathy-qt4/master] ChannelFactory: Use TELEPATHY_INTERFACE_CHANNEL_TYPE_FILE_TRANSFER definition.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Thu May 28 06:43:06 PDT 2009
---
TelepathyQt4/channel-factory.cpp | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/TelepathyQt4/channel-factory.cpp b/TelepathyQt4/channel-factory.cpp
index 6b831d2..b4b8399 100644
--- a/TelepathyQt4/channel-factory.cpp
+++ b/TelepathyQt4/channel-factory.cpp
@@ -52,8 +52,7 @@ ChannelPtr ChannelFactory::create(const ConnectionPtr &connection,
RoomList::create(connection,
channelPath, immutableProperties).data()));
}
- // FIXME: update spec so we can do this properly
- else if (channelType == "org.freedesktop.Telepathy.Channel.Type.FileTransfer") {
+ else if (channelType == TELEPATHY_INTERFACE_CHANNEL_TYPE_FILE_TRANSFER) {
return ChannelPtr(dynamic_cast<Channel*>(
FileTransfer::create(connection,
channelPath, immutableProperties).data()));
--
1.5.6.5
More information about the telepathy-commits
mailing list