qtmobility/src/messaging/qmfhelpers.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 5 453da2cfceef
--- a/qtmobility/src/messaging/qmfhelpers.cpp	Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/src/messaging/qmfhelpers.cpp	Mon May 03 13:18:40 2010 +0300
@@ -201,7 +201,7 @@
     if (t & QMessage::Email) {
         result = static_cast<QMailMessage::MessageType>(result | QMailMessage::Email);
     }
-    if (t & QMessage::Xmpp) {
+    if (t & QMessage::InstantMessage) {
         result = static_cast<QMailMessage::MessageType>(result | QMailMessage::Instant);
     }
 
@@ -223,7 +223,7 @@
         result = static_cast<QMessage::Type>(static_cast<uint>(result | QMessage::Email));
     }
     if (t & QMailMessage::Instant) {
-        result = static_cast<QMessage::Type>(static_cast<uint>(result | QMessage::Xmpp));
+        result = static_cast<QMessage::Type>(static_cast<uint>(result | QMessage::InstantMessage));
     }
 
     return result;
@@ -377,8 +377,8 @@
                 type = QMessageAddress::System;
             } else if (spec == "Phone") {
                 type = QMessageAddress::Phone;
-            } else if (spec == "XMPP") {
-                type = QMessageAddress::Xmpp;
+            } else if (spec == "InstantMessage") {
+                type = QMessageAddress::InstantMessage;
             }
         }
 
@@ -395,11 +395,11 @@
         suffix = " (TYPE=System)";
     } else if (address.type() == QMessageAddress::Phone) {
         suffix = " (TYPE=Phone)";
-    } else if (address.type() == QMessageAddress::Xmpp) {
-        suffix = " (TYPE=XMPP)";
+    } else if (address.type() == QMessageAddress::InstantMessage) {
+        suffix = " (TYPE=InstantMessage)";
     }
 
-    return QMailAddress(address.recipient() + suffix);
+    return QMailAddress(address.addressee() + suffix);
 }
 
 QMessageAddressList convert(const QList<QMailAddress> &list)