diff -r 84d9eb65b26f -r e4592d119491 messagingapp/msgui/appengine/src/conversationsengineutility.cpp --- a/messagingapp/msgui/appengine/src/conversationsengineutility.cpp Mon May 03 12:29:07 2010 +0300 +++ b/messagingapp/msgui/appengine/src/conversationsengineutility.cpp Fri May 14 15:49:35 2010 +0300 @@ -119,40 +119,4 @@ return messageSubType; } -//--------------------------------------------------------------- -// ConversationsEngineUtility::getVcardDisplayName -// @see header -//--------------------------------------------------------------- -QString ConversationsEngineUtility::getVcardDisplayName(QString filePath) -{ - QString displayName; - //open file for parsing - QFile file(filePath); - if (!file.open(QIODevice::ReadOnly)) { - return displayName; - } - // parse contents - QVersitReader reader; - reader.setDevice(&file); - if (reader.startReading()) { - if (reader.waitForFinished()) { - QList versitDocuments = reader.results(); - // Use the resulting document - if (versitDocuments.count() > 0) { - QVersitContactImporter importer; - QList contacts = importer.importContacts(versitDocuments); - // get display-name - if (contacts.count() > 0) { - QContactManager* contactManager = new QContactManager("symbian"); - displayName = contactManager->synthesizedDisplayLabel(contacts[0]); - delete contactManager; - } - } - } - } - file.close(); - - return displayName; -} - // End of file