qtmobility/tests/auto/support/support_win.cpp
changeset 8 71781823f776
parent 5 453da2cfceef
child 11 06b8e2af4411
equal deleted inserted replaced
5:453da2cfceef 8:71781823f776
    56 #include <MAPIUtil.h>
    56 #include <MAPIUtil.h>
    57 #ifdef _WIN32_WCE
    57 #ifdef _WIN32_WCE
    58 #include <cemapi.h>
    58 #include <cemapi.h>
    59 #endif
    59 #endif
    60 
    60 
       
    61 #include <messagingutil_p.h>
       
    62 
    61 // Missing definitions
    63 // Missing definitions
    62 #ifndef PR_PST_CONFIG_FLAGS
    64 #ifndef PR_PST_CONFIG_FLAGS
    63 #define PR_PST_CONFIG_FLAGS PROP_TAG( PT_LONG, 0x6770 )
    65 #define PR_PST_CONFIG_FLAGS PROP_TAG( PT_LONG, 0x6770 )
    64 #endif
    66 #endif
    65 #ifndef PST_CONFIG_UNICODE
    67 #ifndef PST_CONFIG_UNICODE
   384     {
   386     {
   385         QDataStream encodedIdStream(&encodedId, QIODevice::WriteOnly);
   387         QDataStream encodedIdStream(&encodedId, QIODevice::WriteOnly);
   386         encodedIdStream << recordKey;
   388         encodedIdStream << recordKey;
   387     }
   389     }
   388 
   390 
   389 	return QMessageAccountId(QString("WIN_")+encodedId.toBase64());
   391     return QMessageAccountId(MessagingUtil::addIdPrefix(encodedId.toBase64()));
   390 }
   392 }
   391 
   393 
   392 QMessageFolderId folderIdFromProperties(const QByteArray &recordKey, const QByteArray &entryId, const QByteArray &storeKey)
   394 QMessageFolderId folderIdFromProperties(const QByteArray &recordKey, const QByteArray &entryId, const QByteArray &storeKey)
   393 {
   395 {
   394     QByteArray encodedId;
   396     QByteArray encodedId;
   405             encodedIdStream << recordKey;
   407             encodedIdStream << recordKey;
   406         }
   408         }
   407 #endif
   409 #endif
   408     }
   410     }
   409 
   411 
   410 	return QMessageFolderId(QString("WIN_") + encodedId.toBase64());
   412     return QMessageFolderId(MessagingUtil::addIdPrefix(encodedId.toBase64()));
   411 }
   413 }
   412 
   414 
   413 QByteArray objectProperty(IMAPIProp *object, ULONG tag)
   415 QByteArray objectProperty(IMAPIProp *object, ULONG tag)
   414 {
   416 {
   415     QByteArray result;
   417     QByteArray result;