activityfw/activitydatabase/s60/src/hsserializer.cpp
changeset 80 397d00875918
parent 73 4bc7b118b3df
child 103 b99b84bcd2d1
--- a/activityfw/activitydatabase/s60/src/hsserializer.cpp	Fri May 14 16:10:06 2010 +0300
+++ b/activityfw/activitydatabase/s60/src/hsserializer.cpp	Thu May 27 13:11:12 2010 +0300
@@ -20,39 +20,6 @@
 //
 // -----------------------------------------------------------------------------
 //
-RBuf8 &operator <<(RBuf8 &dst, const QPixmap &src)
-{
-    QByteArray buffer;
-    QDataStream stream(&buffer, QIODevice::WriteOnly);
-
-    QT_TRYCATCH_LEAVING(stream << src);
-    const int dataLength(buffer.length());
-    const unsigned char *dataPtr(reinterpret_cast<const unsigned char *>(buffer.constData()));
-    if (dst.MaxLength() < dataLength) {
-        dst.ReAllocL(dataLength);
-    }
-    dst.Copy(dataPtr, dataLength);
-    return dst;
-}
-
-// -----------------------------------------------------------------------------
-//
-// -----------------------------------------------------------------------------
-//
-QPixmap &operator <<(QPixmap &dst, const TDesC8 &src)
-{
-    QByteArray buffer(QByteArray::fromRawData(reinterpret_cast<const char *>(src.Ptr()),
-                                              src.Length()) );
-
-    QDataStream stream(&buffer, QIODevice::ReadOnly);
-    QT_TRYCATCH_LEAVING(stream >> dst);
-    return dst;
-}
-
-// -----------------------------------------------------------------------------
-//
-// -----------------------------------------------------------------------------
-//
 RBuf8 &operator <<(RBuf8 &dst, const QVariantHash &src)
 {
     QByteArray buffer;
@@ -86,24 +53,6 @@
 //
 // -----------------------------------------------------------------------------
 //
-RBuf8 &operator <<(RBuf8 &dst, const QList<QVariantHash>& src)
-{
-    QByteArray buffer;
-    QDataStream stream(&buffer, QIODevice::WriteOnly);
-
-    QT_TRYCATCH_LEAVING(stream << src);
-
-    if (dst.MaxLength() < buffer.length()) {
-        dst.ReAllocL(buffer.length());
-    }
-    dst.Copy(reinterpret_cast<const TUint8 *>(buffer.data()), buffer.length());
-    return dst;
-}
-
-// -----------------------------------------------------------------------------
-//
-// -----------------------------------------------------------------------------
-//
 QList<QVariantHash>& operator <<(QList<QVariantHash>& dst, const TDesC8 &src)
 {
     dst.clear();